Jump to content
Sign in to follow this  

How to select one file in a SysListView32

Recommended Posts


Hello everyone,

I am a newbie with Autoit and I have a problem I can find no solution on the Internet.

I am working on a script that starts a program and after starting to select a file.

The files are in SysListView32

I think you can use _GUICtrlListView_SetItemSelected

but I can not find the right parameters for this.

Can anyone help me?


Share this post

Link to post
Share on other sites

Use ControlGetHandle() to get handle of ListView control.

Use _GUICtrlListView_FindText() or GUICtrlListView_FindInText() to get item index of desired row based on row's text.

Finally call _GUICtrlListView_SetItemSelected() with all these information.

There are examples in Autoit's helpfile for each of these functions.

Share this post

Link to post
Share on other sites


This is the code i now use :

$cWindow = ControlGetHandle("Open bestand","","[CLASS:SysListView32; INSTANCE:1]" )
$cIndex = _GUICtrlListView_FindText($cWindow,"0100.10.257")
_GUICtrlListView_SetItemSelected($cWindow, $cIndex)

On this moment it's working for me....

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.