IR Remote Control, Help....WM_APPCOMMAND
-
Alright, I'm trying to integerate an IR remote control into one of my apps.
I used Spy++ to try to figure out what messages were being sent to the app. The WM_APPCOMMAND message is begin sent.
But this message is being sent for the every media key. i read somewhere that you ahve to use GET_APPCOMMAND_LPARAM(lparam) to get the unique media key but i dont know how to implement this in C#.
I am currently overloading the WndProc(ref Message m) even and attempting to do something when the message == WM_APPCOMMAND...but again i dont know how to differentiate between the different WM_APPCOMMAND's....
Play...Stop....Next Track....Previous Track....are all the same message...help guys. -- modified at 0:30 Thursday 22nd December, 2005
-
Alright, I'm trying to integerate an IR remote control into one of my apps.
I used Spy++ to try to figure out what messages were being sent to the app. The WM_APPCOMMAND message is begin sent.
But this message is being sent for the every media key. i read somewhere that you ahve to use GET_APPCOMMAND_LPARAM(lparam) to get the unique media key but i dont know how to implement this in C#.
I am currently overloading the WndProc(ref Message m) even and attempting to do something when the message == WM_APPCOMMAND...but again i dont know how to differentiate between the different WM_APPCOMMAND's....
Play...Stop....Next Track....Previous Track....are all the same message...help guys. -- modified at 0:30 Thursday 22nd December, 2005
The Message[^] structure that gets passed to the WndProc method has
LParam
andWParam
properties. You need to look into howGET_APPCOMMAND_LPARAM(lparam)
is implemented to get the value out of the LParam property. Regards Senthil _____________________________ My Blog | My Articles | WinMacro -
The Message[^] structure that gets passed to the WndProc method has
LParam
andWParam
properties. You need to look into howGET_APPCOMMAND_LPARAM(lparam)
is implemented to get the value out of the LParam property. Regards Senthil _____________________________ My Blog | My Articles | WinMacro