Jump to content
Sign in to follow this  

How to click on item of ListView ?

Recommended Posts


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" )


_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 ?



Share this post

Link to post
Share on other sites

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. (?!)



Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...