Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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....

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
×
×
  • Create New...