PDA

View Full Version : playing selected song


jrweikle
20th April 2006, 18:40
I have set up a front end program for winamp
I can select a song in the playlist but can not make
that song play which command am i missing here
i can do it if i remove all song in a playlist and only put the song i want there but thats not what i want to do

DrO
20th April 2006, 18:48
SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_STARTPLAY) or SendMessage(hwnd_winamp,WM_COMMAND,MAKEWPARAM(WINAMP_BUTTON2,0),0). using IPC_SETPLAYLISTPOS allows you to set which file will be played when using either of the above methods (personally i use the wm_command option but it's your choice)

-daz

jrweikle
20th April 2006, 19:10
I've tried that and for some reason it will replay the current song not the one i have selected

jrweikle
20th April 2006, 21:06
ah gotta put a slight delay between selecting the file and hitting the play key
thanks for the help