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.

Keystroke emulation only when key is held down

If you have a question or need help, this is the place to be.
Post Reply
jachin99
Experienced User
Posts: 614
Joined: Sat Feb 13, 2016 8:39 pm

Keystroke emulation only when key is held down

Post by jachin99 »

I want to assign two different actions to the green button on my mce remote. When I press it quickly, I want the start menu to appear, and when I hold it down for say two seconds, I want task view to appear. I am using the keystroke emulation function in event ghost to accomplish the later but I cannot figure out how to create the condition where it only executes my second task when it is held down. How do I add this context to my button press. To summarize what I just said I want:

Press green button normally = start menu
Hold green button down = task view.

I am using keystroke emulations for the green button = start menu actions, and I am trying to use keystroke emulations for the Hold green button down = task view as well. Should I be doing this another way?
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Keystroke emulation only when key is held down

Post by Sem;colon »

There is an action you can add in eventghost that jumps to another macro if you keep pressing the button for a specific time.
It's under "EventGhost"
If you like my work, Image me a drink :wink:
jachin99
Experienced User
Posts: 614
Joined: Sat Feb 13, 2016 8:39 pm

Re: Keystroke emulation only when key is held down

Post by jachin99 »

I've tried to configure this with double press, and long press. It looks like the macros are interfering with one another. Is this because I am trying to use the same different key for two macros?
Both macros tell EG to recognize my green button press.

Macro1 is green button press = WIN key
Macro2 is if green button is held down, {WIN+TAB}

I am thinking I should try to find a way to add the tab key to the button press but task view only shows up with WIN+TAB so how would I continue holding down the windows key
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Keystroke emulation only when key is held down

Post by Sem;colon »

You need to take the Long press action, but you use it wrong.

Macro 2:
you assign the WIN + Tab key Emulation
(you assgn no Event to this macro)

Macro 1:
you assign the green button press Event,
then the Long press Action (you choose macro 2 in this Action),
then the WIN key Emulation Action

Now, if you just press the green button short macro 1 will be executed, and if you press it Long, macro 1 will Redirect the Event to maro 2 and macro 2 will be executed.
If you like my work, Image me a drink :wink:
jachin99
Experienced User
Posts: 614
Joined: Sat Feb 13, 2016 8:39 pm

Re: Keystroke emulation only when key is held down

Post by jachin99 »

And it works. Thanks!!
Post Reply