PDA

View Full Version : How can I add a file to the playlist of VLC when it's already in use



colin2
05-09-2013, 01:00 AM
All my mp3 files are listed in a Excel Workbook
I use it to organise playlists for VLC.exe
I know how to throw VLC with the chosen songs. (use the right button in the example)
I know how to discern if VLC.exe is already opened.
But I do not know how to add a song to the playlist in case VLC is in functioning.
Someone has a idea?

patel
05-09-2013, 02:36 AM
Do you know how to add a song to the playlist in case VLC is NOT functioning ?
how ? please

colin2
05-10-2013, 01:46 AM
Dim ID As Variant, playlist As String,
c As Range
For Each c In Selection
If playlist "" Then
playlist = playlist & " " & Chr(34) & "F:\Musique\" & Cells(c.Row, 8) & Chr(34)
Else
playlist = Chr(34) & "F:\Musique\" & Cells(c.Row, 8) & Chr(34)
End If
Next ID = Shell("""C:\Program Files\VLC\VLC.exe" & Chr(34) & playlist, vbNormalFocus)

colin2
05-10-2013, 01:49 AM
you better look at the joined file

patel
05-10-2013, 09:01 AM
Ok, I understand, but you open a shell, then run vlc with some parameters. You can not do it when Vlc is running.

SamT
05-10-2013, 06:07 PM
vlc.playlist.enqueue(new)
vlc.playlist.Add new

colin2
05-28-2013, 08:02 AM
thanks