Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 10th December 2004, 19:12   #1
tripled
Junior Member
 
Join Date: May 2003
Posts: 8
Adding Keyboard Accelerators

Does anyone know how to add a plugin's keyboard accelerator to Winamp? I'm showing and hiding my plugin using a menu item that I've added to the right-click popup menu, and want to add an Alt+<Key> reference that does the same thing.

Thanks in advance.
tripled is offline   Reply With Quote
Old 10th December 2004, 21:24   #2
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,234
you'll need to provide support in the wm_syskeydown message and then acting accordingly if you're key choice is detected.

-daz
DrO is offline   Reply With Quote
Old 10th December 2004, 21:56   #3
tripled
Junior Member
 
Join Date: May 2003
Posts: 8
Thanks again....I was thinking way too complex on that one.

I find it a bit weird that I can't catch any wm_syskeydown messages hooking into the winamp proc.....I have to use wm_keydown and check appropriate flags instead. any thoughts as to why this might happen?
tripled is offline   Reply With Quote
Old 10th December 2004, 22:01   #4
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,234
wm_keydown is fine, i can't remember if the other message is/isn't received (have to admit i did a copy & paste on the message name and used the one meant to be used in that case from the msdn info).

if wm_keydown is working then best to stick with that

-daz
DrO is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > Winamp Development

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