I want to :
- my script checks if an ini file exist
- if not, then create one
- if exist, then check if value exist, don't edit it. If value doesn't exist, then create it
Code: Select all
IniRead, active1 , FollowSettings.ini, Personnages, active1
IniWrite, % active1 , FollowSettings.ini, Personnages, active1
IniWrite, % active2 , FollowSettings.ini, Personnages, active2
If i don't set "iniRead", it will erase any value evrytime...
I want, for example, checking value, if it find "active1 = %anyvalue%", don't edit it. If Active1 doesn't exist, create it but with empy value
Thank you for help, sorry for bad english