rbreaves / kinto

Mac-style shortcut keys for Linux & Windows.
http://kinto.sh
GNU General Public License v2.0
4.24k stars 212 forks source link

Debugging Keypresses on Windows #782

Open pathsny opened 1 year ago

pathsny commented 1 year ago

Hi folks, I use windows and on various applications I run into issues with keyboard shortcuts not working the way I'd expect. Partly this is an effect of the complex AHK configuration and the series of overrides or specific applications I use not being in the list.

Is there some way to get the Kinto application to spit out or display what keypresses are being sent out? Ideally if I could turn the tray into some sort of debug mode so that when I press shortcuts, it displays a tooltip or updates a logfile listing out what key shortcuts were broadcast as a result.

RedBearAK commented 1 year ago

@pathsny

You may find this helpful:

https://www.autohotkey.com/docs/v1/lib/KeyHistory.htm

Since it's AHK that does all the work, you'll find a lot of resources on the AHK site and forums for techniques to debug AHK scripts in general. There are a lot of methods, but that KeyHistory thing seems relevant. If you put it near the top of your AHK script, it pops up a window showing a list of all the keys that are coming out, I think. I've used it in the past when I was trying to figure out why something wasn't working.