Are there just too many pixelsearches happening, maybe pixelsearch is the wrong thing for this, or did I write this so badly that it's really inefficient? Any help is appreciated.
Computer specs:
WoW home and world latency at 25
Windows 10 Home 64 bit
i5 4690k
8 gig ddr4 memory
R9 280x video card
Code: Select all
#IfWinActive, World of Warcraft
#NoEnv
SetWorkingDir %A_ScriptDir%
SendMode Input
CoordMode, Pixel, Window
$E::
PixelSearch, FoundX, FoundY, 465, 904, 465, 904, 0x181410, 0, Fast RGB
If ErrorLevel = 0
{
Send, e
Return
}
PixelSearch, FoundX, FoundY, 19, 978, 19, 978, 0x02066A, 0, Fast RGB
If ErrorLevel = 0
{
Send, {Numpad1}
Return
}
PixelSearch, FoundX, FoundY, 61, 979, 61, 979, 0x02066A, 0, Fast RGB
If ErrorLevel = 0
{
Send, {Numpad3}
Return
}
PixelSearch, FoundX, FoundY, 79, 980, 79, 980, 0x02066A, 0, Fast RGB
If ErrorLevel = 0
{
Send, {Numpad4}
Return
}
PixelSearch, FoundX, FoundY, 100, 980, 100, 980, 0x02066A, 0, Fast RGB
If ErrorLevel = 0
{
Send, {Numpad5}
Return
}
PixelSearch, FoundX, FoundY, 19, 1000, 19, 1000, 0x02066A, 0, Fast RGB
If ErrorLevel = 0
{
Send, {Numpad6}
Return
}
PixelSearch, FoundX, FoundY, 82, 1000, 82, 1000, 0x02066A, 0, Fast RGB
If ErrorLevel = 0
{
Send, {Numpad9}
Return
}
PixelSearch, FoundX, FoundY, 101, 998, 101, 998, 0x02066A, 0, Fast RGB
If ErrorLevel = 0
{
Send, {Numpad0}
Return
}
PixelSearch, FoundX, FoundY, 19, 1020, 19, 1020, 0x02066A, 0, Fast RGB
If ErrorLevel = 0
{
Send, {F1}
Return
}
PixelSearch, FoundX, FoundY, 60, 1021, 60, 1021, 0x02066A, 0, Fast RGB
If ErrorLevel = 0
{
Send, {F2}
Return
}
PixelSearch, FoundX, FoundY, 81, 1020, 81, 1020, 0x02066A, 0, Fast RGB
If ErrorLevel = 0
{
Send, {F3}
Return
}
Return