Code: Select all
SetBatchLines, -1
~*RButton::
Loop
{
if (GetKeyState("RButton", "P")=0)
{
Click, up
break
}
PixelSearch, Px, Py, 1047, 585, 1047, 599, 0xacb1b5, 75
if (ErrorLevel=1)
{
Click, down
}
PixelSearch, Px, Py, 1047, 585, 1047, 599, 0x4f5a57, 75
if (ErrorLevel=1 and GetKeyState("LButton", "P")=1)
{
Click, down
}
if (ErrorLevel=1 and GetKeyState("LButton", "P")=0)
{
Click, up
}
}
return
*F10::ExitApp