devilyn Posted November 21, 2006 Share Posted November 21, 2006 Hi all i have a code to read a text file in to a gui with listview and i want it to update when i insert a new row in the text file without restarting my application can it be done? thanks in advance lior Link to comment Share on other sites More sharing options...
devilyn Posted November 21, 2006 Author Share Posted November 21, 2006 Maybe i was not clear this is my code #include <GUIConstants.au3> $GUI = GUICreate("AForm1", 633, 454, 193, 115) $List = GUICtrlCreateList("", 152, 40, 297, 297) GUISetState(@SW_SHOW) $PROFILES = IniReadSectionNames("C:\2.INI") For $i = 1 To $PROFILES[0] GUICtrlSetData($List,$PROFILES[$i]) Next While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd now the contect on 2.ini is: [A1] [A2] [A3] when i run my app it read the ini section names and put them in the gui listview now i want to update my ini and insert anoter section ([a4]) and it want the gui list to update live and display the [a4] without closing the app Thanks again Lior 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