DreymaR / BigBagKbdTrixPKL

"DreymaR's Big Bag of Keyboard Tricks" for Windows with EPKL
Other
326 stars 32 forks source link

EPKL has an issue with ShareX #85

Closed Ryuo1 closed 5 months ago

Ryuo1 commented 5 months ago

The Colemak layout has an issue with ShareX that it doest't register the key 'PrtSc' (printscreen) when on the Colemak layout, however it works fine on the QWERTY layout.

DreymaR commented 5 months ago

The phenomenon/problem of Keyboard Hook competition is described in the README. Did you read it?

What you can try is to unset EPKL's hotkey for the PrtScn key. It's mapped in the EPKL_Layouts file. You can uncomment it there, or give it an -- entry in an Override file.

https://github.com/DreymaR/BigBagKbdTrixPKL/blob/b5091ba60fa03ff8deb50dfa2eeb3f57eca86ac2/EPKL_Layouts_Default.ini#L252

Uh, no? In the Default file that key isn't mapped. I use it, in my Override file, for my Compose key. But you don't? In that case, there may be no good solution to your problem as long as Microsoft doesn't fix its hook competition issues (which won't happpen?).

Ryuo1 commented 5 months ago

Is there a workaround to this? e.g. as you said you use if as a compose key? Isn't there a way to manually remap it to PrtSc? Even the Extend's PrtSc does not work.

DreymaR commented 5 months ago

That's just it, if you re-remap it to PrtScn (uncomment the qwPSC mapping in EPKL_Layouts_Default) I don't think that'll make your other program any happier as they'll still be competing for the same hook.

Did you do as I said and read up about hook competition? Then you understand what we're up against here.

If there were any key combo you need from your gesture, it'd be possible to just map it to something else in EPKL. But that's not the case here?

Ryuo1 commented 5 months ago

respectfully i did not understand when i read that 😭 (hook competition) what if i just use the windows keyboard layout of colemak and keep EPKL only for extend?

DreymaR commented 5 months ago

If you use several programs that utilize low-level keyboard hooks at the same time, they will compete for priority.

This means you probably can't use ShareX and EPKL at the same time without problems. I'm not sure, but it is a possibility.

I use the Windows Snipping Tool for screenshots; I even have an EPKL shortcut or two for it. So I haven't tried ShareX.