<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>00110102... WTF?!? &#187; VLC Player</title>
	<atom:link href="http://www.hintswen.com/blog/tag/vlc-player/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hintswen.com/blog</link>
	<description>For everything Grey</description>
	<lastBuildDate>Sun, 25 Jul 2010 14:43:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Get VLC player curerent song from windows command line</title>
		<link>http://www.hintswen.com/blog/2009/12/07/get-vlc-player-curerent-song-from-windows-command-line/</link>
		<comments>http://www.hintswen.com/blog/2009/12/07/get-vlc-player-curerent-song-from-windows-command-line/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 07:37:34 +0000</pubDate>
		<dc:creator>Hintswen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[song]]></category>
		<category><![CDATA[VLC]]></category>
		<category><![CDATA[VLC Player]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.hintswen.com/blog/?p=188</guid>
		<description><![CDATA[I wasn&#8217;t sure it was possible but the following batch script should work. It might have some problems with special characters still&#8230; post a comment if you find something wrong with it. I&#8217;ll fix it and post the new script. 1 2 3 4 5 6 7 8 9 10 11 12 @echo off tasklist /FI &#34;IMAGENAME [...]]]></description>
			<content:encoded><![CDATA[<p>I wasn&#8217;t sure it was possible but the following batch script should work. It might have some problems with special characters still&#8230; post a comment if you find something wrong with it. I&#8217;ll fix it and post the new script.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="winbatch" style="font-family:monospace;"><span style="color: #66cc66;">@</span>echo <span style="color: #0080FF; font-weight: bold;">off</span>
tasklist <span style="color: #66cc66;">/</span>FI <span style="color: #ff0000;">&quot;IMAGENAME EQ vlc.exe&quot;</span> <span style="color: #66cc66;">/</span>v <span style="color: #66cc66;">/</span>FO <span style="color: #ff0000;">&quot;list&quot;</span> <span style="color: #66cc66;">&amp;</span>gt<span style="color: #008000; font-style: italic;">; tempdata</span>
<span style="color: #800080;">for</span> <span style="color: #66cc66;">/</span>F <span style="color: #ff0000;">&quot;tokens=*&quot;</span> <span style="color: #66cc66;">%%</span>R <span style="color: #800080;">in</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'findstr &quot;Window&quot; tempdata'</span><span style="color: #66cc66;">&#41;</span> do set VAR=<span style="color: #66cc66;">%%</span>R
set TITLE=Window Title<span style="color: #FF1010; font-weight: bold;">: VLC media player</span>
set VAR=<span style="color: #66cc66;">%</span>VAR<span style="color: #FF1010; font-weight: bold;">:|=^|%</span>
set VAR=<span style="color: #66cc66;">%</span>VAR<span style="color: #FF1010; font-weight: bold;">:&amp;lt;=^&amp;lt;% set VAR=%VAR:&amp;gt;=^&amp;gt;%</span>
set VAR=<span style="color: #66cc66;">%</span>VAR<span style="color: #FF1010; font-weight: bold;">:(=^(%</span>
set VAR=<span style="color: #66cc66;">%</span>VAR<span style="color: #FF1010; font-weight: bold;">:)=^)%</span>
<span style="color: #800080;">IF</span> <span style="color: #ff0000;">&quot;%VAR%&quot;</span>==<span style="color: #ff0000;">&quot;%TITLE%&quot;</span> <span style="color: #800080;">GOTO</span> <span style="color: #FF1010; font-weight: bold;">:EOF</span>
set VAR=<span style="color: #66cc66;">%</span>VAR<span style="color: #FF1010; font-weight: bold;">:Window Title: =%</span>
set VAR=<span style="color: #66cc66;">%</span>VAR<span style="color: #FF1010; font-weight: bold;">: - VLC media player=%</span>
echo <span style="color: #66cc66;">%</span>VAR<span style="color: #66cc66;">%</span></pre></td></tr></table></div>

<p>PS. It creates the file &#8220;tempdata&#8221; in the same folder as the batch file. It also wont work if the playlist is focused (or was focused more recently than the main window).</p>
<p>There will be no output if the song is stopped (but if it is just paused it will show the song name).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hintswen.com/blog/2009/12/07/get-vlc-player-curerent-song-from-windows-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

