Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Windowtext.find = How to add a "-" in a search word
#5
Macro Macro2573
Code:
Copy      Help
run "Notepad"
0.4
paste "ghdgfhjgsfhj[]MODEL-doc[]ugshgdhsghs[]"

int wMain=win("Notepad")
int w=child("" "Edit" wMain)
WindowText x.Init(w)
WTI* t=x.Find("MODEL-doc" 0x1000)
if t
,mes "found"
,x.Mouse(0 t)
,RECT r=t.rt; MapWindowPoints w 0 +&r 2; OnScreenRect 0 r; 2; OnScreenRect 2
else
,mes "not found"

This example is with Notepad window. Not from all windows and controls can capture text. Always Test in 'Window Text' dialog.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)