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.

Help With Remote - buttons send two codes

If you have a question or need help, this is the place to be.
Post Reply
markc
Posts: 8
Joined: Wed Mar 10, 2010 10:56 pm

Help With Remote - buttons send two codes

Post by markc »

Hi Guys,

Have been following the forum for some time now lapping it all up.

I need some help here, not sure if it can be done or not but here goes;

I have my apple remote working fine through a USB-UIRT but cannot map one of the buttons to a press+hold event. This is simply because two of the buttons send out two codes one straight after the other and one of the codes is duplicated eg;

Center Button sends Code A immediately followed by Code B
Play/Pause Button sends Code X immediately followed by Code B

So the last code out on both buttons is identical making it difficult to map both to a repeat or hold function. I am able to map one button to a press and hold function by using a wait and clear pending event on the other button to stop EG from seeing the second code (B) come through but really want to be able to map both buttons to long press functions.

My question is, how can I get EG to wait for two specific and consecutive codes (from one buton) and assign them to an event bearing in mind that I will also like to assign a press/hold function to these buttons as well. The jump if long press would have to act on the B code which both buttons send.

Thanks.

EDIT: I changed the Subject as it is not really Apple Remote specific.
markc
Posts: 8
Joined: Wed Mar 10, 2010 10:56 pm

Re: Help With Remote - buttons send two codes

Post by markc »

Can anyone help here?

Is there a way to have EG trigger an event on receiving 2 specific codes in quick succession?

Thanks.
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: Help With Remote - buttons send two codes

Post by Bartman »

you can use A and X to enable the macro with the long press you really want.
markc
Posts: 8
Joined: Wed Mar 10, 2010 10:56 pm

Re: Help With Remote - buttons send two codes

Post by markc »

Thanks, I had just figured it out by using the first code to disable (think that is what you meant) the other button whilst it waits for a long key press on the shared code.

Finally, after a bit of play with the keymap.xml I will be able to use my Apple Remote in XBMC (Windows) as I used to in Plex.....
amiran
Posts: 3
Joined: Thu Jun 20, 2013 4:15 am

Re: Help With Remote - buttons send two codes

Post by amiran »

Hey, I'm trying to do exactly the same thing but can't quite figure out the logic. Can you post a screenshot or describe each item?

Thanks!
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: Help With Remote - buttons send two codes

Post by kkl »

If at least one of the two codes received is unique (in the example above, Code A and Code X, not Code B), why not just use that as the triggering event?
amiran
Posts: 3
Joined: Thu Jun 20, 2013 4:15 am

Re: Help With Remote - buttons send two codes

Post by amiran »

kkl wrote:If at least one of the two codes received is unique (in the example above, Code A and Code X, not Code B), why not just use that as the triggering event?
The issue is as follows:
short press = A then B
long press = A then B, B, B, B, B

so you need to somehow trigger two different actions on those two types of events. The problem is that for the long press there doesn't seem to be a way to prevent the short press action from being triggered.

does that make sense?
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: Help With Remote - buttons send two codes

Post by kkl »

You might want to look at the built-in Action EventGhost/Jump if long press to see if it does what you want. Otherwise, save yourself a lot of time and get more flexibility with a $15 HP eHome MCE IR receiver/remote.
Post Reply