A guide to mastering the implementation of simultaneous keyboard shortcuts in AutoHotkey, the automation software and programming/scripting language for Windows PCs.
In AutoHotkey, it’s well known that you can implement shortcuts with any three keys by doing the following:
#If GetKeyState("space", "P")
ctrl & d::
msgbox, debug.
return
#If
Looking at the following article, it says you can implement something similar with “SuperHotkey”.
Can you assign a four-key combination as a hotkey? - Ask for Help - AutoHotkey Community
SuperHotkey reference:
[AHK_H(+dll)] - SuperHotkey() - Scripts and Functions - AutoHotkey Community
With SuperHotkey, it appears you can set hotkeys with syntax like the following, which would normally cause errors in regular AutoHotkey:
^LButton & a & h::
!LButton & RButton & a::
^+a & h & k::
^+1 & 2 & 3 & 4::
However, the crucial module has broken links and doesn’t seem to be currently available.
Furthermore, this might be my misunderstanding, but when I clicked the zip download link on the page above, I received a thinkPHP hacking attack. Since you can’t download it anyway, I recommend not referring to the above page.
Also, this article is not clickbait, and as shown below, presents the correct answer. If you refer to the following, everything should be resolved.
Example implementation of “Left Arrow Key + Right Arrow Key + Ctrl + D” shortcut (hotkey):
#If GetKeyState("left") && GetKeyState("right")
ctrl & d::
msgbox, debug.
return
#If
It’s frustrating that I couldn’t notice it, but it was surprisingly simple.
Source is below:
Three Key combination for AutoHotkey - Super User
Using this, you can implement hotkeys with 5 or 6 simultaneous presses. In my case, as shown above, I use ctrl, space, and arrow keys which have high versatility for simultaneous pressing.