cajhin / capsicain

Powerful low-level keyboard remapping tool for Windows
353 stars 18 forks source link

Send key-press on config switch #45

Closed MatejKafka closed 1 year ago

MatejKafka commented 3 years ago

In my current AHK config, I have a small GUI indicator in the corner that changes color based on currently selected config, so I always know which config is active. I'd like to replicate this with Capsicain.

I understand that Capsicain cannot control GUI directly, so I want to use an AHK script that listens for a synthetic key-press from Capsicain (something like F13) and changes the GUI indicator accordingly. Therefore, I need to send a key-press on every config change.

I could define custom hotkeys for config switching and send the keystroke there, but if I then switched using the default Escape+ hotkeys, the GUI indicator would not be updated.

Is it possible to send the keystroke automatically, or is using custom hotkeys for switching the only option?

cajhin commented 1 year ago

Layer number is shown in the traybar