Jump to content
Sign in to follow this  
Fidel

loading a treeview's context menu

Recommended Posts

Fidel

Hello,

I'm controlling another program's treeview using ControlTreeview, and it works great. I can navigate to the leaf that I want. Now I want to invoke the context menu for that node. The only way I can do it is to use

Send("{APPSKEY}")
, which requires the window to have focus. I want to be able to do it without the window having focus.

I've tried:

ControlSend ($studioTitle, "", $treeviewID, "{APPSKEY}")
but it has no effect. I know that I'm sending it to the right control because if I use
ControlSend ($studioTitle, "", $treeviewID, "{DOWN}")
, it actually moves to the next item.

So:

a) Is there another keystroke I can send it (instead of apps key) that will bring up the context menu?

muttley Is there another approach I can take to get the context menu up?

Thankyou!

Fidel

Share this post


Link to post
Share on other sites
Fidel

found the answer:

ControlSend ($studioTitle, "", $treeviewID, "+{F10}")

cheers!

fidel

Share this post


Link to post
Share on other sites
rasim

Fidel

Also see a ControlTreeView() func. in the help.

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  

×