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
}