Docfxit

Opening a tab

4 posts in this topic

#1 ·  Posted

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

SupportButton.jpg

Share this post


Link to post
Share on other sites



#2 ·  Posted

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

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by Docfxit
More info

Share this post


Link to post
Share on other sites

#4 ·  Posted

I have resolved the problem.

Thank you very much.

Docfxit

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