GetTextInRect and then type it

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
SisterOfTheMoon
Newbie
Posts: 1
Joined: Sun Aug 21, 2016 4:49 pm

GetTextInRect and then type it

Post by SisterOfTheMoon » Sun Aug 21, 2016 4:57 pm

Hey there,

I'm very new to MacroScheduler and to programming in general. What I'm trying to do is to make MacroScheduler read the text in a window and then make it click somewhere and type the found text there. However, it just types strText instead of what it found (if it even found anything).

Could somebody help me out?

Thank you!

Code: Select all

GetTextInit
GetTextInRect>1292,273,1326,291,strText

MouseMove>1320,870
LClick
SendText>strText

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: GetTextInRect and then type it

Post by Marcus Tettmar » Tue Aug 23, 2016 10:24 am

If it is writing strText then it didn't find anything (or the text in that location is not true text or not detectable text).

Not all text can be captured:
https://www.mjtnet.com/blog/2007/12/12/ ... reen-text/
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts