cyanidemonkey Posted October 2, 2007 Posted October 2, 2007 I have a list view, click a item row and it brings up a window in which you can edit the items atibutes (stored in an .ini). What I'd like is when I make the edits and save them and close the edit window to have the list view row update also. How would I go about this? My AutoIt Scripts.- AutoHost and Password Enabler for Delta Force 2 Demo.| Caffine for Winamp 2.9x and WRS 2.0 | mp3 directory cleaner | CRAP DJ | A:B:J Radio Automation Software | FFMPEG batch conversion automator
DjDeep00 Posted October 3, 2007 Posted October 3, 2007 This is how I would do it... 1. After you edit the items from the edit window, make sure you save the updated values to the ini file. 2. Use _GUICtrlListViewGetCurSel to ge the index of the row that was selected. 3. After getting the index, use _GUICtrlListViewDeleteItem to delete that row. 4. Read the ini file again for the attribute you updated and use _GUICtrlListViewInsertItem to insert the item into the same place which u deleted it from. Post some code, if you are still struggling.
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