nature-heart-software / izabela

Your speech assistant. Communicate with text-to-speech in games, on voice chat, on stream or simply on your speakers!
32 stars 6 forks source link

Add Press-to-Talk #648

Closed Wurielle closed 1 year ago

Wurielle commented 1 year ago

This won't work at the moment because Izabela takes the focus away from any application awaiting for keys to be pressed.

Wurielle commented 1 year ago

It could work in overlay mode if implemented https://github.com/nature-heart-software/izabela/pull/660

Wurielle commented 1 year ago

The legacy version of Izabela used RegisterHotKey (provided by Electron) which required every possible key to be registered (which makes it hard to support every keyboard layout) and wouldn't work in every background application (League of Legends, Lost Ark, etc).

BlockInput however works consistently across every application to prevent sending key presses to background applications.

After further testing, BlockInput also prevents SendInput from sending key presses to the focused window.

As a result, Press-to-Talk cannot be supported in this version of Izabela