I am working on a script where I need the end-user to use at least 28 DropDownLists. As you might guess, all these will be painful to fill again and again so they must be saved in a setting.ini file and load from there automatically when the script is opened. Every List has a different name, I will just put an example code snippet here for you to help me better. This script is written for a game, every list contains a certain amount of skills from the game. That's why these need to be given precisely and differently so, later on, I can put those skills to good use.
Code: Select all
#SingleInstance Force
#NoEnv
SetWorkingDir %A_ScriptDir%
SetBatchLines -1
Skills = Skill1 | Skill2 | Skill3 | Skill4 | Skill5 | Skill6 | Skill7
;FIRST SKILL BAR
Gui Add, GroupBox, x32 y56 w127 h469, Skill Bar 1
Gui Add, DropDownList, vSkillBar1_SKILL1 x48 y88 w89, 1.Skill || %Skills%
Gui Add, DropDownList, vSkillBar1_SKILL2 x48 y120 w89, 2.Skill || %Skills%
Gui Add, DropDownList, vSkillBar1_SKILL3 x48 y151 w89, 3.Skill || %Skills%
Gui Add, DropDownList, vSkillBar1_SKILL4 x48 y182 w89, 4.Skill || %Skills%
;SECOND SKILL BAR
Gui Add, GroupBox, x150 y56 w127 h469, Skill Bar 2
Gui Add, DropDownList, vSkillBar2_SKILL1 x168 y88 w89, 1.Skill || %Skills%
Gui Add, DropDownList, vSkillBar2_SKILL2 X168 y120 w89, 2.Skill || %Skills%
Gui Add, DropDownList, vSkillBar2_SKILL3 x168 y151 w89, 3.Skill || %Skills%
Gui Add, DropDownList, vSkillBar2_SKILL4 x168 y182 w89, 4.Skill || %Skills%
;THIRD SKILL BAR
Gui Add, GroupBox, x268 y56 w127 h469, Skill Bar 3
Gui Add, DropDownList, vSkillBar3_SKILL1 x290 y88 w89, 1.Skill || %Skills%
Gui Add, DropDownList, vSkillBar3_SKILL2 X290 y120 w89, 2.Skill || %Skills%
Gui Add, DropDownList, vSkillBar3_SKILL3 x290 y151 w89, 3.Skill || %Skills%
Gui Add, DropDownList, vSkillBar3_SKILL4 x290 y182 w89, 4.Skill || %Skills%
Gui Show, w782 h622, Window
Return
SaveButton:
Gui, Submit, NoHide
;Some magical things
Return
GuiEscape:
GuiClose:
ExitApp
Thanks in advance.