vectra246 Posted June 30, 2011 Share Posted June 30, 2011 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. Link to comment Share on other sites More sharing options...
Zedna Posted June 30, 2011 Share Posted June 30, 2011 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. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
vectra246 Posted July 1, 2011 Author Share Posted July 1, 2011 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.... Link to comment Share on other sites More sharing options...
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