Results 1 to 3 of 3

Thread: Rotation AHK

  
  1. #1
    Member
    Reputation
    1
    Join Date
    Jan 2012
    Posts
    6

    Rotation AHK

    This is a rotation ahk i made it's a little slow because of all the image checks i give yall what i got in the hopes someone less lazy then I will take it and run with it
    Code:
      #MaxThreadsPerHotkey 1
    #SingleInstance force
    #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
    SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
    WinGet, wowid, List, Star Wars: The Old Republic
    l1=1
    CoordMode Pixel 
    
    path=Sotr Moves2\
    ; All images can be retrieved from http://www.torhead.com/ simply highlight picture of move view selection source and get the .jpg after that you can edit it
    ; example http://tor.zamimg.com/torhead/images/icons/backgrounds/swtor/large/auraofvalor.jpg
    ; Use thos images in the macro below only image you can't get there is the energy one and you can do that with the clipping tool or just do a pixel check
    ~1::
    {
    l1=1
    return
    }
    ~2:: ; 2 starts it 1 stops it
    {
    
    if l1=1
    l1=0
     Loop
    {
    a1= n ;Ability to be passed
    e1= 0 ; This is used in the energy check i don't like to go below 3 bars for jed or go to high/low on energy based classes
    p1= 0 ; Priority option i haven't got to this yet
    r1= 0 ; Range test basically is tested on my auto attack if i can slash then they are in mele range how simple is that
    	ImageSearch, FoundX, FoundY, 730,900,790,950, *100 %path%\zenergy.bmp
      If errorlevel != 0
    {} else If errorlevel != 1{}
    	 else 
    	 {
    	 e1= 7
    	 }
    	ImageSearch, FoundX, FoundY, 633,935,695,1005, *150 %path%\assault.bmp
       If errorlevel != 0
    {} else If errorlevel != 1{}
    	 else
    	 {
    	a1= {F1}
    	r1= 1
    	
         }
    	ImageSearch, FoundX, FoundY, 1177,935,1235,1005, *100 %path%\traumaticslash.bmp
       If errorlevel != 0
    {} else If errorlevel != 1{}
       else if e1=  7 
       {
    	a1= -
    	
      }		
      	ImageSearch, FoundX, FoundY, 684,935,755,1005, *100 %path%\slash.bmp
       If errorlevel != 0
    {} else If errorlevel != 1{}
    	 else if e1=  7 
    	 {
    	a1= 2
    	
    	} 
    	ImageSearch, FoundX, FoundY, 741,935,800,1005, *50 %path%\forcecharge.bmp
       If errorlevel != 0
    {} else If errorlevel != 1{}
    	 else 
    	{
    		a1= 3
    		
    	}
    	ImageSearch, FoundX, FoundY, 960,935,1018,1005, *100 %path%\batteringassault.bmp
       If errorlevel != 0
    {} else If errorlevel != 1{}
    	 else 
    	 {
    	a1= 7
    
         }
    
    	ImageSearch, FoundX, FoundY, 1060,935,1125,1005, *100 %path%\rupture.bmp
       If errorlevel != 0
    {} else If errorlevel != 1{}
       else if e1=  7 
       {
       a1= 9
    
       }
       	ImageSearch, FoundX, FoundY, 900,935,965,1005, *100 %path%\forcestream.bmp
       If errorlevel != 0
    {} else If errorlevel != 1{}
    else if e1=  7 
       {
    	a1= 6
    
       }
    	ImageSearch, FoundX, FoundY, 800,935,860,1005, *50 %path%\smash.bmp
       If errorlevel != 0
    {} else If errorlevel != 1{}
       else if (e1=  7) && (r1= 1)
       {
       a1= 4
    
       }
    	ImageSearch, FoundX, FoundY, 1220,935,1295,1005, *100 %path%\cloakofpain.bmp
        If errorlevel != 0
    {} else If errorlevel != 1{}
    else if e1=  7 
    	{
         a1= =
    	}
    
    	ImageSearch, FoundX, FoundY, 1012,935,1066,1005, *100 %path%\berserk.bmp
       If errorlevel != 0
    {} else If errorlevel != 1{}
       else 
       {
       a1= 8
       }
      	
    	if l1 = 1 ;stops it before taking a action
    break
    	
    	if a1!= n ; if a1 changed then i got a move up and ready to go if not then just start the check over
         {
    	 	ControlSend,, %a1%, ahk_id %wowid1% ;judgment
    	sleep 10
    	} 
    	
    	 }
    	 
    sleep 50
    return
    }

  2. #2
    Member
    Reputation
    1
    Join Date
    Nov 2008
    Posts
    7
    Could you make one of these for my Shadow class? 2 buttons, one consisting of Spinning Strike, Slow time, Double Strike, Saber Strike? and the other with Spinning Strike, Project, Slow time, Saber Strike? I'd appreciate it, if I see one made I can mess around with it later, I'm not sure what to edit in yours to change it for my class.

  3. #3
    Member
    Reputation
    1
    Join Date
    Mar 2012
    Posts
    4
    Put all images and cooresponding keypresses into an array, then run your loop once using the array in a for loop.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -4. The time now is 04:07 PM. Powered by vBulletin® Version 4.1.12
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
Content Relevant URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154