dolphins Posted March 3, 2015 Share Posted March 3, 2015 Hello, I have an application with a tree view. This app isn't written with AutoIt, but I want to control the app with AutoIt. I got the handle of the TreeView with ControlGetHandle. And with _GUICtrlTreeView_FindItem I got the handle of the item. But how can I send a doubleclick to that item? I want to "execute" the item. Thanks in advance! Link to comment Share on other sites More sharing options...
MikahS Posted March 3, 2015 Share Posted March 3, 2015 _GUICtrlTreeView_ClickItem($hWnd, $hItem [, $sButton = "left" [, $bMove = False [, $iClicks = 1 [, $iSpeed = 0]]]]) ;put 2 clicks in the clicks parameter and replace the rest with your values. Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
dolphins Posted March 4, 2015 Author Share Posted March 4, 2015 thanks, that worked! Link to comment Share on other sites More sharing options...
MikahS Posted March 4, 2015 Share Posted March 4, 2015 My pleasure. Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ 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