Code: Select all
#NoEnv
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
ListLines Off
Process, Priority, , A
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1
SendMode Input
DllCall("ntdll\ZwSetTimerResolution","Int",5000,"Int",1,"Int*",MyCurrentTimerResolution)
#IfWinActive, ahk_exe PathOfExile.exe
e::
{
SendInput, ew
PixelSearch, Px, Py, 1619, 967, 1619, 967, 0x6A6968
if (ErrorLevel=1)
{
SendInput, 8
}
PixelSearch, Px, Py, 313, 1080, 313, 1080, 0x99D7F9
if (ErrorLevel=1)
one := true
else
one := false
PixelSearch, Px, Py, 332, 1061, 332, 1061, 0x43762F
if (ErrorLevel=0)
two := true
else
two := false
If (one) and (two)
{
SendInput, 9
}
PixelSearch, Px, Py, 358, 1080, 358, 1080, 0x99D7F9
if (ErrorLevel=1)
one := true
else
one := false
PixelSearch, Px, Py, 377, 1059, 377, 1059, 0x4EB82C
if (ErrorLevel=0)
two := true
else
two := false
If (one) and (two)
{
SendInput, 2
}
PixelSearch, Px, Py, 403, 1080, 403, 1080, 0x99D7F9
if (ErrorLevel=1)
one := true
else
one := false
PixelSearch, Px, Py, 423, 1061, 423, 1061, 0x499228
if (ErrorLevel=0)
two := true
else
two := false
If (one) and (two)
{
SendInput, 6
}
PixelSearch, Px, Py, 448, 1080, 448, 1080, 0x99D7F9
if (ErrorLevel=1)
one := true
else
one := false
PixelSearch, Px, Py, 472, 1063, 472, 1063, 0x1515A9
if (ErrorLevel=0)
two := true
else
two := false
If (one) and (two)
{
SendInput, 7
}
PixelSearch, Px, Py, 493, 1080, 493, 1080, 0x99D7F9
if (ErrorLevel=1)
one := true
else
one := false
PixelSearch, Px, Py, 505, 1059, 505, 1059, 0x774C3F
if (ErrorLevel=0)
two := true
else
two := false
If (one) and (two)
{
SendInput, 3
}
SendInput, w
DllCall("Sleep","UInt",70)
SendInput, w
DllCall("Sleep","UInt",65)
}
return
Spoiler
[Mod edit: Added spoiler tags so everyone wouldn’t have to scroll forever to get to the next post.]