First I want to thank Rajat for the many very useful Winamp lparams and so forth in the early posts in this thread... big help.
I thought I'd point out this tidbit I ran across, which reveals how to get Winamp volume:
http://forums.winamp.com/showthread.php ... nextnewest
Quote:
You want a get volume api? There is already one in there bitch!
code:--------------------------------------------------------------------------------
#define IPC_SETVOLUME 122
/* (requires Winamp 2.0+)
** SendMessage(hwnd_winamp,WM_WA_IPC,volume,IPC_SETVOLUME);
** IPC_SETVOLUME sets the volume of Winamp (from 0-255).
*/
--------------------------------------------------------------------------------
There is an undocumented feature here. Pass -666 for the volume, and voila you receive the current volume.
Useful for those of us who want to get the Winamp volume - whether for display or something else. Here's an example of my using this feature:
Code:
SetTitleMatchMode, 2
DetectHiddenWindows, On
IfWinNotExist, - Winamp
return
else
SendMessage, 0x400, -666, 122 ; Gets the volume from Winamp, stores in "ErrorLevel"
if ErrorLevel <> FAIL
MsgBox, Winamp volume is %ErrorLevel% out of 255