I have just discovered EventGhost and I am blown away by the versatility of the program while it remains so simple to use. Well done!
I am working on a box dedicated to running XBMC on XP SP3 with EG 0.3.7.r965 installed. I have a MCS IR receiver and remote and using the wonderful XBMCRepeat plugin I have set up the MS remote to work perfectly.
I now want to use a Philips universal remote to work concurrently with the MS just to provide basic functionality ÔÇô the idea being there needs only to be one remote on the coffee table for most of the time. I have loaded the Generic HID plugin but I have run into problems with repeated events (if thatÔÇÖs the right term). To test the remote I have added a jump event to occur if the button is held down for more than a second. If I enable ÔÇ£trigger enduring eventsÔÇØ in the plugin, the jump occurs on a single button press. If I disable ÔÇ£trigger enduring eventsÔÇØ the jump never occurs regardless of how long the button is pressed.
I donÔÇÖt know if the remote blasts for as long as the button is held down but the activity LED on the remotes suggests that it does.
Can anyone suggest what else I could try or point me to where this has already been covered in the forum? Thanks!
Edit: I have disabled the Generic HID and reset the Philips to mimic the MS remote but the problem remains. I can clearly see the MS IR receiver showing that it is picking up the repeated signal from the remote but I cannot get the auto-repeat function to work.
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.
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.
Generic HID - Triggering Enduring Event
Re: Generic HID - Triggering Enduring Event
Hello,
I'm not sure I've understood your problem correctly, but I'm guessing the HID plugin is not repeating the key event even though you keep the key pressed on the remote?
I had the same problem with an ASUS remote, but for me the plugin wasn't even generating the the key event, so I had to used "raw data", and then to make the keys repeat (for volume up and volume down) I made a helper script that listens for the key press codes (HID.000207000000000000) to start a timer, and then for the key release codes (HID.000200000000000000 this is a global code for any key) to stop it.
Try copy/paste -ing it in your Eventgost and see if it works (Backup your script before doing this) and also you will probably need to change the events. If you can't copy it directly let me know and I will upload my script.
Have fun
I'm not sure I've understood your problem correctly, but I'm guessing the HID plugin is not repeating the key event even though you keep the key pressed on the remote?
I had the same problem with an ASUS remote, but for me the plugin wasn't even generating the the key event, so I had to used "raw data", and then to make the keys repeat (for volume up and volume down) I made a helper script that listens for the key press codes (HID.000207000000000000) to start a timer, and then for the key release codes (HID.000200000000000000 this is a global code for any key) to stop it.
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1076">
<Folder Name="Asus HD remote" Expanded="True">
<Macro Name='Timer: Start timer "VolumeUp" (unlimited loops, 0.10 seconds intervall)' Expanded="True">
<Event Name="HID.000207000000000000" />
<Action>
Timer.TimerAction(u'VolumeUp', 0, 0, 0.10000000000000001, u'VolumeUp', False, True, 1, u'00:00:00')
</Action>
</Macro>
<Macro Name='Timer: Start timer "VolumeDown" (unlimited loops, 0.10 seconds intervall)' Expanded="True">
<Event Name="HID.00020B000000000000" />
<Action>
Timer.TimerAction(u'VolumeDown', 0, 0, 0.10000000000000001, u'VolumeDown', False, True, 1, u'00:00:00')
</Action>
</Macro>
<Macro Name='Timer: Abort timer "VolumeUp"' Expanded="True">
<Event Name="HID.000200000000000000" />
<Action>
Timer.TimerAction(u'VolumeUp', 4, 1, 1.0, u'', False, True, 1, u'00:00:00')
</Action>
<Action>
Timer.TimerAction(u'VolumeDown', 4, 1, 1.0, u'', False, True, 1, u'00:00:00')
</Action>
</Macro>
</Folder>
</EventGhost>Have fun
Re: Generic HID - Triggering Enduring Event
Hi xyz ÔÇô yes: thatÔÇÖs the problem on the nail. Thank you for your response ÔÇô I hadnÔÇÖt realised that the RAW code option did anything other than change the look of button events in the XML. I will give your solution a go tonight and post back how I got on. Cheers for this.
Re: Generic HID - Triggering Enduring Event
If the device does not propagate its capabilities, the plugin does not trigger enduring events or sometimes any events at all.
Most time it is pretty obvious to a human how the raw data translates into keypresses. I am currently moving some HID stuff in the core it will become pretty easy to write a custom plugin for a HID device.
Most time it is pretty obvious to a human how the raw data translates into keypresses. I am currently moving some HID stuff in the core it will become pretty easy to write a custom plugin for a HID device.
Re: Generic HID - Triggering Enduring Event
The remote definitely does transmit an enduring stream I realise now ÔÇô for example: when it is set to talk to the amplifier, the volume control works perfectly. I havenÔÇÖt had time to try xyzÔÇÖs suggestion yet but I hope to give it a go this weekend.
I am not sure about the obviousness of raw data but I might be missing your point. Thanks for your response and I look forward to seeing this stuff you are working on.
I am not sure about the obviousness of raw data but I might be missing your point. Thanks for your response and I look forward to seeing this stuff you are working on.