Text recognition with Java application

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
AEMSUser
Newbie
Posts: 2
Joined: Tue Jan 27, 2009 6:21 pm

Text recognition with Java application

Post by AEMSUser » Tue Jan 27, 2009 7:04 pm

Hi,

I'm using Macro Scheduler to record some tests on a Java application. Macro Scheduler recognizes rightfully the windows name (with functions like WaitWindowOpen by exemple) but doesn't recognize buttons (PushButton>) text (GetWindowTextEx>) or checkbox (SetCheckBox>).

Someone has an idea for this problem ? Regards.
An AE MacroScheduler User

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Jan 27, 2009 8:10 pm

If this program is not using "conventional" Windows buttons, then you could use MouseMove or MouseMoveRel or FindImagePos or GetTextxxx commands. Many examples in Help and on forum
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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 Jan 27, 2009 9:04 pm

See:
http://www.mjtnet.com/blog/2007/12/12/c ... reen-text/

If the Java app uses the AWT or SWT frameworks you can capture its text. If it uses Swing, you can't, because Swing doesn't use Windows text output functions.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

AEMSUser
Newbie
Posts: 2
Joined: Tue Jan 27, 2009 6:21 pm

Post by AEMSUser » Tue Jan 27, 2009 9:07 pm

Ok !

So, that's the problem : Swing. Thanks to both of you.
An AE MacroScheduler User

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