Sending IR command to WMC via Python
Posted: Tue Oct 26, 2010 12:52 am
Hi all.
I'm using Windows Media Center 7 together with EventGhost - and I get all the right inputs from my remote control in EG. Right now, I'm emulating keystrokes to make WMC navigate up/down/left/right/skip etc.
Only problem is, that WMC's multitap-service (e.g. when searching for music - the 0-9 buttons on the WMC remote operates as SMS keys) does obviously not work when emulating keypresses - Microsoft's thought is probably that if you have access to a keyboard, why use multitap/SMS? Although fair, I need to do this some way.
One way is to use the multitap plugin, but the OSD part is rather ugly and compared to WMC's own multitap service, it lacks feel. My thought was, that I could use a Python script to communicate directly with WMC's IR driver and e.g. send the "1" button as if it was being pressed on a remote control. I'm not looking to feeding raw IR codes into WMC - but rather input my command AFTER it was normally IR-demodulated and just BEFORE WMC reacts to the input (and thereby maintaining WMC's own multitap-service).
Can anyone help?
Michael
I'm using Windows Media Center 7 together with EventGhost - and I get all the right inputs from my remote control in EG. Right now, I'm emulating keystrokes to make WMC navigate up/down/left/right/skip etc.
Only problem is, that WMC's multitap-service (e.g. when searching for music - the 0-9 buttons on the WMC remote operates as SMS keys) does obviously not work when emulating keypresses - Microsoft's thought is probably that if you have access to a keyboard, why use multitap/SMS? Although fair, I need to do this some way.
One way is to use the multitap plugin, but the OSD part is rather ugly and compared to WMC's own multitap service, it lacks feel. My thought was, that I could use a Python script to communicate directly with WMC's IR driver and e.g. send the "1" button as if it was being pressed on a remote control. I'm not looking to feeding raw IR codes into WMC - but rather input my command AFTER it was normally IR-demodulated and just BEFORE WMC reacts to the input (and thereby maintaining WMC's own multitap-service).
Can anyone help?
Michael