I want a script that waits for a pixel color at a specific window, and then takes a screenshot.
I want it to be permanently running when I load AHK.
Problem is he won't run, unless I activate it with a hotkey. What am I doing wrong? Thanks.
Code: Select all
IfWinActive, Empréstimo - Google Chrome
Loop
{
PixelGetColor, Color, 673, 333
If Color = 0x663300
{
send {printscreen}
Sleep, 300
}
Else
{
}
}
return