ililim / dual-key-remap

Remap any key to any other two keys on Windows 🔥. Remap CapsLock to both Ctrl and Escape! (It's like xcape for windows!)
GNU General Public License v2.0
499 stars 36 forks source link

Add bypass by window title facility #27

Closed thelimberlambda closed 2 years ago

thelimberlambda commented 4 years ago

Provides the facility to bypass all mapping and injection functionality when the foreground window has a title that matches any one of a set of configured strings.

For example, when using the Windows RDP client, the corresponding window will have a title containing the string "Remote Desktop Connection", in this case, a configuration line will ensure that keys aren't mapped and injections don't happen so that problems related to certain keys not being reported to the hook procedure are averted. In this case, and if required, a separate instance of dual-key-remap may be run on the target host.

Example of such a configuration line:

bypass_with_title=Remote Desktop Connection
ililim commented 3 years ago

Interesting! So I assume this is a work-around https://github.com/ililim/dual-key-remap/issues/26? I'd like to give a shot at fixing that one proper, but a feature like this could be useful regardless. I'll give a think on how this should be structured, I'm actually mid rewrite of the app so might incorporate some parts of this PR after that's merged.

thelimberlambda commented 3 years ago

Looking forward to the updated version—in the meantime, I'm using that patch to solve #26, yes ... I spent a small amount of time trying to track the problem down, so basically, certain key events just don't come through to the hook procedure when using the remote desktop client. Not entirely sure why that might be—perhaps the Remote Desktop is swallowing them before they can get through? I'd imagine that that will always be a potential danger, and the only way to truly solve that is to write a virtual keyboard driver.

On Thu, 1 Oct 2020 at 10:11, ililim notifications@github.com wrote:

Interesting! So I assume this is a work-around #26 https://github.com/ililim/dual-key-remap/issues/26? I'd like to give a shot at fixing that one proper, but a feature like this could be useful regardless. I'll give a think on how this should be structured, I'm actually mid rewrite of the app so might incorporate some parts of this PR after that's merged.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ililim/dual-key-remap/pull/27#issuecomment-701719771, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABRVIGEFPYSSGZYFB7UJVTSIPF3HANCNFSM4Q6AH4DA .

ililim commented 2 years ago

Not compatible with latest version, closing for now - feel free to open an issue to discuss this feature :)