sfresher Posted September 30, 2008 Share Posted September 30, 2008 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? Link to comment Share on other sites More sharing options...
rasim Posted September 30, 2008 Share Posted September 30, 2008 sfresherSee in the help file a _GUICtrlTreeView_ClickItem() func. Link to comment Share on other sites More sharing options...
sfresher Posted September 30, 2008 Author Share Posted September 30, 2008 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 More sharing options...
sfresher Posted October 1, 2008 Author Share Posted October 1, 2008 bump Link to comment Share on other sites More sharing options...
LarryDalooza Posted October 1, 2008 Share Posted October 1, 2008 Can you ControlFocusthe control and Send {APPSKEY} ? AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
sfresher Posted October 1, 2008 Author Share Posted October 1, 2008 Cool, it works well!Just curious, so the {APPSKEY} means right click key?Can you ControlFocusthe control and Send {APPSKEY} ? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now