Code: Select all
#Requires AutoHotkey v2.0
FFB := [
{var1: "65", var2: "100", var3: "100", var4: "100", var5: "100", var6: "900"},
{var1: "75", var2: "100", var3: "100", var4: "0", var5: "0", var6: "900"},
{var1: "75", var2: "100", var3: "100", var4: "0", var5: "0", var6: "900"},
{var1: "75", var2: "100", var3: "100", var4: "25", var5: "25", var6: "300"},
{var1: "75", var2: "100", var3: "100", var4: "25", var5: "25", var6: "900"},
{var1: "75", var2: "100", var3: "100", var4: "25", var5: "25", var6: "1080"}
]
Game1N := "Assetto Corsa"
Game2N := "Assetto Corsa Competizione"
Game3N := "Dirt Rally 2.0"
Game4N := "Project Cars 2"
Game5N := "RaceRoom Racing Experience"
GameList := ["Default", Game1N, Game2N, Game3N, Game4N, Game5N]
Gui1 := Gui()
Gui1.SetFont("s12", "Calibri")
Gui1.AddDropDownList("Choose2 vDDL", GameList).OnEvent("Change", Update_Gui)
Gui1.AddEdit("xp y+10 wp vEdit1", )
Gui1.AddEdit("xp y+10 wp vEdit2", )
Gui1.AddEdit("xp y+10 wp vEdit3", )
Gui1.AddEdit("xp y+10 wp vEdit4", )
Gui1.AddEdit("xp y+10 wp vEdit5", )
Gui1.AddEdit("xp y+10 wp vEdit6", )
Gui1.Show()
Update_Gui()
return
Update_Gui(*){
loop 6{
Gui1["Edit" A_Index].Value := FFB[Gui1["DDL"].Value].var A_Index ;Gui1["Edit" A_Index].Value := FFB[Gui1["DDL"].Value].var1
}
}