06-06-2015, 07:20 PM
Macro Macro2573
This example is with Notepad window. Not from all windows and controls can capture text. Always Test in 'Window Text' dialog.
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.