Results 1 to 9 of 9

Thread: RegisterHotKey( works, but how to register a multimedia key?

  1. #1

    RegisterHotKey( works, but how to register a multimedia key?

    i already tried something like,

    RegisterHotKey(appwinHANDLE, 3004, 0, $B3);

    $B3 is the code for multimedia key "PLAY"

    how can i register a hotkey for the keys (Stop, Play, Vol up, Vol down...) ?


    os: windows
    compile : delphi
    From brazil (:

    Pascal pownz!

  2. #2

    RegisterHotKey( works, but how to register a multimedia key?

    You can't.. since explorer registers them before you do.
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  3. #3

    RegisterHotKey( works, but how to register a multimedia key?

    but how wmp does it :? ?
    From brazil (:

    Pascal pownz!

  4. #4

    RegisterHotKey( works, but how to register a multimedia key?

    Quote Originally Posted by arthurprs
    but how wmp does it :? ?
    are you sure it registers hotkeys rather than use system messages?
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  5. #5

    RegisterHotKey( works, but how to register a multimedia key?

    Quote Originally Posted by Delfi
    Quote Originally Posted by arthurprs
    but how wmp does it :? ?
    are you sure it registers hotkeys rather than use system messages?
    no =P

    i can detect them using messages? how?
    From brazil (:

    Pascal pownz!

  6. #6

    RegisterHotKey( works, but how to register a multimedia key?

    Quote Originally Posted by arthurprs
    Quote Originally Posted by Delfi
    Quote Originally Posted by arthurprs
    but how wmp does it :? ?
    are you sure it registers hotkeys rather than use system messages?
    no =P

    i can detect them using messages? how?
    wm_keydown in your own app, if you want it global, you could use stuff like GetKeyboardState..
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  7. #7

    RegisterHotKey( works, but how to register a multimedia key?

    Quote Originally Posted by Delfi
    Quote Originally Posted by arthurprs
    Quote Originally Posted by Delfi
    Quote Originally Posted by arthurprs
    but how wmp does it :? ?
    are you sure it registers hotkeys rather than use system messages?
    no =P

    i can detect them using messages? how?
    wm_keydown in your own app, if you want it global, you could use stuff like GetKeyboardState..
    most of time the app is hided, so i probably can't use _keydown

    i need a timer or something like that to use GetKeyboardState?
    From brazil (:

    Pascal pownz!

  8. #8

    RegisterHotKey( works, but how to register a multimedia key?

    I think a better way would be to use SetWindowsHookEx
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  9. #9

    RegisterHotKey( works, but how to register a multimedia key?

    Quote Originally Posted by JSoftware
    I think a better way would be to use SetWindowsHookEx
    can you give more info ?
    From brazil (:

    Pascal pownz!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •