I am working on a script that will cycle through a list of key combos. Right now if I press Ctrl+Alt+Shift+F1 it cycles through the combos forwards. The combos are Ctrl + (numpad1-9) and the Ctrl + Shit + (numpad1-7) and then it goes back to zero which is Ctrl + numpad0.
My question is: how can I make it cycle backwards if I press Ctrl + Alt + F1 ?
Code: Select all
^!+F1::
key++ ; this will help cycling through the keys depending on its value
if key = 1
Send, ^{Numpad1}
else if key = 2
Send, ^{Numpad2}
else if key = 3
Send, ^{Numpad3}
else if key = 4
Send, ^{Numpad4}
else if key = 5
Send, ^{Numpad5}
else if key = 6
Send, ^{Numpad6}
else if key = 7
Send, ^{Numpad7}
else if key = 8
Send, ^{Numpad8}
else if key = 9
Send, ^{Numpad9}
else if key = 10
Send, ^+{Numpad1}
else if key = 11
Send, ^+{Numpad2}
else if key = 12
Send, ^+{Numpad3}
else if key = 13
Send, ^+{Numpad4}
else if key = 14
Send, ^+{Numpad5}
else if key = 15
Send, ^+{Numpad6}
else if key = 16
Send, ^+{Numpad7}
else if key = 17
{
Send, ^{Numpad0}
key = 0 ; return to the original state... do this on the last hotkey you would like to send
}
return