11-03-2014, 02:19 PM
Try dialog "Find image". Select "Color of single pixel". Capture. Check "The window can be in background". Test. If does not find, try to select "Window" instead of "Control". If need, specify a RECT variable. Uncheck "Error..." and "Move mouse...". OK.
Example.
Macro Macro2459
It works when the window is under other windows or offscreen. Not when minimized.
Example.
Macro Macro2459
int w=win("Calculator" "CalcFrame")
int x(22) y(211) ;;in client area; to know client coordinates, look in QM status bar
RECT r; SetRect &r x y x+1 y+1 ;;1x1 rectangle, to check color of single pixel
if(scan("color:0x5B391E" w r 16|0x100))
,out "yes"
else out "no"
It works when the window is under other windows or offscreen. Not when minimized.