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.

Handle both enduring and fast single keystrokes

If you have a question or need help, this is the place to be.
Post Reply
Rapisho
Posts: 2
Joined: Fri Jun 03, 2011 11:12 pm

Handle both enduring and fast single keystrokes

Post by Rapisho »

I'm trying to find the best way to make EventGhost recognize both enduring keystrokes and fast repeatedly pressed single keystrokes.
My setup is:
-Windows 7
-Atric IR-Receiver + RC5 Remote
-WinLIRC 0.9.0d
-Eventghost 0.4.1.r1582 + LIRC Client Plugin

I set time-out for enduring events in LIRC Client plugin under 125ms so that it produces continuously new repeats and disabled first sent repeat in WinLIRC.
This way it recognizes single keystrokes pressed repeatedly at any speed and doesnt produce accidental double events. Also when keeping the key pressed it repeats the macro continuously without having to add "Autorepeat current macro"-action. The problem is repetition is way slower than keeping a key pressed on keyboard.

Another option is to set time-out at 175ms which also doesnt produce accidental double events and even produces enduring events for make "Autorepeat current macro"-action work (same repetition speed as keyboard) but then I have to hit a key very slowly to make it not appear as an enduring event too.

The perfect way would be to set time-out at exactly 125ms, then it doesnt produce continuously new events instead of enduring ones and recognize repeatedly keystrokes at any speed. The problem this way is that it produces every time exactly 2 events (same behaviour up to 175ms), one when hitting the key and one when releasing it, no matter how long holding it down.
The solution would be to activate "Add repeat tag" in LIRC plugin to not execute an action twice and make the Autorepeat-action only be activated by the repeat-event (which is also the enduring event) pressed for more than 0.4s.

I really hope someone could show me an example how a macro that makes it behave like that would look like or any similar solution.
Thanks in advance.
Post Reply