Hello all, this script(wrapper) uses Alternative Data Streams to store INI formatted data in the active executable even while it is running. This is great for standalone executables, or storing data you don't want a user being able to edit!
There are four simple commands:
Func _iniwrite($section, $key, $value, $stream = "DEFAULT")
return IniWrite(@ScriptFullPath&":"&$stream, $section, $key, $value)
EndFunc
Func _iniread($section, $key, $default = "", $stream = "DEFAULT")
return IniRead(@ScriptFullPath&":"&$stream, $section, $key, $default)
EndFunc
Func _inidelete($section, $key = "", $stream = "DEFAULT")
if $key <> "" Then
Return IniDelete(@ScriptFullPath&":"&$stream, $section, $key)
Else
Return IniDelete(@ScriptFullPath&":"&$stream, $section)
EndIf
EndFunc
Func _inirenamesection($section, $newsection, $flag = 0, $stream = "DEFAULT")
return IniRenameSection(@ScriptFullPath&":"&$stream, $section, $newsection, $flag)
EndFunc
Simply copy and paste these functions into your script!