<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Mute Sound Volume in WSH</title>
	<link>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/</link>
	<description>Ask the Windows Guru!</description>
	<pubDate>Sat, 04 Feb 2012 11:50:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Assaf</title>
		<link>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-130719</link>
		<dc:creator>Assaf</dc:creator>
		<pubDate>Thu, 03 Feb 2011 09:21:04 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-130719</guid>
		<description>thank you very much!</description>
		<content:encoded><![CDATA[<p>thank you very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WildCard</title>
		<link>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-122678</link>
		<dc:creator>WildCard</dc:creator>
		<pubDate>Tue, 21 Dec 2010 10:32:17 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-122678</guid>
		<description>One way you can make good use of the keyboard press mute toggle is to unmute the system volume first. Raising or lowering the system volume will automatically unmute.

By raising the volume one notch and bringing it back one notch (returning it to what ever level it was set to) and then using the mute toggle to ensures the system volume will be muted each and every time the script is run.


'Mute system volume script (keyboard press volume control)
Set WshShell = CreateObject("WScript.Shell")

'Raise Volume 1 step (keyboard press volume up)
'Lower Volume 1 step (keyboard press volume down)
WshShell.SendKeys (chr(175))
WshShell.SendKeys (chr(174))

'Mute toggle (keyboard press mute toggle)
WshShell.SendKeys(chr(&#38;hAD))</description>
		<content:encoded><![CDATA[<p>One way you can make good use of the keyboard press mute toggle is to unmute the system volume first. Raising or lowering the system volume will automatically unmute.</p>
<p>By raising the volume one notch and bringing it back one notch (returning it to what ever level it was set to) and then using the mute toggle to ensures the system volume will be muted each and every time the script is run.</p>
<p>&#8216;Mute system volume script (keyboard press volume control)<br />
Set WshShell = CreateObject(&#8221;WScript.Shell&#8221;)</p>
<p>&#8216;Raise Volume 1 step (keyboard press volume up)<br />
&#8216;Lower Volume 1 step (keyboard press volume down)<br />
WshShell.SendKeys (chr(175))<br />
WshShell.SendKeys (chr(174))</p>
<p>&#8216;Mute toggle (keyboard press mute toggle)<br />
WshShell.SendKeys(chr(&amp;hAD))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rjnn Suibne</title>
		<link>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-109032</link>
		<dc:creator>Rjnn Suibne</dc:creator>
		<pubDate>Wed, 22 Sep 2010 13:03:10 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-109032</guid>
		<description>If you do something like this:

Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "{" &#38; chr(174) &#38; " 25}"

which sets the volume to 0. Unorthodox, but it works. Not sure if it is a true mute as I have heard minute sound at volume 0 on some machines but is a trick I use. 

Usually I use that on a Computer at home I have hooked up to a TV. I need to play movies at a higher volume, but I keep my video game volume low, so after the WshShell.SendKeys "{" &#38; chr(174) &#38; " 25}" line, I wrote something like:

WshShell.SendKeys "{" &#38; chr(175) &#38; chr(32) &#38; volUp"}"

where volUp is a specified value in range of 0-25.</description>
		<content:encoded><![CDATA[<p>If you do something like this:</p>
<p>Set WshShell = CreateObject(&#8221;WScript.Shell&#8221;)<br />
WshShell.SendKeys &#8220;{&#8221; &amp; chr(174) &amp; &#8221; 25}&#8221;</p>
<p>which sets the volume to 0. Unorthodox, but it works. Not sure if it is a true mute as I have heard minute sound at volume 0 on some machines but is a trick I use. </p>
<p>Usually I use that on a Computer at home I have hooked up to a TV. I need to play movies at a higher volume, but I keep my video game volume low, so after the WshShell.SendKeys &#8220;{&#8221; &amp; chr(174) &amp; &#8221; 25}&#8221; line, I wrote something like:</p>
<p>WshShell.SendKeys &#8220;{&#8221; &amp; chr(175) &amp; chr(32) &amp; volUp&#8221;}&#8221;</p>
<p>where volUp is a specified value in range of 0-25.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cozman</title>
		<link>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-98998</link>
		<dc:creator>Cozman</dc:creator>
		<pubDate>Mon, 26 Jul 2010 04:23:37 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-98998</guid>
		<description>Works fine on xp sp3.  Thanks a bunch.
I wish I could find the cause of it auto-muting.
It mutes itself many times a day.</description>
		<content:encoded><![CDATA[<p>Works fine on xp sp3.  Thanks a bunch.<br />
I wish I could find the cause of it auto-muting.<br />
It mutes itself many times a day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hpo14</title>
		<link>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-85197</link>
		<dc:creator>hpo14</dc:creator>
		<pubDate>Mon, 19 Apr 2010 16:38:35 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-85197</guid>
		<description>i dont know why this doesnt work on my windows XP ?</description>
		<content:encoded><![CDATA[<p>i dont know why this doesnt work on my windows XP ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-79050</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 25 Feb 2010 19:27:22 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-79050</guid>
		<description>Thanks</description>
		<content:encoded><![CDATA[<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin</title>
		<link>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-49081</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Thu, 16 Jul 2009 14:50:22 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-49081</guid>
		<description>That's really sweet!  I'd often wondered how those keyboards worked.</description>
		<content:encoded><![CDATA[<p>That&#8217;s really sweet!  I&#8217;d often wondered how those keyboards worked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nilpo</title>
		<link>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-39748</link>
		<dc:creator>Nilpo</dc:creator>
		<pubDate>Fri, 29 May 2009 23:03:25 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-39748</guid>
		<description>Unfortunately, you cannot use this method of checking the current system volume.  The SendKeys method only simulates key strokes.  It does not offer a return value as it is not a function.</description>
		<content:encoded><![CDATA[<p>Unfortunately, you cannot use this method of checking the current system volume.  The SendKeys method only simulates key strokes.  It does not offer a return value as it is not a function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arkady</title>
		<link>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-39715</link>
		<dc:creator>Arkady</dc:creator>
		<pubDate>Fri, 29 May 2009 15:26:41 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-39715</guid>
		<description>So, that does indeed mean that one can check for system state with conditional and then act on it - "if WshShell.SendKeys(chr(?)) is greater then 173 then WshShell.SendKeys(chr(173))"

What would be the syntax to do it? Please help.</description>
		<content:encoded><![CDATA[<p>So, that does indeed mean that one can check for system state with conditional and then act on it - &#8220;if WshShell.SendKeys(chr(?)) is greater then 173 then WshShell.SendKeys(chr(173))&#8221;</p>
<p>What would be the syntax to do it? Please help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander</title>
		<link>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-36523</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Tue, 28 Apr 2009 15:06:56 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-36523</guid>
		<description>I use it for map the STOP key (browser) of a keyboard that hasn't MUTE key. 
All this throught "Tweak UI" utility on Windows XP.

Thanks !!!</description>
		<content:encoded><![CDATA[<p>I use it for map the STOP key (browser) of a keyboard that hasn&#8217;t MUTE key.<br />
All this throught &#8220;Tweak UI&#8221; utility on Windows XP.</p>
<p>Thanks !!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Skantze</title>
		<link>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-32203</link>
		<dc:creator>Daniel Skantze</dc:creator>
		<pubDate>Wed, 25 Mar 2009 13:15:56 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-32203</guid>
		<description>Another solution is to just lower the volume:
WshShell.SendKeys(chr(174))

Or raise the volume:
WshShell.SendKeys(chr(175))

Each 174 or 175 code changes the volume only by a small amount so you will have to repeat the command.</description>
		<content:encoded><![CDATA[<p>Another solution is to just lower the volume:<br />
WshShell.SendKeys(chr(174))</p>
<p>Or raise the volume:<br />
WshShell.SendKeys(chr(175))</p>
<p>Each 174 or 175 code changes the volume only by a small amount so you will have to repeat the command.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Skantze</title>
		<link>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-32188</link>
		<dc:creator>Daniel Skantze</dc:creator>
		<pubDate>Wed, 25 Mar 2009 10:17:24 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-32188</guid>
		<description>Nice one!</description>
		<content:encoded><![CDATA[<p>Nice one!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Bos</title>
		<link>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-23735</link>
		<dc:creator>Rob Bos</dc:creator>
		<pubDate>Wed, 28 Jan 2009 22:19:19 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-23735</guid>
		<description>I'd like people to have the option of turning on the sound at any time.  I work at a university library, and I'm specifically talking about lending laptops.  Headphones ought to be usable.  Thus all sound should be off unless the user specifically enables it.

So I'd hoped to be able to mute the system sound on logout and startup.

It's possible that disabling the various beeps and blorts that Windows throws out might be sufficient, but it seems inelegant. :)</description>
		<content:encoded><![CDATA[<p>I&#8217;d like people to have the option of turning on the sound at any time.  I work at a university library, and I&#8217;m specifically talking about lending laptops.  Headphones ought to be usable.  Thus all sound should be off unless the user specifically enables it.</p>
<p>So I&#8217;d hoped to be able to mute the system sound on logout and startup.</p>
<p>It&#8217;s possible that disabling the various beeps and blorts that Windows throws out might be sufficient, but it seems inelegant. <img src='http://www.nilpo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nilpo</title>
		<link>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-23727</link>
		<dc:creator>Nilpo</dc:creator>
		<pubDate>Wed, 28 Jan 2009 20:20:16 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-23727</guid>
		<description>Hi Rob.

I haven't found any reliable way of determining whether the system sound is currently muted or not.  However, I have a couple of other solutions that may work for you.  Are you looking to mute the sound all of the time or just during certain events?  Some options might include:

1. enabling/disabling the sound device,
2. enabling/disabling system sounds,
3. or starting/stopping the Windows Audio service.</description>
		<content:encoded><![CDATA[<p>Hi Rob.</p>
<p>I haven&#8217;t found any reliable way of determining whether the system sound is currently muted or not.  However, I have a couple of other solutions that may work for you.  Are you looking to mute the sound all of the time or just during certain events?  Some options might include:</p>
<p>1. enabling/disabling the sound device,<br />
2. enabling/disabling system sounds,<br />
3. or starting/stopping the Windows Audio service.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Bos</title>
		<link>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-23725</link>
		<dc:creator>Rob Bos</dc:creator>
		<pubDate>Wed, 28 Jan 2009 18:46:32 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/11/windows-xp/mute-sound-volume-in-wsh/#comment-23725</guid>
		<description>Clever solution, but how can you detect whether the system is muted or not?  Being able to toggle in a script isn't much use if you don't know the mute state.

I want to ensure that a laptop is muted.  Toggling doesn't do me much good if it's already muted. :)</description>
		<content:encoded><![CDATA[<p>Clever solution, but how can you detect whether the system is muted or not?  Being able to toggle in a script isn&#8217;t much use if you don&#8217;t know the mute state.</p>
<p>I want to ensure that a laptop is muted.  Toggling doesn&#8217;t do me much good if it&#8217;s already muted. <img src='http://www.nilpo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>

