Unit WAIPC |
This unit will allow control of Nullsofts awesome Mp3 Player * Winamp from within Delphi 3 Applications (it will probably work with * Delphi 2 but I have not tried it). This unit is FREEWARE if you like * it or have any questions about it let me know emslie@gpu.srv.ualberta.ca *
Classes |
Functions |
AddMp3ToPlayList - IPC_GETVERSION is sent to the window, and the return value is the version
Version 1.
AlwaysOnTop - pops up the preferences
pops up the preferences
Button1 - rewinds 5 seconds the following are the five main control buttons, with optionally shift or control pressed (for the exact functions of each, just try it out
the following are the five main control buttons, with optionally shift or control pressed (for the exact functions of each, just try it out
Button1_CTRL -
Button1_Shift -
Button2 -
Button2_CTRL -
Button2_Shift -
Button3 -
Button3_CTRL -
Button3_Shift -
Button4 -
Button4_CTRL -
Button4_Shift -
Button5 -
Button5_CTRL -
Button5_Shift -
ChangeDir -
DeletePlayList -
EQ - *ONLY AVAILABLE IN v1.
Forward5 - turns the volume down a little
turns the volume down a little
GetOutPutTime - IPC_ISPLAYING returns the status of playback.
GetVersion -
JumpToTime - IPC_GETOUTPUTTIME returns the position in milliseconds of the
current song (lParam = 0), or the song length, in seconds (lParam = 1).
PlayBackStatus -
PlayList - toggles the EQ window
toggles the EQ window
PopUpAboutBox - toggles always on top
toggles always on top
PopUpLoadFile - always goes to the previous song (unlike button 1), 1.
PopUpPreferences - pops up the load file(s) box
pops up the load file(s) box
PrevSong -
Rewind5 - fast forwards 5 seconds
fast forwards 5 seconds
StartPlay -
VolumeDown - turns the volume up a little
turns the volume up a little
VolumeUp - toggles the playlist window
toggles the playlist window
WritePlaylist - *ONLY AVAILABLE IN v1.
Types |
Constants |
IPC_CHDIR
IPC_DELETE
IPC_GETOUTPUTTIME
IPC_GETVERSION
IPC_ISPLAYING
IPC_JUMPTOTIME
IPC_PLAYFILE
IPC_STARTPLAY
IPC_WRITEPLAYLIST
WINAMP_BUTTON1
WINAMP_BUTTON1_CTRL
WINAMP_BUTTON1_SHIFT
WINAMP_BUTTON2
WINAMP_BUTTON2_CTRL
WINAMP_BUTTON2_SHIFT
WINAMP_BUTTON3
WINAMP_BUTTON3_CTRL
WINAMP_BUTTON3_SHIFT
WINAMP_BUTTON4
WINAMP_BUTTON4_CTRL
WINAMP_BUTTON4_SHIFT
WINAMP_BUTTON5
WINAMP_BUTTON5_CTRL
WINAMP_BUTTON5_SHIFT
WINAMP_FFWD5S
WINAMP_FILE_PLAY
WINAMP_HELP_ABOUT
WINAMP_OPTIONS_AOT
WINAMP_OPTIONS_EQ
WINAMP_OPTIONS_PLEDIT
WINAMP_OPTIONS_PREFS
WINAMP_PREVSONG
WINAMP_REW5S
WINAMP_VOLUMEDOWN
WINAMP_VOLUMEUP
Variables |
Functions |
IPC_GETVERSION is sent to the window, and the return value is the version Version 1.55 = 0x1551 Version 1.6b = 0x16A0 Version 1.60 = 0x16AF Version 1.61 = 0x16B0 Version 1.62 = 0x16B1 Version 1.64 = 0x16B3 Version 1.666 = 0x16B4 Version 1.69 = 0x16B5 Version 1.70 = 0x1700 Version 1.72 = 0x1702 Version 1.72 = 0x1703 the command_data parameter is 0. so, if (SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_GETVERSION) != 0x1551) MessageBox(NULL,"Error, Winamp 1.55 not found","Warning",MB_OK);
the following are the five main control buttons, with optionally shift or control pressed (for the exact functions of each, just try it out
turns the volume down a little
IPC_ISPLAYING returns the status of playback. If it returns 1, it is playing. if it returns 3, it is paused, if it returns 0, it is not playing. If it returns something other than 1,3,or 0, something is screwed.
IPC_GETOUTPUTTIME returns the position in milliseconds of the current song (lParam = 0), or the song length, in seconds (lParam = 1). Returns -1 if not playing or error.
always goes to the previous song (unlike button 1), 1.666+
*ONLY AVAILABLE IN v1.60+* IPC_JUMPTOTIME sets the position in milliseconds of the current song (approximately) Returns -1 if not playing, 1 on eof, or 0 if successful
Types |
Constants |
Variables |