Sign in to follow this  
Followers 0
plachance

Swing Based GUI

2 posts in this topic

Hi,

Im triying to access menu of a java application and i was wondering if AutoIt works in a SWING GUI?

Here is the code i use:

ShellExecute('java', '-jar "App.jar', 'C:\myApp')
WinWaitActive("Title of myApp")
WinMenuSelectItem("Title of myApp", "", "Tools", "Configuration" )

For some reason i dont know it does not work... i searched the forum but found nothing :)

Share this post


Link to post
Share on other sites



Hi,

Im triying to access menu of a java application and i was wondering if AutoIt works in a SWING GUI?

Here is the code i use:

ShellExecute('java', '-jar "App.jar', 'C:\myApp')
WinWaitActive("Title of myApp")
WinMenuSelectItem("Title of myApp", "", "Tools", "Configuration" )

For some reason i dont know it does not work... i searched the forum but found nothing >_<

The AutoIt interpreter expects to be able to use standard Windows APIs for a menu control with WinMenu* functions. If the window and control were drawn by something else (i.e. Java) that doesn't use the standard APIs, then AutoIt can not use it directly.

What do you see with AU3Info.exe?

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  
Followers 0