plachance Posted September 18, 2008 Share Posted September 18, 2008 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 Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 18, 2008 Share Posted September 18, 2008 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now