Jump to content

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


sfresher
 Share

Recommended Posts

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.

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