View Full Version : Open winamp playlist but not start playing
Blobby66
11th September 2002, 12:47
Anyone know how to open a winamp playlist (.m3u) file but not actually start playing it? Ive tried stopping it as soon as the shell has finished executing but the first track has already started playing when it stops. Im using VB and calling it with a shell command. Thanks
Bartje
14th September 2002, 15:35
Hmm... maybe WINAMP /ADD xxxxxx.m3u
Just a thought.... didn't try it...
Blobby66
16th September 2002, 21:29
Nope. Winamp /ADD only workd for mp3 files and not playlist files (.m3u). Thanks for the suggestion tho
kichik
17th September 2002, 20:23
If it's Winamp 2.x you can try sending IPC_CHANGECURRENTFILE.
#define WM_WA_IPC WM_USER
#define IPC_CHANGECURRENTFILE 245
/* (requires Winamp 2.05+)
** SendMessage(hwnd_winamp,WM_WA_IPC,(WPARAM)file,IPC_CHANGECURRENTFILE);
**
** IPC_CHANGECURRENTFILE will set the current playlist item.
Blobby66
20th September 2002, 16:02
Ok thanks fo that Kichik. When you say Winamp 2 which versions of winamp does that cover? Im using the API FindWindow at the moment to find "Winamp 1.x" (valid for version 2.80 which i have) but i have no idea what to look for to find Version 3's window! Any ideas?
Thanx
PS have the contol codes change for v3 too (like 40048 to skip to next track etc etc etc)?
kichik
20th September 2002, 16:08
This doesn't work with Winamp3.
Winamp 2 only.
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.