Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Receiving pixel
#2
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
Code:
Copy      Help
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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)