Sign in to follow this  
Followers 0
vmars

How to capture output from a "SysListView32" control?

5 posts in this topic

WinXp SysListView32 http://www.autoitscript.com/forum/index.php

Greetings;

I would like to capture ALL the data in a "SysListView32" control?

Whenever I run a 'Windows Explorer Search',

I can save the search ARGs (Files named regex.fnd),

but not the results.

Is there already a Script that would allow to save search results?

Thanks ! ...Vern

Share this post


Link to post
Share on other sites



In Windows XP you can save your search results to a .fnd file by using the File menu (right next to the Edit and View menus near the top of the Explorer window). What version of Windows are you using that you can't save your results?

Anyway, there is a way to do this using the UDF's under GuiListView Management - like maybe _GUICtrlListView_GetItemTextArray or _GUICtrlListView_GetNextItem


Das Häschen benutzt Radar.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Link is wrong.

I would like to capture ALL the data in a "SysListView32" control?

Whenever I run a 'Windows Explorer Search',

I can save the search ARGs (Files named regex.fnd),

but not the results.

Is there already a Script that would allow to save search results?

Based on Melba23 example.

#Include <Array.au3>
#Include <GUIListView.au3>

$hList = ControlGetHandle('Search Results', '', '[CLASS:SysListView32;INSTANCE:1]')

Global $Count = _GUICtrlListView_GetItemCount($hList)
Dim $aData[$Count]
For $i = 0 to $Count - 1
    $aData[$i] = _GUICtrlListView_GetItemText($hList, $i)
Next

_ArrayDisplay($aData)
Edited by Yashied

Share this post


Link to post
Share on other sites

[quote name='Squirrely2' Anyway, there is a way to do this using the UDF's under GuiListView Management - like maybe _GUICtrlListView_GetItemTextArray or _GUICtrlListView_GetNextItem

Share this post


Link to post
Share on other sites

Squirrely2:

Actually, saving the search, only saves the ARGs of the search. So the search has to be run again with the same args. Thanks!

Yashied:

Thanks for the code!

I can test it out later today.

Btw: What are UDFs?

(noooobie)...Vern

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