Big thx for info... But i couldnt make it work...
This code works... took it from exemple on link u gave me. And the color on the window is 0xFFFFFF (this is what the msg box show.)
Code:
^!z:: ; Control+Alt+Z hotkey.
MouseGetPos, MouseX, MouseY
PixelGetColor, color, %MouseX%, %MouseY%
MsgBox The color at the current cursor position is %color%.
return
Now here what i tryed to do:
Code:
^!x:: ; Control+Alt+Z hotkey.
Loop
{
Sleep 500
MouseGetPos, MouseX, MouseY
PixelGetColor, color, %MouseX%, %MouseY%
If %color% = 0xFFFFFF
break ; Terminate the loop
Else if a_index > 5
break ; Skip the below and start a new iteration
Msgbox tryed 5 time, failed.
}
Return
2 problem with my loop.... I don't think i understand how a_index work, cause it doesnt do what i want... i wanted the loop to check 5 time... And give up if it couldnt find it in 5. Or stop if it found white...