stie Posted March 17, 2008 Posted March 17, 2008 Hello, I'm new on autoit. I want to left-click on an item in a ListView, but without success. My first program is like this : $pid = GetProcessIDByName("xxxxxxx.exe") if $pid <> 0 then $title = GetWinTitleByProcessID($pid, "xxxxx") $hList = ControlGetHandle( $title, "", "SysListView324") $hItem = _GUICtrlListView_FindText( $hList, "name_of_existing_item_to_click" ) WinActivate($title) _GuiCtrlListView_SetItemFocused ($hList, $hItem) _GUICtrlListView_SetItemSelected($hList, $hItem) _GUICtrlListView_SetHotItem ($hList, $hItem) ControlClick($title, "", "[CLASSNN:" & "SysListView324" & "]", "left") ..... But unfornately, "ControlClick" action seems to click on ListView, not on item. Is it possible to left click on a particular item and how plz ? Thanks, B.P
Zedna Posted March 17, 2008 Posted March 17, 2008 Look at _GUICtrlListView_ClickItem() in latest Beta 3.2.11.2 Resources UDF ResourcesEx UDF AutoIt Forum Search
stie Posted March 18, 2008 Author Posted March 18, 2008 Thanks for this information. Now it's working ! (_GUICtrlListView_ClickItem) He uses latest beta for it : but now _GuiCtrlListView_SetItemSelected crash the external application. (See above code) I think that it may be important to report this problem. (?!) Regards, B.P
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