I bought a remote control from ebay a while back which acts as a sort of keyboard. Because of this, when you press a button the signal is sent to the active application. For example if you have firefox open and you press the [Pause] button, it sends {CTRL + P} to firefox, which open the print dialogue. Annoying huh...
Anyway after reading through this topic and installing the driver created by Bitmonster (Download Driver) I am having trouble creating a plugin to work with this reciever.
I have installed the Driver and upgraded the default driver. It now shows up as "USB PC Remote Controller".
When I plug the reciever in the USB port I get the following message in the log:
- Code: Select all
System.DeviceAttached [u'\\\\?\\USB#VID_04B4&PID_0100#5&2fce8547&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed}']
So I went ahead and created a plugin, and this is the content of my __init__.py file:
- Code: Select all
import eg
eg.RegisterPlugin(
name = "Cyp Se WitheHome",
author = "Vishal",
version = "1.0.0",
kind = "remote",
description = __doc__,
)
class Cyp_Se_WitheHome(eg.PluginBase):
def __start__(self):
self.usb = eg.WinUsbRemote(
"{a5dcbf10-6530-11d2-901f-00c04fb951ed}",
self.Callback,
1
)
if not self.usb.IsOk():
raise self.Exceptions.DeviceNotFound
def __stop__(self):
self.usb.Close()
def Callback(self, data):
print data
When I then add the plugin to EventGhost I get:
- Code: Select all
Error starting plugin: Cyp Se WitheHome
Device not found!
I've tried to make it load, but I'm new to this and haven't got a clue.
A few links that might help:
viewtopic.php?f=10&t=1232&start=0 (mentioned above)
http://ubuntuforums.org/showthread.php?t=805876 (Same remote but configured in Linux for MythTV)
Anyone able to see what the problem is??? or can help me build this plugin?
Would be much appreciated...
Cheers
Vishal
