mircea Posted April 28, 2007 Posted April 28, 2007 Well now my problem is just to WRITE the $$$$ file and i dont get it how to make it all is working all is perfect ( this is a part of a bigger project) can you tell me how can i write and P.S when i go to AGENDA PERSONALA ( PERSONAL AGENDA) i want to automaticly read the $scrie and can add and save so please AUTOIT team and friends of AutoIT PIMP MY SCRIPT #include <GUIConstants.au3> #include <GuiList.au3> #include <GuiCombo.au3> #include <File.au3> $Scrie = Fileopen("D:\1 password program\cel bun\agenda personala.txt",1) Opt ('MustDeclareVars', 1) Dim $msg, $ret, $scrie Dim $input, $listbox, $button GUICreate("ListBox Add Item Demo", 500, 350, -1, -1) GUICtrlCreateLabel("Adauga ce ai pe ziua de azi", 25, 15) $input = GUICtrlCreateInput("", 165, 10, 180, 25) $listbox = GUICtrlCreateList("", 165, 40, 180, 120) $button = GUICtrlCreateButton("Add to List", 175, 160, 120, 40) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $button If (StringLen(GUICtrlRead($input)) > 0) Then $ret = _GUICtrlListAddItem ($listbox, GUICtrlRead($input)) FileWrite($Scrie, $input) FileClose($Scrie) EndIf EndSelect WEnd
Shevilie Posted April 28, 2007 Posted April 28, 2007 Well for the load and save.. you can only read OR write to a file, so you would have to close the file between those to things Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
_Kurt Posted April 28, 2007 Posted April 28, 2007 so please AUTOIT team and friends of AutoIT PIMP MY SCRIPTToo bad "X to the Z - Xzibit" isn't here Kurt Awaiting Diablo III..
mircea Posted April 29, 2007 Author Posted April 29, 2007 well i dont get it :-| sorry what do you mean to close ?
Shevilie Posted April 29, 2007 Posted April 29, 2007 The file itself.. You open a file with FileOpen then you read it.. Close the file.. Open the file again to write.. and then write the text.. Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
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