Jump to content
Sign in to follow this  
vince100

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

Recommended Posts

vince100

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

Share this post


Link to post
Share on other sites
Tvern

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

Share this post


Link to post
Share on other sites
vince100

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")

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.