Old 23rd May 2013, 16:57   #1
Techno7
Junior Member
 
Join Date: May 2013
Posts: 2
KeyHook Code Methode

Hey Guys,
This is my first post here so sorry if I am in the wrong cathegory,

How does Winamp hook the Mediakeys, does it use the Windows messanges, but when does he consum than?

Sorry I'm not the best in English when there are Problems in understanding, i while try the explication again.
Techno7 is offline   Reply With Quote
Old 24th May 2013, 14:34   #2
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 3,009
Send a message via Skype™ to thinktink
I created a program a while back for controlling the Edirol LVS-400 live video mixer/switcher board through MIDI. I created in it an entire fully user customizable global shortcuts feature that used a system wide keyboard hook to intercept keystrokes and to eat them if it matched my internal tables. Worked much better than I expected. I imagine that's how Winamp does it as well.

[EDIT/]
If you're wondering how I did it, please see the MSDN documentation for "SetWindowsHookEx" and "WH_KEYBOARD".
thinktink is offline   Reply With Quote
Old 24th May 2013, 14:41   #3
DrO
 
Join Date: Sep 2003
Posts: 27,873
just by using what is mentioned on MSDN i.e. http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx and WM_APPCOMMAND (if enabled).
DrO is offline   Reply With Quote
Old 24th May 2013, 19:11   #4
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 3,009
Send a message via Skype™ to thinktink
Quote:
Originally Posted by DrO View Post
just by using what is mentioned on MSDN i.e. http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx and WM_APPCOMMAND (if enabled).
I'll have to remember that. That looks much easier.
thinktink is offline   Reply With Quote
Old 24th May 2013, 18:21   #5
Techno7
Junior Member
 
Join Date: May 2013
Posts: 2
Thanks for the Repiles and Infos I think with that I can work
Techno7 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Tags
keys, windows

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump