-
Notifications
You must be signed in to change notification settings - Fork 18
Combine with AutoHotkey
I use Autohotkey for a couple of features that Capsicain cannot do. Generally speaking, Capsicain is a very focused console app and does not understand the Windows GUI. AHK on the other hand is general purpose and can to a thousand things.
To trigger a function in AHK, Capsicain must send a key or key combo, and AHK must have a definition for that.
I use F14 and F15 as special 'modifiers' for AHK messages.
AHK cannot send anything to Capsicain
AHK lives on a higher level than Capsicain. It cannot sent key events "down there to the USB driver".
Also, Capsicain does not (cannot) listen to Windows events. It listens to keys coming from the hardware, exclusively.
Caps (=MOD9) + [3] shall copy the selected text to clipboard 3.
# capsicain
REWIRE Caps MOD9
COMBO 3 [...& .... ....] > combo(F14+3) #this sends F14 down, 3 down, 3 up, F14 up
; AutoHotkey
F14 & 3 up::jCopy2Clipboard(3)
- Capsicain can autostart AHK with
GLOBAL startAHK
- ESC+A starts Autohotkey. ESC+Y ends autohotkeY
- F14 and F15 have a hardcoded feature: they are always sent out a bit slow, so that AHK has no problems to keep up.
Capsicain will not use an AHK installed on the system.
To autostart AHK on capsicain startup, copy an autohotkey.exe and autohotkey.ahk to the same folder as capsicain.exe