Jump to content

Toolbar as Menu Help


Recommended Posts

I have a drop down menu that is actually a toolbar. So far I'm able to focus on the toolbar, and using coordinates, I can click on the 'ACTION' menu item. But I'm struggling to figure out how to click on the sub menu item 'Print'. I thought maybe sending another controlclick function offset down to the 'Print' item would work, but it does not seem to be. Dragging the Finder Tool does not seem to allow me to get info on toolbar sub-menu items like this. Looking for suggestions/pointers on dealing with menus like this.

 

Here is the Window Info for the Menu Bar:

 

Here is what I most recently tried, that last ControlClick does not seem to be doing anything for me though. The first ControlClick does open the ACTION menu:

ControlFocus($hWnd, "", "[CLASS:BCGPToolBar:400000:8:10003:10; INSTANCE:2]")
ControlClick($hWnd, "", "[CLASS:BCGPToolBar:400000:8:10003:10; INSTANCE:2]", "left", 1, 233, 11)
Sleep(1000)
ControlClick($hWnd, "", "[CLASS:BCGPToolBar:400000:8:10003:10; INSTANCE:2]", "left", 1, 233, 158)

 

Link to comment
Share on other sites

Well, thanks for that. That seems to work just fine. Here is what I wound up with:

; Trigger Print
ControlFocus($hWnd, "", "[CLASS:BCGPToolBar:400000:8:10003:10; INSTANCE:2]")
Sleep(1000)
ControlSend($hWnd, "", "[CLASS:BCGPToolBar:400000:8:10003:10; INSTANCE:2]", "{!}")
Sleep(1000)
ControlSend($hWnd, "", "[CLASS:BCGPToolBar:400000:8:10003:10; INSTANCE:2]", "{a}")
Sleep(1000)
ControlSend($hWnd, "", "[CLASS:BCGPToolBar:400000:8:10003:10; INSTANCE:2]", "{p}")
Sleep(1000)

 

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...