CbIP Posted January 11, 2013 Share Posted January 11, 2013 Hi all!I am a newbie in AutoIt scripts and need an advice.There is a button in an application (“Reports” - at least, AutoIt Windows Info says that it is a button). This button shows a dropdown menu.I'd like my script to click on the button, choose an item from the dropdown menu and click on it.But it seems that ControlClick and ControlCommand methods do not work for me. The only working method is MouseClick. And I’d also like to run the script using scheduled tasks – so I can’t use this method.I have tried the following code:First attempt (the Button267 = “Reports”; not clicked):WinWaitActive("Systematica Radius Terminal") ControlClick("Systematica Radius Terminal", "", "Button267") ControlClick("Systematica Radius Terminal", "", "Kondor+ Open Reports") ControlClick("Systematica Radius Terminal", "", "XXX1") ControlClick("Systematica Radius Terminal", "", "XXX2")Second attempt (The dropdown menu is not shown):WinWaitActive("Systematica Radius Terminal") ControlCommand("Systematica Radius Terminal", "", "Button267", "ShowDropDown")Third attempt (This code works, but I can’t use it):WinWaitActive("Systematica Radius Terminal") MouseClick("", 295, 50)Please refer to the attached screenshots for more information: Link to comment Share on other sites More sharing options...
stormbreaker Posted January 11, 2013 Share Posted January 11, 2013 Something..something.. go ahead: $WINHANDLE = WinWaitActive("Systematica Radius Terminal") ControlClick($WINHANDLE, '', '[CLASS:Button; INSTANCE:267]') ---------------------------------------- :bye: Hey there, was I helpful? ---------------------------------------- My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1 Link to comment Share on other sites More sharing options...
CbIP Posted January 11, 2013 Author Share Posted January 11, 2013 (edited) Thank you for the advice!But it doesn't seem to be working. The code is executed without any error, but the button is not clicked.As far as I know, the program ("Systematica Radius Terminal") uses IE to build its GUI controls.Here is the screenshot: Edited January 11, 2013 by CbIP Link to comment Share on other sites More sharing options...
stormbreaker Posted January 11, 2013 Share Posted January 11, 2013 As far as I know, the program ("Systematica Radius Terminal") uses IE to build its GUI controls.Strange, and even then it is detectable by AU3 Window Info tool.... ---------------------------------------- :bye: Hey there, was I helpful? ---------------------------------------- My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1 Link to comment Share on other sites More sharing options...
CbIP Posted January 11, 2013 Author Share Posted January 11, 2013 (edited) Strange, and even then it is detectable by AU3 Window Info tool....Yep. Can see, can't touch. Just like striptease...Is there any other way to interact with GUI controls (inc. created by IE)? Edited January 11, 2013 by CbIP Link to comment Share on other sites More sharing options...
stormbreaker Posted January 12, 2013 Share Posted January 12, 2013 My last try: $WINHANDLE = WinWaitActive("[TITLE:Systematica Radius Terminal]") ControlClick($WINHANDLE, '', '[CLASS:Button; INSTANCE:267; TEXT:Reports]') ---------------------------------------- :bye: Hey there, was I helpful? ---------------------------------------- My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1 Link to comment Share on other sites More sharing options...
CbIP Posted January 14, 2013 Author Share Posted January 14, 2013 (edited) No, this code doesn't work too It is executed without any error, but nothing happens... Edited January 14, 2013 by CbIP 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