So, I've done that, and now I've tried to make an if-else statement that needs to do nothing.
More specifically, if PixelGetColor gets 9F2A2A, which is sort of a bit darker red, I need to add 1 to a variable called RedCount, and if it's not the color I need, it simply does nothing, other than stay in the loop.
This is bound to a hotkey, and I've tried Return, but there's another set of hotkeys below it, so yeah. It ran those.
Current code I have:
Code: Select all
SetTimer, RedCounter, 20
RedCounter:
PixelGetColor, currentsym, 50, 50 , RGB //directed to the middle, since the window gets filled with the color code it generates.
If currentsym = 0x9F2A2A
{
some random action
} else {
return //this is where I dont know what to do
}