Borrowed from MadIce....creator of the plug-in for WB...
//////////////////////////////////////////////////////////////////////
// WBAmp 1.0.0.7
// Copyright (c) 2000 Matthijs Vermeulen (MadIce XIII)
// MadIceXIII@hotmail.com
//////////////////////////////////////////////////////////////////////
// Special thanks to the beta-test team
// * Morphh (the originator of WBAmp)
// * d
// * dbqp
// * Dan Boldon
// * Philip Powell
// * Mercury
// * jef
// These people came up with a lot of ideas for WBAmp.
// Most of them are implemented.
//////////////////////////////////////////////////////////////////////
// Thanks to d and Adam Najmanowicz for the intergration in BB
// The latest version of WBAmp can be found at http://go.to/WBStuff
// You can find other fantastic WB Stuff there too
//////////////////////////////////////////////////////////////////////
// Thanks to Neil Banfield for his support
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
// What is WBAmp?
//////////////////////////////////////////////////////////////////////
WBAmp is a plugin which can be used to control WinAmp from within the titlebar of a WindowBlinds skin.
The following functions are available:
//////////////////////////////////////////////////////////////////////
// WBAmp Functions
//////////////////////////////////////////////////////////////////////
1 Play: Start playing a track.
2 PauseResume: Pause or resume playing a track.
3 Stop: Stop playing a track.
4 Close: Terminate WinAmp.
5 Previous: Play the previous track.
6 Next: Play the next track.
7 Rewind: Fast rewind 5 seconds.
8 Forward: Fast forward 5 seconds.
9 First: Play the first track.
10 Last: Play the last track.
11 Lower: Lower the volume by 10%.
12 Raise: Raise the volume by 10%.
13 Lower: Lower the volume by 5%.
14 Raise: Raise the volume by 5%.
15 Lower: Lower the volume by 1%.
16 Raise: Raise the volume by 1%.
17 Hide: Hide WinAmp.
18 Show: Show WinAmp.
19 File: Play a file.
20 Folder: Play a folder.
21 URL: Play a URL.
22 Menu: Show WinAmp's menu.
23 Shuffle: Toggle shuffle mode.
24 Repeat: Toggle repeat mode.
25 Single: Stop after the current track.
26 VISStartStop: Start or stop the VIS plugin.
27 VISConfigure: Configure the VIS plugin.
28 VISSelect: Select a VIS plgin.
29 VISOptions: VIS Preferences.
//////////////////////////////////////////////////////////////////////
// How do I connect a plugin function to a button?
//////////////////////////////////////////////////////////////////////
Here is an example of Button 19 which will serve as the play button.
[Button19]
Action=-4
DllName=SkinName\WBAmp.dll
WBAmp=1
WBAmpShift=18
WBAmpCtrl=17
ButtonImage=SkinName\ButtonName.bmp
...
[WBAmp]
DialogMode=0
Use the WBAmp Functions Table to lookup a function. Get its number.
Assign its value to the WBAmp entry of the button. To use Pause/Resume set WBAmp to 2, To use Stop set it to 3, etc.
The WBAmpShift entry specifies what function must be executed when the button is clicked while pressing the Shift key.
The WBAmpShift entry specifies what function must be executed when the button is clicked while pressing the Ctrl key.
Note that the WBAmp, WBAmpShift and WBAmpCtrl entries must be present. There are no defaults.
All other button options can be used as normal. The "Plugin width" ("Width") and plugin height ("Height") parameters are ignored since WB draws the button. The plugin must be included in the same directory as the skin. Do not forget to include the plugin in the ZIP-file.
The [WBAmp] section describes WBAmp options. At the moment there is only the DialogMode entry. If set to 1 then WinAmp is shown whenever a WBAmp button shows a dialog box.
//////////////////////////////////////////////////////////////////////
// Installing WBAmp
//////////////////////////////////////////////////////////////////////
The installation of WBAmp is actually a matter of configuring WinAmp correctly. Use the following WinAmp setting: At the WinAmp menu select "Options". Then "Preferences". In the "Show WinAmp in:" box select "System tray only". This will prevent WinAmp from showing its ugly skin... If you now minimize WinAmp then it ends up in the SystemTray and will not be seen on the TaskBar. To restore it just single click the WinAmp icon in the SystemTray. Right clicking the icon on the SystemTray will show the WinAmp menu.
"I did what you said, but now I don't see WinAmp anymore..."
Well, that is the idea. You should not see WinAmp, unless you want it to be shown. If you start WinAmp, you do not see it either. If you go and look for it, you will find it in the SystemTray.
//////////////////////////////////////////////////////////////////////
// Starting WinAmp
//////////////////////////////////////////////////////////////////////
You can either start WinAmp as you used to or you can push any WBAmp button. It takes a while for it to start. During startup it cannot execute the action attached to the button. So the initial click just resulted in WinAmp being started. This is not an error. You have to live with it OR add WinAmp to your Startup menu. This causes WinAmp to start whenever Windows starts. If you also selected the "System tray only" function then the buttons work like expected.
//////////////////////////////////////////////////////////////////////
// Version
//////////////////////////////////////////////////////////////////////
You can check what version of WBAmp is installed by right clicking the WBAmp.dll file, then select Properties from the menu and finally click the Version tab.
//////////////////////////////////////////////////////////////////////
// WARNING
//////////////////////////////////////////////////////////////////////
If you design a skin and use WBAmp please be sure that dialog boxes do not have WBAmp buttons. Dialog boxes are used in error messages and since WinAmp can produce errors it would be a bad idea to present WBAmp buttons while in the middle of handling WinAmp error.
//////////////////////////////////////////////////////////////////////
// Menu
//////////////////////////////////////////////////////////////////////
Calling the WinAmp menu without showing WinAmp causes the menu to behave bad. Therefore WinAmp must be shown. Until there is a better solution WinAmp will be shown before the menu is opened.
//////////////////////////////////////////////////////////////////////
// Version 1.0.0.4 release notes:
//////////////////////////////////////////////////////////////////////
Any WBAmp button can startup WinAmp (except WAClose). Not just WAPlay. Startup now rarely fails (I hope). If this fails then start it manually or even better add it to the Startup menu.
//////////////////////////////////////////////////////////////////////
// Version 1.0.0.5 release notes
//////////////////////////////////////////////////////////////////////
The end of all those tiny DLLs. They are now included in WBAmp.dll.
You can now specify which function to clicking the button with shift or control should be executed.
The Show function has been improved.
The dialog boxes are behaving better.
//////////////////////////////////////////////////////////////////////
// Version 1.0.0.6 release notes
//////////////////////////////////////////////////////////////////////
Shuffle, Repeat and Single added.
VIS dialog box options added. VISSelect does not seem to be working.
The Raise and Lower volume by 1% were swapped. This has been fixed.
I have asked NullSoft to help me with the dialog boxes. Some beta-testers did not like the current window to be pushed to the back. I have taken it out and hope NullSoft comes with an solution for the final build today.
//////////////////////////////////////////////////////////////////////
// Version 1.0.0.7 release notes
//////////////////////////////////////////////////////////////////////
Test code removed.
Menu code restored.
Hope this helps a bit...