Hello,
How would I go about using the TextCapture Wizard to capture some on screen text and then create an If statement if the text is there? Something if the script sees the word Cat on screen it would then move the mouse and LClick.
Thank you,
JS
TextCapture Wizard
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: TextCapture Wizard
The wizard will produce code something like this:
GetTextAtPoint>10,10,theText,ch
So then you could see if the text "Cat" is in the returned string:
GetTextAtPoint>10,10,theText,ch
So then you could see if the text "Cat" is in the returned string:
Code: Select all
Pos>Cat,theText,1,pPos
If>pPos>0
//move the mouse and click
Do something ...
Endif
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?