Text Capture funtions do not work on Tablet PC

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
yenprice
Newbie
Posts: 10
Joined: Wed Oct 01, 2008 6:33 am
Contact:

Text Capture funtions do not work on Tablet PC

Post by yenprice » Wed Oct 01, 2008 6:52 am

Hello,

I'm writing a super simple code like this

SetFocus>EML (B) Yen Price - Windows Internet Explorer
GetWindowTextEx>EML (B) Yen Price - Windows Internet Explorer,strText
message>strText

It works fine on my Desktop, but it just give me a blank message when I run it on my Tablet PC (Window XP). Most commands I tried on this Tablet worked fine, but the all the Text Capture functions don't seem like working.

Can you give me a hind?

Thank you
Yen N Price

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

Post by Marcus Tettmar » Wed Oct 01, 2008 2:38 pm

Try reinstalling Macro Scheduler on the tablet and confirm these files exist in the program folder:

ICall.dll
GetWordNT.dll

Then reboot.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

fightcancer
Macro Veteran
Posts: 260
Joined: Fri Apr 15, 2005 8:32 am

Post by fightcancer » Fri Oct 03, 2008 10:46 pm

Same issue here but using the GetTextInRect function. The command fails occasionally but works usually.

So I closed MS, and when I went to reinstall (per instructions above) I got this error during the uninstall through CP's Add/Remove Progs:
Notice

D:\Program Files\Macro Scheduler\GetWordNT.dll

This file is in use and cannot be deleted. Close the above file and click Retry to try again.
The message goes on, but you get the gist.

Reinstalled and will continue to test. So far so good. Added a small error checking routine to see if the Length of the result variable < 2.

fightcancer
Macro Veteran
Posts: 260
Joined: Fri Apr 15, 2005 8:32 am

Post by fightcancer » Sat Oct 04, 2008 1:03 am

The issue still occurs regularly. GetTextInRect, or a component of it installed on my computer, is not working as intended. (I'm on a desktop w/XP SP2.)

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

Post by Marcus Tettmar » Sat Oct 04, 2008 6:31 am

You may need to use these functions in a loop, because the app may not always be calling text out. Use a small loop that queries GetTextInRect several times until either you get some text or a predetermined amount of time passes. That's how the text capture sample macro works.

Also, feel free to download and try the latest version 3.2 of the text capture libraries: http://www.mjtnet.com/software/tclib32.zip

You may need to reboot before you can replace the DLLs as they may be in use, or cached, by the system, even if you exit Macro Scheduler.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

fightcancer
Macro Veteran
Posts: 260
Joined: Fri Apr 15, 2005 8:32 am

Post by fightcancer » Thu Oct 09, 2008 9:21 am

Will do. Thanks for that!

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