Jump to content

How to automate a command on a right-click menu [SOLVED]


vince100
 Share

Recommended Posts

post-59980-0-26345700-1290173805_thumb.p

The screenshot is part of explorer UI running Qttabbar plugin.

I'd like to automate the command "Merge tabs of other windows", but have no idea how to do it in autoit.

The command is only accessible by right clicking the area under the address bar then selecting from the pop-up menu. No shortcut key is provided by the plugin.

I was thinking about using ControlClick, but had no idea how to get a handle to the pop-up menu.

Would someone please give a hint about how to achieve this? Thanks.

Edited by vince100
Link to comment
Share on other sites

What information can the autoit window info tool give about the menu control?

Thanks for the tip.

I was able to locate the control under the address bar.

Relevant code:

ControlClick("[ACTIVE]", "", "[CLASS:WindowsForms10.window.8.app.0.378734a; INSTANCE:2]", "right", 1, 1, 25)
Sleep(100)
ControlSend("[ACTIVE]", "", "[CLASS:WindowsForms10.window.8.app.0.378734a; INSTANCE:2]", "m")
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...