I fixed the variable problem with a variable translation.
I partially fixed the subs running over each other with a msgbox. Wouldn´t help with subsequent subs called by the sub. Those would jumble with the loop subs.
I ended up with this:
Code: Select all
TC:=1
Loop, %HotKeyLimit%
{
If (Hkey%TC%Toggle = 1) {
If (HKey%TC%Type1 = 1) {
Hk:= TC
T1ConfigTrigger:= 0
Gosub ConfigType1
Sleep, 200
If T1ConfigTrigger:= 1 {
Continue
Msgbox , 0,Hotkey %Hk%, Hotkey %Hk%`nType 1`nReady to Continue?
If (HKey%TC%Type2 = 1) {
Hk:= TC
T2ConfigTrigger:= 0
Gosub ConfigType2
Sleep, 200
If T2ConfigTrigger:= 1 {
Continue
Msgbox , 0,Hotkey %Hk%, Hotkey %Hk% Type 2`nReady to Continue?
If (HKey%TC%Type3 = 1) {
Hk:= TC
T2ConfigTrigger:= 0
Gosub ConfigType2
Sleep, 200
If T2ConfigTrigger:= 1 {
Continue
Msgbox , 0,Hotkey %Hk%, Hotkey %Hk% Type 3`nReady to Continue?
If (HKey%TC%Type4 = 1) {
Hk:= TC
T3ConfigTrigger:= 0
Gosub ConfigType3
Sleep, 200
If T3ConfigTrigger:= 1 {
Continue
Msgbox , 0,Hotkey %Hk%, Hotkey %Hk% Type 4`nReady to Continue?
If (HKey%TC%Type5 = 1) {
Hk:= TC
T4ConfigTrigger:= 0
Gosub ConfigType4
Sleep, 200
If T4ConfigTrigger:= 1 {
Continue
Msgbox , 0,Hotkey %Hk%, Hotkey %Hk% Type 5`nReady to Continue?
If (HKey%TC%Type6 = 1) {
Hk:= TC
T5ConfigTrigger:= 0
Gosub ConfigType5
Sleep, 200
If T5ConfigTrigger:= 1 {
Continue
Msgbox , 0,Hotkey %Hk%, Hotkey %Hk% Type 6`nReady to Continue?
If (HKey%TC%Type7 = 1) {
Hk:= TC
T6ConfigTrigger:= 0
Gosub ConfigType6
Sleep, 200
If T6ConfigTrigger:= 1 {
Continue
Msgbox , 0,Hotkey %Hk%, Hotkey %Hk% Type 7`nReady to Continue?
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
TC+=1
}
Return
Thanks for the attention and regards