<?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[Central Server to send commands to multiple PCs]]></title><description><![CDATA[<p dir="auto">I don't know if this is the right place for this post and if not, please relocate where it needs to be.</p>
<p dir="auto">My wife is visually impaired can I use TriggerCMD to set up voice commands for her. We have a combination of Alexa enable light switches and x10 light switches. So I set up the TriggerCMD combined with and autohotkey script to control the x10 light switches. My home automation system consist of several PCs, one of which is a central server and the TriggerCMD default computer where the commands for the X10 light switches are located. There are two more PCs that are used as HTPCs running Windows 7 Media Center.</p>
<p dir="auto">On my wife's HTPC she can either tune and local broadcast stations or youtubeTV cable stations using a remote control. She can also access other streaming services by entering a channel number that I have assigned to that streaming service. This all goes into an autohotkey script that calls up the appropriate streaming service and runs a URL for that channel. For example, I have assigned channel 2004 to run the Dog the Bounty Hunter on Pluto. When she enters the 2004 on her remote the script will run the appropriate URL and go through all the steps required to get it to full screen with the sound unmuted.</p>
<p dir="auto">And all of that works great except she has a hard time remembering what channel does what. So for her favorite channels I have set up a TriggerCMD for each so that she can say for example, "Alexa run Dog The Bounty Hunter."</p>
<p dir="auto">I started out with the TriggerCMD on her PC. However, she needed to say, "Alexa run Dog the Bounty Hunter on Samsung". I used the voice Samsung as her PC name because the actual name was BSB-DVR and TriggerCMD would hear other letters or words for the letters spoke. So using a full word instead of a series of letters seems to be the best way to set up your computer voice name. She found it confusing to have to say, "Alexa run Dog the Bounty Hunter on Samsung" and why not just "run Dog the Bounty Hunter."</p>
<p dir="auto">So to do that I needed a method of putting the voice commands central server with all of the X10 light switch commands and having the central server tell the remote HTPCs what channel to run.</p>
<p dir="auto">Autohotkey to the rescue. What I did was to have the autohotkey script on the server write the channel number to a configuration (.ini) file on the server. Autohotkey has some Nifty built-in functions for IniWrite and IniRead. Then on the HTPCs the autohotkey script for the television operation will read the configuration file on the server once per second looking for the channel number trigger to be other than zero. If a number is detected then the script will call up the appropriate channel number and write a zero to the server configuration file to clear the trigger.</p>
<p dir="auto">Here is the server command:<br />
{<br />
"trigger": "Dog the Bounty Hunter",<br />
"command": "C:\AHK\alexacommands.ahk 2004",<br />
"OffCommand": "",<br />
"ground": "foreground",<br />
"voice": "Dog the Bounty Hunter",<br />
"voiceReply": "OK",<br />
"allowParams": "true"<br />
}</p>
<p dir="auto">Here is the \server\WMC\0-Triggers.ini server configuration file:<br />
[Commands]<br />
Lenovo-PC=0<br />
BSB-DVR=0<br />
RAB-DVR=0<br />
server=0</p>
<p dir="auto">Here is the alexacommands.ahk autohotkey script on the server:<br />
#SingleInstance Force</p>
<p dir="auto">Arg1 = %1%<br />
Arg2 = %2%</p>
<p dir="auto">;MsgBox %Arg1%***%Arg2%				;for debugging</p>
<p dir="auto">if (Arg1 = 2004){<br />
MsgBox,,, Run Dog The Bounty Hunter, 2							<br />
IniWrite, 2004, \server\WMC\0-Triggers.ini, Commands, BSB-DVR<br />
;the HTPC network name (BSB-DVR) is hard coded for the HTPC this command<br />
;is intended to control.<br />
}<br />
if (Arg1 = 202){<br />
MsgBox,,, Run CNN, 2							<br />
IniWrite, 202, \server\WMC\0-Triggers.ini, Commands, BSB-DVR<br />
}</p>
<p dir="auto">Here is the part of the code that checks for the trigger on the HTPCs:<br />
#SingleInstance Force</p>
<p dir="auto">PCName$ = % A_computername</p>
<p dir="auto">SetTimer, WinCheck, 1000</p>
<p dir="auto">;Contents indicates which hotstring to jump to on startup<br />
IniRead, StartPage, C:\WMC\YTconfig.ini, Config, StartPage						<br />
if (StartPage &lt;&gt; "none")<br />
{<br />
IniWrite, none, C:\WMC\YTconfig.ini, Config, StartPage ;reset StartPage<br />
gosub %StartPage%															<br />
;StartPage contents has the number of the channel where to start.<br />
}</p>
<p dir="auto">/* The body of the HTPC script */</p>
<p dir="auto">;timer function to check for new trigger:<br />
WinCheck:<br />
Trigger$ = 0<br />
IniRead, Trigger$,  \server\WMC\0-Triggers.ini, Commands, %PCName$%<br />
if (Trigger$ &lt;&gt; 0){<br />
MsgBox,,, %Trigger$%, 2<br />
;reset StartPage:<br />
IniWrite, %Trigger$%, C:\WMC\YTconfig.ini, Config, StartPage<br />
;Clear Trigger<br />
IniWrite, 0,  \server\WMC\0-Triggers.ini, Commands, %PCName$%<br />
run, \server\WMC\HTPC.ahk<br />
}<br />
return</p>
]]></description><link>https://www.triggercmd.com/forum/topic/2407/central-server-to-send-commands-to-multiple-pcs</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 14:50:33 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/2407.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 05 Nov 2022 18:31:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Central Server to send commands to multiple PCs on Wed, 16 Nov 2022 00:26:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> Well, it appears the alexa software in order to accommodate several different phrases to do specific commands, there is not much a third party can do about it.  Seems like just using "Channel" or "Select Channel" will cause alexa to try to attribute te command to a fire TV device.  I have run into other conflicts like trying a command "run Judy Justice" and it would try to bring up the prime TV judy justice channel on my Echo Show! Ended up using "run Barbara's Judy Justice" and it works fine.<br />
Thanks again for this great software package. I have a combination of TP-Link light switches and X10 light switches and using your software allows me to alexa connect the X10 switches saving me from changing them out.</p>
]]></description><link>https://www.triggercmd.com/forum/post/6424</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/6424</guid><dc:creator><![CDATA[Richard Binckley]]></dc:creator><pubDate>Wed, 16 Nov 2022 00:26:27 GMT</pubDate></item><item><title><![CDATA[Reply to Central Server to send commands to multiple PCs on Tue, 15 Nov 2022 22:20:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/17832">@Richard-Binckley</a>, bummer.  Sorry about that.</p>
]]></description><link>https://www.triggercmd.com/forum/post/6422</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/6422</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Tue, 15 Nov 2022 22:20:33 GMT</pubDate></item><item><title><![CDATA[Reply to Central Server to send commands to multiple PCs on Tue, 15 Nov 2022 15:10:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a><br />
Thanks for the reply. I've tried a couple of those and the problem is with the alexa end.  Since I also have some firesticks and a fire tv DVR, alexa will be confused with some of those commands and try to run on the fire devices giving the reply, "&lt;fire device&gt; won't do that."</p>
<p dir="auto">It appears that what I want to do is just not in the cards due to alexa software constraints, so I'm going to move on.</p>
]]></description><link>https://www.triggercmd.com/forum/post/6420</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/6420</guid><dc:creator><![CDATA[Richard Binckley]]></dc:creator><pubDate>Tue, 15 Nov 2022 15:10:06 GMT</pubDate></item><item><title><![CDATA[Reply to Central Server to send commands to multiple PCs on Tue, 15 Nov 2022 01:00:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/17832">@Richard-Binckley</a>, if you look at <strong>Voice Commands</strong> page, you'll see a list of voice commands.  You'll see the format for the <strong>TRIGGERcmd</strong> and <strong>TRIGGER command</strong> skills (and soon the TC skill) is:</p>
<p dir="auto"><em>Alexa, ask TRIGGERcmd to run Z on Y with parameter X.</em></p>
<p dir="auto">Or in your case, because you're using your default computer, you don't have to include the "on Y" part.  You can say:</p>
<p dir="auto"><em>Alexa, ask TRIGGERcmd to run Z with parameter X.</em></p>
<p dir="auto">Assuming your command's <strong>voice field</strong> is "Richard's Channel Select", you'd say that in place of Z, so you'd say:</p>
<p dir="auto"><em>Alexa, ask TRIGGERcmd to run Richard's Channel Select with parameter 202.</em></p>
<p dir="auto">Alexa much more likely to match your words to your command's voice field if you change it to a single simple word like <strong>channel</strong> and say:</p>
<p dir="auto"><em>Alexa, ask TRIGGERcmd to run channel with parameter 202.</em></p>
<p dir="auto">A more reliable way to run a command with a number parameter would be to use the TRIGGERcmd Smart Home skill, and say:</p>
<p dir="auto">"Alexa, channel 50"</p>
<p dir="auto">That works great, but unfortunately it's simulating a brightness percentage, so it only goes up to 100.</p>
]]></description><link>https://www.triggercmd.com/forum/post/6418</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/6418</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Tue, 15 Nov 2022 01:00:38 GMT</pubDate></item><item><title><![CDATA[Reply to Central Server to send commands to multiple PCs on Mon, 14 Nov 2022 18:44:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> I have tried several different ways to be able to do this command:</p>
<p dir="auto">Alexa, run Richard's Select Channel 202</p>
<p dir="auto">Where:<br />
On the default PC is the command Richard's Channel Select with parameters set to true<br />
On \RAB-DVR PC is the command Channel Select with parameters set to true.<br />
202 is the parameter I want passed to the \RAB-DVR PC.<br />
Not sure if this is possible.<br />
Thanks for your help.</p>
]]></description><link>https://www.triggercmd.com/forum/post/6417</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/6417</guid><dc:creator><![CDATA[Richard Binckley]]></dc:creator><pubDate>Mon, 14 Nov 2022 18:44:51 GMT</pubDate></item><item><title><![CDATA[Reply to Central Server to send commands to multiple PCs on Sun, 06 Nov 2022 19:36:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/17832">@Richard-Binckley</a>, awesome.  I'm glad you got that working.</p>
<p dir="auto">To make it so you can run Tcmd from anywhere without including the c:\ahk path, you could copy it to c:\windows, or add c:\ahk to your PATH environment variable.</p>
<p dir="auto">Here's a video on how to add a folder to your PATH:. <a href="https://youtu.be/q7PzqbKUm_4" rel="nofollow ugc">https://youtu.be/q7PzqbKUm_4</a></p>
]]></description><link>https://www.triggercmd.com/forum/post/6396</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/6396</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sun, 06 Nov 2022 19:36:55 GMT</pubDate></item><item><title><![CDATA[Reply to Central Server to send commands to multiple PCs on Sun, 06 Nov 2022 16:24:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> Yes, that gets the download, but I was looking for installation instructions to get it added to the recognized commands. So what I did to get it to work was to copy the tcmd-windows-amd64.exe to the C:\AHK\ folder and rename it to tcmd.exe</p>
<p dir="auto">Then I entered the command as this:<br />
C:\AHK\tcmd.exe --computer "RAB-DVR" --trigger "Dog the Bounty Hunter"</p>
<p dir="auto">So there must be a way to eliminate the path to the tcmd.exe and treat it like an internal or external command. I never done that manually as installers usually do it.</p>
<p dir="auto">But anyway I have the tcmd method working thanks.</p>
<p dir="auto">PS Edit:<br />
One other thing, I was not sure about the computer name, but after trying the "samsung" voice name, I changed it to the "RAB-DVR" network name and it worked.</p>
]]></description><link>https://www.triggercmd.com/forum/post/6395</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/6395</guid><dc:creator><![CDATA[Richard Binckley]]></dc:creator><pubDate>Sun, 06 Nov 2022 16:24:46 GMT</pubDate></item><item><title><![CDATA[Reply to Central Server to send commands to multiple PCs on Sun, 06 Nov 2022 01:24:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/17832">@Richard-Binckley</a>, sorry, information like what?</p>
<p dir="auto">Do you mean info about the tcmd utility?<br />
<a href="https://www.triggercmd.com/forum/topic/196/tcmd-go-command-line-tool-is-available-now">https://www.triggercmd.com/forum/topic/196/tcmd-go-command-line-tool-is-available-now</a></p>
]]></description><link>https://www.triggercmd.com/forum/post/6392</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/6392</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sun, 06 Nov 2022 01:24:14 GMT</pubDate></item><item><title><![CDATA[Reply to Central Server to send commands to multiple PCs on Sun, 06 Nov 2022 01:17:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> Thanks, I'll try that. I use the ini file for more than just for the TriggerCMD to pass other data between the PCs, so that is what I used. Is there a place where information like this is available online?  All I saw was the instructions.</p>
]]></description><link>https://www.triggercmd.com/forum/post/6391</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/6391</guid><dc:creator><![CDATA[Richard Binckley]]></dc:creator><pubDate>Sun, 06 Nov 2022 01:17:48 GMT</pubDate></item><item><title><![CDATA[Reply to Central Server to send commands to multiple PCs on Sun, 06 Nov 2022 00:51:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/17832">@Richard-Binckley</a>, here's another way you could do it.  You could run a <a href="https://www.triggercmd.com/forum/topic/196/tcmd-go-command-line-tool-is-available-now">tcmd</a> command on your default computer that runs the "Dog The Bounty Hunter" command on your television computer, like this:</p>
<pre><code>tcmd --computer "RAB-DVR" --trigger "Dog The Bounty Hunter"
</code></pre>
<p dir="auto">Assuming RAB-DVR is the name of your TV computer.</p>
]]></description><link>https://www.triggercmd.com/forum/post/6390</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/6390</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sun, 06 Nov 2022 00:51:27 GMT</pubDate></item></channel></rss>