jorjica Posted June 21, 2012 Share Posted June 21, 2012 Hello all, I'm new to this forum and new to AutoIT. But I like what I've learned so far. Here is my problem: I cannot get the function _GUICtrlListView_ClickItem to work. I need to doubleclick a list view item (to open a new window). The code that I use is: $tree = ControlGetHandle($t_main,"",$c_dreapta_main) $index = _GUICtrlListView_FindText($tree,$name) //this line works so I know that the handleid is ok _GUICtrlListView_ClickItem($tree,$index,"",False,2) It worked a few times but I still cannot understand why. What's interesting is that if I use the example in the function manual and I turn on debugging in get this: -->Line(0187): Invalid Class Type(s): Expecting Type(s): SysListView32 Received Type : WindowsForms10.SysListView32.app.0.2bf8098_r16_ad1 And I don't know if it's related or not but I cannot dubleclick with ControlClick on the item either. Thank you! Link to comment Share on other sites More sharing options...
stormbreaker Posted June 22, 2012 Share Posted June 22, 2012 _GUICtrlListView_ClickItem($tree,$index,"Primary",False,2) You didn't enter the mouse button to click. ---------------------------------------- :bye: Hey there, was I helpful? ---------------------------------------- My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1 Link to comment Share on other sites More sharing options...
jorjica Posted June 22, 2012 Author Share Posted June 22, 2012 Hi. It does not work with either de default value, or "Primary", or "Left", or "primary", or "left". Link to comment Share on other sites More sharing options...
jorjica Posted June 23, 2012 Author Share Posted June 23, 2012 No one knows? And something really strange is that I cannot double click that listview control with either mouseclick() or controlclick() but the rest of the listview functions (like _GUICtrlTreeView_ClickItem) do work correctly. 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