Not sure what im doing wrong, as i am new to AHK or programming for that matter
but im trying to output one variable based on the selection of another
Code: Select all
#SingleInstance Force
Var1= || Test1| Test2| Test3|
if Var1 = Test1
Var2 = A
If Var1 = Test2
Var2 = B
Else if Var1 = Test3
Var2 = C
Gui Add, DropDownList, x20 y20 w200 vMyDDL gVar1, %Var1%
Gui Add, Text, w220 h20 vVar2
Gui Show
Return
GuiEscape:
ExitApp
Var1:
GuiControlGet, Var1
GuiControl,, edit1 %edit1%
Return