Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check text area content of a child window
#8
Tested with Notepad.

Macro Macro2727
Code:
Copy      Help
RECT r
SetRect &r 8 8 60 60
int w=win("Untitled - Notepad" "Notepad")
act w
if(scan("image:h5EDAC0B1" w r 16|0x1000))
,out "found"
else out "not found"

Says "found" when there is no text. Says "not found" when there is a 1 character. The image is a 50x50 pixel white rectangle.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)