Create Hotkey to use a previous Hotkey again
Posted: 17 May 2018, 14:57
Is there a way to create a hotkey that when pressed would use/call the hotkey that was previously pressed?
Simple Example:
I have three hotkeys.
Let's say I press hotkeys in the following order: 1, 1, 1, 2. When I press hotkey 3 now, it should execute hotkey 2 and the MsgBox with "Hotkey-2" would pop up.
Now I press hotkey in the following order: 1, 1, 1, 1, 2, 2, 2, 1, 1. If I press hotkey-3 now, it should execute hotkey 1 and the MsgBox with "Hotkey-1" would pop up.
Can something like this be done?
Simple Example:
I have three hotkeys.
Code: Select all
1::MsgBox Hotkey-1
2::MsgBox Hotkey-2
3:: ;This hotkey should execute either hotkey 1 or 2, whatever was pressed before
Now I press hotkey in the following order: 1, 1, 1, 1, 2, 2, 2, 1, 1. If I press hotkey-3 now, it should execute hotkey 1 and the MsgBox with "Hotkey-1" would pop up.
Can something like this be done?