Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

[SOLVED] Keyboard plugin erroneously releases enduring event

Found a bug in EventGhost? Report it here.
Post Reply
User avatar
blackwind
Experienced User
Posts: 182
Joined: Wed Sep 12, 2012 2:59 am
Location: Canada
Contact:

[SOLVED] Keyboard plugin erroneously releases enduring event

Post by blackwind »

When a default Windows "Win" key shortcut is overridden, the enduring event (triggered by TriggerEnduringEvent) is broken.

Test case:
  1. Create a new macro to, say, run calc.exe, then assign two already-bound keys to it, such as Keyboard.LWin+E (launches Windows Explorer) and Keyboard.LWin+F (launches Windows Search).
  2. Hold down LWin, hit E. Calculator launches.
  3. Without letting go of LWin, hit F. Calculator doesn't launch, and EventGhost logs Keyboard.F instead of the expected Keyboard.LWin+F.
It appears this will need to be fixed in cFunctions. To whoever takes on this task, just a reminder: I'd love to see native support for universal modifiers as well.

Cheers!
Last edited by blackwind on Sun Jun 02, 2013 1:56 am, edited 2 times in total.
/bw
User avatar
blackwind
Experienced User
Posts: 182
Joined: Wed Sep 12, 2012 2:59 am
Location: Canada
Contact:

Re: Keyboard plugin erroneously releases enduring event

Post by blackwind »

Many thanks, Pako, for filling so many of my requests in r1600. Is there anything at all I can do, though, to aid in the troubleshooting of this one? This is the last thing keeping me from uninstalling my other hotkey managers for good.
/bw
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Keyboard plugin erroneously releases enduring event

Post by Pako »

blackwind wrote:Is there anything at all I can do, though, to aid in the troubleshooting of this one?
You can find a fix for it. I see that you are a good programmer.
I've previously looked at the Keyboard plugin code and I do not understand.
That's too complicated for me.

Pako
User avatar
blackwind
Experienced User
Posts: 182
Joined: Wed Sep 12, 2012 2:59 am
Location: Canada
Contact:

Re: Keyboard plugin erroneously releases enduring event

Post by blackwind »

Ah, too bad. Compliment accepted and appreciated, but I'm actually in the same boat as you -- I browsed through the cFunctions code a couple times a few months back, shrugged my shoulders, and moved on with my life. Even if I'm able to figure out the logic at some point, I have absolutely no idea how to get it to compile. It seems we'll just have to leave this one to minds greater than ours. :(
/bw
User avatar
blackwind
Experienced User
Posts: 182
Joined: Wed Sep 12, 2012 2:59 am
Location: Canada
Contact:

Re: Keyboard plugin erroneously releases enduring event

Post by blackwind »

Nailed it. Feel free to include this in the next build, Pako.

Features added:
  • Universal modifiers can now be enabled in the configuration dialog. Defaults to off so as not to break existing user configs.
Bugs fixed:
  • When overriding default Windows "Win" key shortcuts (such as Win+E), EventGhost would forget "Win" is pressed.
  • Default Windows "Win" key shortcuts were non-responsive after using an EventGhost "Win" key shortcut.
  • Keyboard plugin could crash EventGhost if disabled while keyboard events are still being processed.
Attachments
patch.zip
v2013.06.01
(41.19 KiB) Downloaded 237 times
Last edited by blackwind on Sat May 11, 2013 4:40 am, edited 2 times in total.
/bw
Post Reply