Gui Posted November 16, 2009 Share Posted November 16, 2009 Aye, sorry for all the posts. I just find it very helpful here . Anyways, I have an input box ( for a URL ) and 2 buttons, 'load' and 'save'. The save button saves the current URL in the input box to a text file. Then the load button read's the line where the URL should be , and puts it into the input box with GUICtrlSetData. Anyways, it's not working properly. I want the load button to 'LOAD' the last saved URL basicly. I've tried using variables with numbers in a loop, no use. Here's source of the area. Func save() FileWriteLine($fille,GUICtrlRead($url)) ; $Url is the input box. GUiCtrlSetData($url,"") ; makes it blank. I could leave it, but just chose to clear it. EndFunc Func loadp() $o = $o + 1 $k = FileReadLine($fille,$o) ; so each time, the line should increase by 1 according to how many URL's are saved. Having problems though, if there GUICtrlSetData($url,$k) ; is a better way, please help me out. :/ EndFunc Link to comment Share on other sites More sharing options...
Zedna Posted November 16, 2009 Share Posted November 16, 2009 From Autoit's history:History16th May, 2008 - v3.2.12.0Added: FileReadLine( ,-1) read last line. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Gui Posted November 16, 2009 Author Share Posted November 16, 2009 (edited) oo thanks!@ EDIT: It works! Thanks a bunch!!! Edited November 16, 2009 by Gui 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