<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Volume script]]></title><description><![CDATA[<p dir="auto">This is my current Windows batch script to set the volume on my laptop using <a href="https://www.youtube.com/watch?v=xub4pjenLVs" rel="nofollow ugc">nircmd</a>.</p>
<p dir="auto">I can say, "Alexa, set volume on laptop 90" to set the volume to 90 percent, or Alexa, turn off volume on laptop" to mute it.</p>
<pre><code>@echo off

if "%1"=="" goto :usage
if "%1"=="on" goto :on
if "%1"=="off" goto :off
goto percent

:on
echo Unmuting volume
nircmd mutesysvolume 0
goto done

:off
echo Muting volume
nircmd mutesysvolume 1
goto done

:percent
set percent=%1%
echo Setting volume to %percent% percent
set /a "num=65535*(percent %% 101)/100"
nircmd setsysvolume %num%
goto done

:usage
echo %0 on, off, or 1-100
echo For example, these commands will mute the volume:
echo %0 off
echo %0 0

:done
echo Done.
</code></pre>
<p dir="auto"><img src="/forum/assets/uploads/files/1693787188837-9d96f5d6-58a3-4889-97eb-5fad5c1b71ec-image.png" alt="9d96f5d6-58a3-4889-97eb-5fad5c1b71ec-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://www.triggercmd.com/forum/topic/2692/volume-script</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 04:04:45 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/2692.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Sep 2023 00:26:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Volume script on Wed, 15 Nov 2023 13:08:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/21469">@Meximistas</a>, I think Alexa would accept one of these:</p>
<pre><code>establecer volumen 90
subir el volumen a 90
</code></pre>
<p dir="auto">You'd make the Voice field <strong>volumen</strong> instead of volume.</p>
]]></description><link>https://www.triggercmd.com/forum/post/7513</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7513</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Wed, 15 Nov 2023 13:08:39 GMT</pubDate></item><item><title><![CDATA[Reply to Volume script on Wed, 15 Nov 2023 11:20:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/33">@Nate-Hales</a> in spanish?</p>
]]></description><link>https://www.triggercmd.com/forum/post/7512</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7512</guid><dc:creator><![CDATA[Meximistas]]></dc:creator><pubDate>Wed, 15 Nov 2023 11:20:14 GMT</pubDate></item><item><title><![CDATA[Reply to Volume script on Thu, 12 Oct 2023 07:35:29 GMT]]></title><description><![CDATA[<p dir="auto">Actually love this one!</p>
]]></description><link>https://www.triggercmd.com/forum/post/7421</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7421</guid><dc:creator><![CDATA[Nate Hales]]></dc:creator><pubDate>Thu, 12 Oct 2023 07:35:29 GMT</pubDate></item></channel></rss>