Post by Qwere » 07 Dec 2023, 22:33
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
[Mod edit: + [code][/code] tags.]
[code]~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[/code]
[color=#FF0040][size=75][Mod edit: + [kbd][code][/code][/kbd] tags.][/size][/color]