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.

How to assign function to a double click?

If you have a question or need help, this is the place to be.
Post Reply
farbox
Experienced User
Posts: 58
Joined: Fri Jul 18, 2008 1:44 am

How to assign function to a double click?

Post by farbox »

I was trying to assign two functions to the same button on my remote, for winamp.
So a single click is puase/play, but a long click is PLAY (ie replay).
However it seems my (non standard) remote is sending rapid pulses instead of steady ones, so cant use the JUMP IF HELD function. So next option would be to double click the button to get this effect. My question is, how can I tell EG to seperate single and rapid double clicks?
Prinz
Plugin Developer
Posts: 194
Joined: Mon Apr 07, 2008 4:58 am

Re: How to assign function to a double click?

Post by Prinz »

Hi,
farbox wrote:However it seems my (non standard) remote is sending rapid pulses instead of steady ones, so cant use the JUMP IF HELD function.
this is done by many remotes. Which remote plugin are you using? Normaly the setup of the remote plugin should have a "button release timeout". Could it be that this value is to less?

Regards
Prinz
Mein HTPC:
Mainboard: Gigabyte GA-G33M-DS2R
CPU: Intel E5200
OS: WinXP SP3
Graphic card: NVIDIA GeForce 210 512MB
TV-Cards: 2 * Digital Everywhere FloppyDTV-C, Terratec Cinergy 1200 DVB-C
HTPC software: DVB Viewer / EventGhost
farbox
Experienced User
Posts: 58
Joined: Fri Jul 18, 2008 1:44 am

Re: How to assign function to a double click?

Post by farbox »

The built in (latest EG version) MCE receiver plugin.
On further trying i think i got it to work with long press, I had placed the long press macro somewhere that would cause it to recurse on itself.
However, how would we do a double button press as per original question? The more I think about it, the more usefull it seems it could be.
farbox
Experienced User
Posts: 58
Joined: Fri Jul 18, 2008 1:44 am

Re: How to assign function to a double click?

Post by farbox »

Further info:
I think on my remote the play/pause button sends more rapid pulses than other buttons. I can get the long press function to work with every button except the play/pause one, just my luck!
Prinz
Plugin Developer
Posts: 194
Joined: Mon Apr 07, 2008 4:58 am

Re: How to assign function to a double click?

Post by Prinz »

Hi,
farbox wrote:THowever, how would we do a double button press as per original question? The more I think about it, the more usefull it seems it could be.
I think solution can be th Multitap plugin. Using this plugin different events can be fired if the same button is pressed more than one time in a specified time interval.

Regards
Prinz
Mein HTPC:
Mainboard: Gigabyte GA-G33M-DS2R
CPU: Intel E5200
OS: WinXP SP3
Graphic card: NVIDIA GeForce 210 512MB
TV-Cards: 2 * Digital Everywhere FloppyDTV-C, Terratec Cinergy 1200 DVB-C
HTPC software: DVB Viewer / EventGhost
jsonnabend
Experienced User
Posts: 127
Joined: Wed Apr 23, 2008 7:35 pm

Re: How to assign function to a double click?

Post by jsonnabend »

It can also be done in straight python script. I use that approach. If you want, I can see if I can pull the code and post it here in some useful form.

- Jeff
farbox
Experienced User
Posts: 58
Joined: Fri Jul 18, 2008 1:44 am

Re: How to assign function to a double click?

Post by farbox »

Thanks guys for your help.
Any input is appreciated and Im sure might be of help to someone down the line.
However I am CLUELESS when it comes to scripting, so lets see how useful I can make it! :D
Post Reply