Autohotkey is amazing, but I wish it used a saner language. I struggled to write a reliable golden ratio version of aero snap [1]. Dealing with different monitors, sizes, etc doesn't seem like it should be so hard, but I always get tripped up by the bizarre Loop syntax or silent failures from some simple mistake that suck the fun out and I give up.I found ahk python module [2] but combining it with the keyboard module doesn't work as well as autohotkey as a hotkey listener.
[1]: https://github.com/idbrii/daveconfig/blob/main/win/autohotke...
[2]: https://pypi.org/project/ahk/
poisonborz|2 years ago
layer8|2 years ago
wruza|2 years ago
hwayne|2 years ago
eviks|2 years ago
ramenbytes|2 years ago
pmontra|2 years ago
:-)
ad8e|2 years ago
Windows: https://github.com/randyrants/sharpkeys
Ubuntu Linux (don't know about other Linuxes): /usr/share/X11/xkb/symbols/pc
-> These solutions avoid needing to keep a keybinding application open. The Linux solution unfortunately resets after every version upgrade.TOGoS|2 years ago
(I am in the process of doing this inside OpenSCAD.)
eviks|2 years ago
Dreams of a universal hotkey listener you could use in any language via some wasm plugin magic?