SetControlText on a Java window?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
rullbandspelare
Pro Scripter
Posts: 149
Joined: Tue Mar 23, 2004 9:11 pm

SetControlText on a Java window?

Post by rullbandspelare » Fri Jul 31, 2009 6:59 am

Hi!
I have a question about SetControlText> on a Java window.

The window PData has many "Edit" fields but "View System Window" only has this information on the window: 67765562 - SunAwtDialog "PData".
Is there any way that I can do some sort of SetControlText>PData,Edit,2,%ID% ?

I am asuming not, so for now i am using press tab and SendText>%ID%, but this is not as safe as the SetControlText> wich I would like to use.

Thanks!

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

Post by Marcus Tettmar » Fri Jul 31, 2009 8:21 am

You are right. You can't use SetControlText on Java objects.
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