Where to start
-
Just downloaded triggercmd and I'm trying to add a command line to shut down pc but looking at the command lines in text editor im completely lost. Any help would be great
-
@dan5150, this command would force a shutdown in 10 seconds:
shutdown /f /t 10
-
@russ nice… so that's the only thing I need to put in text command editor? Will this work with Alexis voice commands?
-
@dan5150, I don't know why you prefer to use the text editor, but if you do, you'll need an entry like this:
{ "trigger": "Shut down", "command": "shutdown /s /t 10", "ground": "foreground", "voice": "Shut down", "voiceReply": "Shutting down now", "allowParams": "false" }
With that you can say, "Alexa, ask TRIGGERcmd to run shut down"
EDIT: I had /f at first, but it's actually /s to do a shutdown.
-
@russ that looks along easier bkut when I enter it that way Alexis says it couldn't find it?
-
@dan5150, Alexa might be hearing "shutdown" rather than "shut down". So you might need to make the Voice field "shutdown" instead. I'll test it myself.
-
It's telling me alexa couldn't find a voice command word shut down on pc
I know I'm missing something simple. With the example you gave me I input it into the gui editor word for word? -
@dan5150. I tried using "shut down" and Alexa heard me ok and ran my command.
Are you able to run any commands via Alexa, like Calculator?
Also, can you run commands from the website by clicking the green Trigger button? -
@russ not thru alexa but I'm able to run note pad and calls thru website
-
@dan5150, wonder if you might have multiple TRIGGERcmd accounts, and your Alexa account is tied to the other TRIGGERcmd account?
Just brainstorming here.
If so, you could try unlinking and re-linking to your account.
EDIT: We figured it out - Dan had "shut down /s /t 30" as his command but he needed "shutdown /s /t 30". Notice the shutdown command shouldn't have a space it in. There's a shut down command in the Example commands BTW.