Code: Select all
F5::
SetTimer, PixelSearchTimer, 100
ToolTip, Скрипт запущен, 0, 0, 1
Sleep, 2000
ToolTip
Return
F7::
SetTimer, PixelSearchTimer, Off
ToolTip, Скрипт выключен, 0, 0, 1
Sleep, 2000
ToolTip
Return
PixelSearchTimer:
PixelSearch, x, y, 1055, 905, 1050, 900, 0xFF0000,, Fast RGB
If !ErrorLevel
{
MouseClick, L
}
PixelSearch, x, y, 1052, 952, 1052, 952, 0xFFC418,, Fast RGB
If ErrorLevel
{
Send {Q}
}
Return