Question: How to clear Playlist

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Ijaja
Blank Cone
Blank Cone
Posts: 16
Joined: 16 Mar 2010 11:42

Question: How to clear Playlist

Postby Ijaja » 10 Nov 2010 09:14

Hello,

i want to clear the playlist automatically on request, not over gui interface. My preferred way would be a command line option to clear it, or to say vlc to use the specified file (or playlist) as the only new item(s) in the playlist and delete all old ones. Of course i am using vlc in the one instance mode.
An alternative way is ok for me, such that for example i previously exit vlc. Is this possible via command line?


Greets Ijaja

jbp
New Cone
New Cone
Posts: 4
Joined: 04 Sep 2015 07:07

Re: Question: How to clear Playlist

Postby jbp » 23 Jul 2016 09:47

Your question: An alternative way is ok for me, such that for example i previously exit vlc. Is this possible via command line?

yes, you can invoke the windows taskmanager to quit VLC. This is the same as ALT-CTRL-DEL and killing the process, so any changes to window size/placement etc etc will be lost and when you restart VLC, it will be as the last "graceful" exit, which will have saved the parameters as set at that time.

The command to issue to Windows is

taskkill /F /IM vlc.exe

i send this directly from a Filemaker Pro runtime solution using a script line which looks like this:

Send Event ["aevt";"odoc";"taskkill /F /IM vlc.exe"]

The "Send Event" command in Filemaker Pro sends the event directly to Windows as if you had opened a CMD window and typed the command into the DOS prompt.

To reopen vlc, i issue this command:

Send Event ["aevt";"odoc";"vlc.exe silence.mp3"]

This sends another call to Windows, telling it to start vlc.exe and run an mp3 clip called "silence.mp3"...this mp3 clip is 1/4 second of silence, which i created using Audacity.

Hope this helps...


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 45 guests