LuuQuangICT Posted April 2, 2016 Share Posted April 2, 2016 Hello! I have application with a ListView Control. I want to send double click to any item of this listview. I was search on google but no result which i want to do. Please help me!!! Link to comment Share on other sites More sharing options...
InunoTaishou Posted April 2, 2016 Share Posted April 2, 2016 #include <GuiListView.au3> _GUICtrlListView_ClickItem($hWnd, $iIndex [, $sButton = "left" [, $bMove = False [, $iClicks = 1 [, $iSpeed = 1]]]]) LuuQuangICT 1 Link to comment Share on other sites More sharing options...
LuuQuangICT Posted April 3, 2016 Author Share Posted April 3, 2016 Oh! I was try it but it don't work!!! Please help me Note: The application have listview is application made by C#, it isn't GUI made by autoit #include <MsgBoxConstants.au3> #include <GuiListView.au3> MsgBox($MB_SYSTEMMODAL, "", ControlListView("Form1", "", "WindowsForms10.SysListView32.app.0.bf7771_r11_ad11", "GetItemCount")) _GUICtrlListView_ClickItem("198482", 1, "left", False, 2) Link to comment Share on other sites More sharing options...
InunoTaishou Posted April 3, 2016 Share Posted April 3, 2016 The handle you're giving the _GUICtrlListView_ClickItem is "198482". That doesn't look like any handle I've ever seen in windows. #include <MsgBoxConstants.au3> #include <GuiListView.au3> Global $hWndWindow = WinGetHandle("Form1") Global $hWndLv = ControlGetHandle($hWndWindow, "", "WindowsForms10.SysListView32.app.0.bf7771_r11_ad11") MsgBox($MB_SYSTEMMODAL, "", ControlListView($hWndWindow, "", $hWndLv, "GetItemCount")) _GUICtrlListView_ClickItem($hWndLv, 1, "left", False, 2) Should do it. 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