09-14-2008, 07:35 PM
Macro
This works here. But it stops working when I open another window and the button is moved to the left. Because desktop color in that place is different.
Don't know other ways how to detect flashing windows.
int h=win("Notepad")
FlashWindow(h 1)
1
Acc a=acc("Untitled - Notepad" "PUSHBUTTON" win("" "Shell_TrayWnd") "ToolbarWindow32" "" 0x1001)
int c=0x1179c3
if(!a.FindColor(c)) ret
out "found"
This works here. But it stops working when I open another window and the button is moved to the left. Because desktop color in that place is different.
Don't know other ways how to detect flashing windows.