Jump to content
Sign in to follow this  
Streaky77

AutoIT and Java Swing control

Recommended Posts

Streaky77

Hi all =)

I noticed that the AutoIT window Info is not able to watch controls from JAVA application (swing UI or something else).

ex: Chrome browser buttons, the target point from AU3Info window can't find any controls. As a big picture.

Do you know how to get the CLASS identification of differents controls from a JAVA application ?

Thanks a lot!

Edited by Streaky77

Share this post


Link to post
Share on other sites
Fubarable

In order to allow it to be run on multiple operating systems and have control over look and feel, Swing does not use native components as the GUI components, and this is likely causing the problem you're running into. Myself, I don't know of work-arounds for directly communicating with Swing GUI elements (and I'm not an AutoIt pro, but I do know Java and Swing pretty well), but if the Java/Swing code is yours, it's not that hard to integrate AutoIt with Java by other means.

Edited by Fubarable

Share this post


Link to post
Share on other sites
Streaky77

In order to allow it to be run on multiple operating systems and have control over look and feel, Swing does not use native components as the GUI components, and this is likely causing the problem you're running into. Myself, I don't know of work-arounds for directly communicating with Swing GUI elements (and I'm not an AutoIt pro, but I do know Java and Swing pretty well), but if the Java/Swing code is yours, it's not that hard to integrate AutoIt with Java by other means.

The java code is not mine :/

Share this post


Link to post
Share on other sites
slu

In order to allow it to be run on multiple operating systems and have control over look and feel, Swing does not use native components as the GUI components, and this is likely causing the problem you're running into. Myself, I don't know of work-arounds for directly communicating with Swing GUI elements (and I'm not an AutoIt pro, but I do know Java and Swing pretty well), but if the Java/Swing code is yours, it's not that hard to integrate AutoIt with Java by other means.

Hi,

Would you mind post a simple example code to integrate AutoIt with Java?

Thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.