3 ms·
Another interesting trick is to have a capslock layer (or any other "useless" key you may have, but capslock is much easier to reach obviously) with something l
by puika 4y ago
Another interesting trick is to have a capslock layer (or any other "useless" key you may have, but capslock is much easier to reach obviously) with something like:
; ahk v1 code
CapsLock::
KeyWait, CapsLock
If (A_PriorKey="CapsLock")
SetCapsLockState, % GetKeyState("CapsLock","T") ? "Off" : "On"
Return
#If, GetKeyState("CapsLock", "P")
u:: ; convert selection to code in markdown by pressing CapsLock+u
SendRaw, ````
SendInput {Left}
Return
; ...
#If
I also find myself with way too many obscure Mouse button {1|2}, Ctrl, Alt, Capslock, F{1|12}, etc. incantations I never remember and end up opening the script to search them. I thought about adding pie menus based on context but never got to it. Would you mind sharing a minimal example of your right click menu? Sounds much simpler and accessible. The keyboard hook à la vscode chords also seems pretty useful, will definitely implement that
- cfiggers 4y agoHere's some Gists that show a simple example of each concept: - Key chords: https://gist.github.com/CFiggers/ccb6bc911ee87f423f558368128d433e https://gist.github.com/CFiggers/ccb6bc911ee87f423f558368128... - Right-click menus: https://gist.github.com/CFiggers/96bc37ca468909c9ec83252144c1075e https://gist.github.com/CFiggers/96bc37ca468909c9ec83252144c... Let me know if you have questions. Enjoy!