goooooooood
Hello MPGH, well, my question is, how do I load the Settings saved on a .INI file?
I made a script that saves the settings, the options in my Injector, like "Close After Injection" in an INI file.
The INI file then looks like this:
But I don't know how to make it Load this Settings when opening the Injector.FPS Injector Settings Coded by bepokemon
[Inject Settings]
closeafterinjection = yes
injectmanually = no
autoloadfolder = yes
[Process Settings]
crossfire.exe
It was something like this.
I don't know if this works and where to put this.If "closeafterinjection = yes" Then
CheckBox1.Checked = True
End If
Also, crossfire should be placed, writen in TextBox1.
Close After Injection is CheckBox1,
Manual Injection is CheckBox2 and
Auto Load Folder is CheckBox3.
Thanks for whoever help me, please!
First of all, if you're going to use an ini file, it's alot easier to use 0 and 1 for true and false It makes it look neater too.
There's an easier way to save settings however, using the built in Settings() function. If you want more information, visit this tutorial (Step 2).
If you still want to use an ini file though, you'd use a StreamReader. Then from there you can pick out strings to find and see if they're set to 0 or 1. Read on it here.
[IMG]https://i789.photobucke*****m/albums/yy172/Codemunkie/sig-logo.png[/IMG]
Thanks, see if I did good in my way.
With StreamReader I used the Contains. So the code was like this:FPS Injector Settings Coded by bepokemon
[Inject Settings]
closeafterinjection = yes
injectmanually = no
autoloadfolder = yes
[Process Settings]
crossfire.exe
Thanks for your help.Code:If Reading.Contains("closeafterinjection = yes") Then CheckBox1.Checked = True End If
#Request Solved
@Liz, @Ghost