Prev Previous Post   Next Post Next
Old 16th January 2017, 12:01   #1
chinagreenelvis
Junior Member
 
Join Date: Nov 2009
Posts: 35
Adding Global Hotkeys For Dummies

Can someone please explain to me in a very straightforward manner how to use DrO's wa_hotkeys.h to register new Global Hotkey options?

I've successfully set up a working plugin from the Winamp Developer Wiki basic guide and I know exactly what I want to register a hotkey for.

code:

int init() {
SendMessage(plugin.hwndParent, WM_WA_IPC, (WPARAM)"Bento", IPC_SETSKIN);
return 0;
}



code:

void config() {
SendMessage(plugin.hwndParent, WM_WA_IPC, (WPARAM)"Winamp Classic", IPC_SETSKIN);
}



Currently, this starts Winamp in the Bento skin, and then swaps the skin into Winamp Classic when I select the plugin for configuration. I'd like to set up both for Global Hotkeys (or one hotkey to switch back and forth).

I'm not exactly new to programming, but I've never written anything for Winamp before. It would be easier if the wa_hotkeys.h were a fully-functional example rather than commented out code, but if someone can help explain which parts of that code need to go where, I'd greatly appreciate it.
chinagreenelvis is offline   Reply With Quote
 
Go Back   Winamp & SHOUTcast 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