To Plany123 & Unknown661:
You should look into the following autoit fuctions:
Code:
IniWrite
IniWriteSection = [$Array][0]
IniRead
IniReadSection = [$Array][0]
This will solve problems with .txt files.
Heres some example code :)
Where:
Code:
$AttackKey1 = GUIctrlcreateInput("1",,,,)
$Waypointslist = GUICtrlcreatelist("Waypoints")
You can make buttonSAVE() do:
Code:
$savedname = InputBox("Name of Saved Profile", "Enter the name of the profile","","")
If $savedname = @error = 1 Then
;For Attack Keys
IniWrite("AionAutoitBot.ini",$savedname & "AttackKeys", "AttackKey1", GUICtrlRead($AttackKey1))
;For Waypoints (could use array)
IniWrite("AionAutoitBot.ini",$savedname & "Waypoints", $n & "Waypoint", GUIctrlread($waypointslist))
EndIf
EndFunc
;#####OR you could use this for the AddWP()
$playerX = PlayerXPos()
$playerY = PlayerYPos()
$playerZ = PlayerZPos()
IniWrite("Aion Jatabot.ini","Waypoints",$line & " X",Round($playerX,2))
IniWrite("Aion Jatabot.ini","Waypoints",$line+1 & " Y",Round($playerY,2))
IniWrite("Aion Jatabot.ini","Waypoints",$line+2 & " Z",Round($playerZ,2))
$line=$line+3
;################################################
You can IniWrite all user settings, all waypoints, etc etc.
For IniRead (& Write to GUI) a buttonLOAD():
Code:
$savedname = InputBox("Name of Saved Profile", "Enter the name of your saved profile","","") ; This could be done differently - just an example
;For Attack Keys
$savedAttackKey1 = iniread("AionAutoitBot.ini", $savedname & "AttackKeys", "AttackKey1", "")
Guictrlsetdata($AttackKey1, $savedAttackKey1)
;This way with ARRAY's for waypoints (much better)
$var= IniReadSection("AionAutoitBot.ini",$savedname & "Waypoints")
If @error Then
;do nothing
Else
For $n = 1 To $var[0][0]
GUICtrlSetData($waypointslist,$var[$n][0] & " = " & $var[$n][1] & "|")
Next
EndIf
Endfunc
This is just example to show how .ini is alot more powerful than .txt
:) Hope I helped & keep up the good work!