Sign in to follow this  
Followers 0
vectra246

How to select one file in a SysListView32

3 posts in this topic

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?

Thanks.

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

Thanx,

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  
Followers 0