Jump to content
Sign in to follow this  
Gui

saving and loading URL's in a bot.

Recommended Posts

Gui

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

Share this post


Link to post
Share on other sites
Gui

oo thanks!@

EDIT: It works! Thanks a bunch!!!

Edited by Gui

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  

×