FireLordZi Posted January 21, 2008 Share Posted January 21, 2008 How do I set the date next to a listview item, in the next column? While Alive() { DrinkWine(); }AutoIt Programmer Link to comment Share on other sites More sharing options...
stampy Posted January 21, 2008 Share Posted January 21, 2008 Not sure what you mean. Can you post some code. Link to comment Share on other sites More sharing options...
FireLordZi Posted January 21, 2008 Author Share Posted January 21, 2008 If $Online > 0 Then INIWrite("C:\buddies.ini", "OnlineBuddies", $buddyname, IniRead("C:\buddies.ini", "OnlineBuddies", $buddyname, "") & $text & ","); Writes the buddy's name and table to the ini GUICtrlSetData($nListview, "|" & "|" & _NowDate()) ; here im trying to set the date next to a listview item under a column GUICtrlSetImage($nListview, "shell32.dll", -138) Else GUICtrlSetImage($items, "shell32.dll", -110) EndIf Trying to set it next to a listview item in the column to the right of it. While Alive() { DrinkWine(); }AutoIt Programmer Link to comment Share on other sites More sharing options...
martin Posted January 21, 2008 Share Posted January 21, 2008 How do I set the date next to a listview item, in the next column?I assume you want to know how to set the text in the next column after the listview has been created, because I think you can work out the date.In GuiListView.au3 the function you need is as below and used as shown _GUICtrlListView_SetItemText(GUICtrlGetHandle($ListView), $Zero_Based_Item, "Text for column 1|21st Jan 2008", -1)From Help = itemtext separated with Opt("GUIDataSeparatorChar",...) Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
FireLordZi Posted January 21, 2008 Author Share Posted January 21, 2008 (edited) I did: _GUICtrlListViewSetItemText($nListview, $items, 2, _NowDate()) and its not working? EDIT: Never mind, I got it working. Thanks. Edited January 21, 2008 by FireLordZi While Alive() { DrinkWine(); }AutoIt Programmer 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