Sign in to follow this  
Followers 0
devilyn

Live Update

2 posts in this topic

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

Share this post


Link to post
Share on other sites



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

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