Sign in to follow this  
Followers 0
sfresher

When an tree item is selected, can we send a right click to it?

6 posts in this topic

I am using the build-in ControlTreeView function to select the desired item. But how do we send a right click command to it then?

Share this post


Link to post
Share on other sites



sfresher

See in the help file a _GUICtrlTreeView_ClickItem() func.

Share this post


Link to post
Share on other sites

Instead of using the UDF _GUICtrlTreeView, I used built-in ControlTreeView, which appears easier to handle in my case. But it seems like MouseClick or Select doesn't work.

For $i = 1 To $nMax
$sItem = ControlTreeView ("Title", "", "WindowsForms10.SysTreeView32.app.0.378734a2", "GetText", "#0|#0|#" & $i - 1)
If StringLen ($sItem) = 5 Then
ControlTreeView ("Title", "", "WindowsForms10.SysTreeView32.app.0.378734a2", "Select", "#0|#0|#" & $i - 1)
MouseClick ("right")
EndIf
Next

sfresher

See in the help file a _GUICtrlTreeView_ClickItem() func.

Share this post


Link to post
Share on other sites

bump

Share this post


Link to post
Share on other sites

Can you ControlFocusthe control and Send {APPSKEY} ?


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites

Cool, it works well!

Just curious, so the {APPSKEY} means right click key?

Can you ControlFocusthe control and Send {APPSKEY} ?

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  
Followers 0