Exemplo tosco:
Code: Select all
F2::
MouseMove 500, 400
if (pixel-changed=true)
{
send {f5}
}
else
()
return
Moderator: Gio
Code: Select all
F2::
MouseMove 500, 400
if (pixel-changed=true)
{
send {f5}
}
else
()
return
Code: Select all
#SingleInstance Force
CoordMode, Pixel, Window ; Mude aqui conforme preferir
Loop
{
MouseGetPos, mouseX, mouseY
PixelGetColor, PixColor , mouseX, mouseY
If (PixColor <> "0x000000")
{
Tooltip, %PixColor% , A_ScreenWith, A_ScreenHeight
}
else
{
Tooltip, Manter aqui , A_ScreenWith, A_ScreenHeight
}
Sleep 1
}