Sign in to follow this  
Followers 0
megaman

saving and loading info to a script

3 posts in this topic

how would i go about being able to save a config that will load when a script starts, and can be edited in a GUI, and then saved again once the script is closed?

Share this post


Link to post
Share on other sites



how would i go about being able to save a config that will load when a script starts, and can be edited in a GUI, and then saved again once the script is closed?

there are alot of ways to do that, you can do it with plain files, using fileopen(), ini files with iniread/iniwrite, or registry keys using regread/regwrite

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

Simple example using the INI-functions :

; Get information
$lastStarted = INIRead(@ScriptDir & "\config.ini", "settings", "laststarted", "First time")

; Show/use information
MsgBox(64, "Last started", $lastStarted) 

; Update information
INIWrite(@ScriptDir & "\config.ini", "settings", "lastStarted", @HOUR & ":" & @MIN & ":" & @SEC)

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