Howto make own application for remote control handling
What I want to do is to make a program which is controlled by a remote control.
Now I have a remote control that came with my tv card, and I would like to use that one. TV card is conceptronic ctvfmi2 for pci slot.
There is a process running that handles what has to be done if a button has been pressed on the remote. That is P3XRCtl.exe. (I'm just mentioning this in case someone has experience with it)
Now I don't know how it's actually working, if someone knows I would love to know too :)
But the way I see it, it should be something like this. When P3XRCtl starts, it lets the driver or windows or whatever know that he is the one handling the remote control actions. The processID is stored and everytime hardware/driver/windows notices a button was pressed, it will send a custom windows message to the process with the processsID they have stored. The wndproc of P3XRCtl can then determine which button was pressed and take action.
So to figure out the buttons I could put this in the wndproc:
Or something else, in any way let me know the code for the button that I have just pressed.
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
if (message >= WM_USER)
lala << message;
In a second stadium I could then just so a switch where the cases are those custom messages.
I want to know if this could work, and if I'm correct how to let the drivers/hardware/windows know which app to send the messages to. Perhaps even have to track what P3XRCtl is doing when it's starting.
And if I'm wrong, some other way I could achieve this. I've been googline for it but I can't seem to find anything relative.
I hope someone can help me on this one ^^