Code: Select all
~RButton::
CoordMode, Pixel, Client
while(GetKeyState("RButton", "P"))
{
PixelGetColor, color, 940, 385, RGB Slow
TrayTip,, % Format("0xff0000{:x}", color) ; показать цвет пикселя в трее
if ((color == "") || (color == 0x000000)) { ; если пиксель чёрный или цвет не удалось определить −
SoundBeep, 100, 100 ; будет выдан звуковой сигнал
Sleep 300
} else
if (color == 0xC14F4F)
{
Send, {LButton down}
}
else
{
Send, {LButton up}
}
}
Send, {LButton up}
return