Brickoneer Posted March 11, 2008 Posted March 11, 2008 (edited) I want to make an app that automates another app... but most of the data in the base application is represented in a listview. How can I "get into" the listview to 'read' its data? The wininfo tool gets me the control ID of the listview, but thats as far as I got. I've never had to deal with listviews before. Ugh. Anyway, thanks for your help! Brick [edit] I should say that I DID look for this topic discussed already, but nothing caught my eye. Sorry if this is a repeat! Edited March 11, 2008 by Brickoneer
Moderators SmOke_N Posted March 11, 2008 Moderators Posted March 11, 2008 I want to make an app that automates another app... but most of the data in the base application is represented in a listview. How can I "get into" the listview to 'read' its data? The wininfo tool gets me the control ID of the listview, but thats as far as I got. I've never had to deal with listviews before. Ugh. Anyway, thanks for your help! Brick [edit] I should say that I DID look for this topic discussed already, but nothing caught my eye. Sorry if this is a repeat!You can start by providing the name of the app. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Achilles Posted March 11, 2008 Posted March 11, 2008 Look at the _GUICtrlListView_* functions. They can be used for more then just AutoIt made GUI's... My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
rasim Posted March 11, 2008 Posted March 11, 2008 BrickoneerHi! Example:#include <GuiListView.au3> Send("#e") WinWait("[Class:ExploreWClass]") $hListView = ControlGetHandle("[Class:ExploreWClass]", "", "SysListView321") $ItemCount = _GUICtrlListView_GetItemCount($hListView) For $i = 0 To $ItemCount - 1 ConsoleWrite("+> " & _GUICtrlListView_GetItemText($hListView, $i) & @LF) Next
Brickoneer Posted March 11, 2008 Author Posted March 11, 2008 (edited) Ah, thanks guys!I haven't gotten the latest version of autoit yet, I'm still using 3.2.8, so I didn't have the GuiListView.You can start by providing the name of the app.I didn't name the application because it isn't a publicly used application. No point. Thanks again!Brick Edited March 11, 2008 by Brickoneer
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