Docfxit Posted July 4, 2017 Share Posted July 4, 2017 I would like to open a pull down tab. My code isn't working. WinWait("UltraEdit","") If Not WinActive("UltraEdit","") Then WinActivate("UltraEdit","") WinWaitActive("UltraEdit","") ControlClick('UltraEdit', 'Support', '[CLASS:BCGPRibbonBar:400000:8:10003:10; INSTANCE:1]') Does anyone know what I am doing wrong? Thanks, Docfxit Link to comment Share on other sites More sharing options...
Malkey Posted July 5, 2017 Share Posted July 5, 2017 This should work. Opt("WinTitleMatchMode", -2) ; 1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase. ; So, -2=Case-insensitive subStr. Title parameter will match even if "UltraEdit" is only a part of the window's title. ; The use of this Opt() function is most likely not necessary. If WinExists("UltraEdit") Then WinActivate("UltraEdit", "") WinWaitActive("UltraEdit", "") ;ControlClick('UltraEdit', '', '[CLASS:BCGPRibbonBar:400000:8:10003:10; INSTANCE:1]') ; Using the control's Class and Instance properties. ; or ControlClick('UltraEdit', '', 'BCGPRibbonBar:400000:8:10003:101') ; Using the control's ClassnameNN property. Else MsgBox(0, "Error", 'Window "UltraEdit" does not exist.') EndIf Link to comment Share on other sites More sharing options...
Docfxit Posted July 5, 2017 Author Share Posted July 5, 2017 (edited) Thank you very much for the correction in code. Unfortunately it isn't working. I don't get the MsgBox Error. I also don't get the Support tab to open. Do you have any other ideas? Maybe I should give you some more information. I'm trying to open the Support tab in Ultraedit ver. 24.10.0 32. The latest version I'm running in Win7 With AutoIt ver. 3.3.14.2 Thanks, Docfxit Edited July 5, 2017 by Docfxit More info Link to comment Share on other sites More sharing options...
Docfxit Posted July 5, 2017 Author Share Posted July 5, 2017 I have resolved the problem. Thank you very much. Docfxit 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