Irregular Behaviour of GetTextInRect!

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
Niroj@Work
Pro Scripter
Posts: 63
Joined: Thu Dec 10, 2009 8:13 am

Irregular Behaviour of GetTextInRect!

Post by Niroj@Work » Fri Dec 25, 2009 10:57 am

GetTextReset
SetFocus>putty*
GetTextInRect>633,443,644,450,str
mdl>str

========================

The above should show me as single letter but this is displaying multiple letter..

Also some time I found like the result is varing...
Why this is happening? Does GetTextInRect for smaller rectangle like catching a single letter is ineffective?
Any precaution do I need to take to get a consistant result always?

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

Post by Marcus Tettmar » Tue Dec 29, 2009 11:47 am

I don't know why it returns the full string with Putty, rather than just the one character. I will ask the developers of the text capture library about this.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

Niroj@Work
Pro Scripter
Posts: 63
Joined: Thu Dec 10, 2009 8:13 am

Post by Niroj@Work » Thu Dec 31, 2009 6:00 am

And also the result is irregular even though the same rectangle I am using...

I think "GetTextInRect" is not powerful like "GetWindowTextEx"... :!:

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