Hi there !
I'm developing my own HTPC interface application, and I'm going to use IRSS for it's remote control (together with MCE RC).
So I need to simulate RC button press in my application. I tried to use Virtual Remote command line interface, like the following:
VirtualRemote.exe -host IRSSHost 31708
.. where 31708 - it's MCE button code. But it's not working at all !
I checked all possible options - VirtualRemote is started for ~0.5 sec (without UI) and then closing. When I changing IRSSHost to invalid, VirtualRemote is crashing - it means that -host command line key is working, but RC button code is not accepting ...
As another option I tried to use Windows Messages receiver - I thought that maybe it's possible to map it's key codes to needed MCE button code. I used SendMessage API command for it:
Wnd := FindWindow (nil, 'WM Receiver for IR Server');
if (Wnd <> 0) then SendMessage(Wnd, 32768, 24, 0);
... But this hanged my application during message sending ! Moreover, I'm not sure about parameters (23768, 24, 0).
Does anyone has any idea how to use this stuff ? Or maybe another ideas for RC button press simulating ? Many thanks in advance for your answers !
I'm developing my own HTPC interface application, and I'm going to use IRSS for it's remote control (together with MCE RC).
So I need to simulate RC button press in my application. I tried to use Virtual Remote command line interface, like the following:
VirtualRemote.exe -host IRSSHost 31708
.. where 31708 - it's MCE button code. But it's not working at all !
As another option I tried to use Windows Messages receiver - I thought that maybe it's possible to map it's key codes to needed MCE button code. I used SendMessage API command for it:
Wnd := FindWindow (nil, 'WM Receiver for IR Server');
if (Wnd <> 0) then SendMessage(Wnd, 32768, 24, 0);
... But this hanged my application during message sending ! Moreover, I'm not sure about parameters (23768, 24, 0).
Does anyone has any idea how to use this stuff ? Or maybe another ideas for RC button press simulating ? Many thanks in advance for your answers !
Slovenia