Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. IR Remote Control, Help....WM_APPCOMMAND

IR Remote Control, Help....WM_APPCOMMAND

Scheduled Pinned Locked Moved C#
csharphelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xodiak
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • X Xodiak

      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

      S Offline
      S Offline
      S Senthil Kumar
      wrote on last edited by
      #2

      The Message[^] structure that gets passed to the WndProc method has LParam and WParam properties. You need to look into how GET_APPCOMMAND_LPARAM(lparam) is implemented to get the value out of the LParam property. Regards Senthil _____________________________ My Blog | My Articles | WinMacro

      X 1 Reply Last reply
      0
      • S S Senthil Kumar

        The Message[^] structure that gets passed to the WndProc method has LParam and WParam properties. You need to look into how GET_APPCOMMAND_LPARAM(lparam) is implemented to get the value out of the LParam property. Regards Senthil _____________________________ My Blog | My Articles | WinMacro

        X Offline
        X Offline
        Xodiak
        wrote on last edited by
        #3

        figured it out, there is a lparam property in the message structure that i have to interperet AFTER i catch on the wparam property of app_command....a long int get returned. simple switch statement and i got it all working. thanks for your help

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups