Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 11th September 2002, 12:47   #1
Blobby66
Junior Member
 
Join Date: Sep 2001
Posts: 39
Open winamp playlist but not start playing

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
Blobby66 is offline   Reply With Quote
Old 14th September 2002, 15:35   #2
Bartje
Junior Member
 
Join Date: Sep 2002
Posts: 10
Hmm... maybe WINAMP /ADD xxxxxx.m3u

Just a thought.... didn't try it...
Bartje is offline   Reply With Quote
Old 16th September 2002, 21:29   #3
Blobby66
Junior Member
 
Join Date: Sep 2001
Posts: 39
Nope. Winamp /ADD only workd for mp3 files and not playlist files (.m3u). Thanks for the suggestion tho
Blobby66 is offline   Reply With Quote
Old 17th September 2002, 20:23   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,336
If it's Winamp 2.x you can try sending IPC_CHANGECURRENTFILE.

code:

#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.


NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 20th September 2002, 16:02   #5
Blobby66
Junior Member
 
Join Date: Sep 2001
Posts: 39
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)?
Blobby66 is offline   Reply With Quote
Old 20th September 2002, 16:08   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,336
This doesn't work with Winamp3.
Winamp 2 only.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp 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