TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How can I shutdown PC?

    Scheduled Pinned Locked Moved General Discussion
    11 Posts 5 Posters 26.3k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? Offline
      [[global:former-user]]
      last edited by

      I have tried for an hour to get my computer to shutdown with triggercmd and Alexa. I cant figure it out. I can run calculator, but cant even run Reboot that was a default trigger that came with the program. I have windows 7. I have updated triggercmd, installed background service, and addd to system path. I have tried with GUI command editor, and text editor. Here is what the text looks like for calculator, which works, open website, which works, and reboot and shutdown, which dont work.

      "trigger": "Reboot in 10 seconds",
      "command": "shutdown /r /t 10",
      "ground": "background",
      "voice": "reboot"
      },
      {
      "trigger": "Calculator",
      "command": "calc",
      "ground": "foreground",
      "voice": "calculator"
      },
      {
      "trigger": "Launch a website",
      "command": "start http://www.google.com",
      "ground": "foreground",
      "voice": "site"
      },
      {
      "trigger": "shutdown",
      "command": "-trigger "shutdown" -computer "pc"",
      "ground": "background",
      "voice": "shutdown"

      Please help

      RussR 1 Reply Last reply Reply Quote 0
      • RussR Offline
        Russ @Guest
        last edited by Russ

        @rtubbs316, good question. I added this to the examples. I think others could use this too. I also added "Abort shutdown"

        This is the command assuming you want it to wait 60 seconds. Use /t 1 to shutdown in 1 second:

        shutdown /s /t 60
        

        You could also add a /f for "force"

        shutdown /s /t 60 /f
        

        You can also abort the shutdown like this:

        shutdown /a
        

        Type this at a cmd prompt to get the full useage of the shutdown command:

        shutdown /?
        

        Russell VanderMey

        C A 2 Replies Last reply Reply Quote 0
        • C Offline
          Christopher Hogben @Russ
          last edited by

          @russ I'm also having issues using the reboot and shutdown commands. I've called my PC "computer" and so I've tried to ask Alexa both "Alexa, ask TRIGGERcmd to shutdown computer" and "Alexa, ask TRIGGERcmd to shut down in 1 minute computer".

          However, Alexa responds with "Could not find a computer with voice word shutdown in 1 minute." (same issue with rebooting also).

          RussR 1 Reply Last reply Reply Quote 0
          • RussR Offline
            Russ @Christopher Hogben
            last edited by Russ

            @christopher-hogben,

            Assuming your voice field is set to "reboot", your sentence should be: "Alexa, ask TRIGGERcmd to run Reboot".

            If you have more than one computer and want to run a command on your non-default computer, you can say, "Alexa, ask TRIGGERcmd to run Reboot on Computer" to specify the computer.

            Also if you click the "Voice commands" link on the website while you're logged in, you'll see a list of sentences in the "Say this" column.

            Also, make sure you test this from the website first. If you don't see the "Reboot in 10 seconds" option on the website, you probably don't have the background service installed yet. Background commands only show up when you have the background service installed. Background commands are meant to be runnable even if you're not logged into your PC.

            Russell VanderMey

            1 Reply Last reply Reply Quote 0
            • A Offline
              Alpha Neuron @Russ
              last edited by

              @russ Sorry but Im new at this. Where do i find the screen to even type in "shutdown/s/t1" ? You seem to jump right into things but I cant even get on the same page. excuse my "newbie" status.

              1 Reply Last reply Reply Quote 0
              • A Offline
                Alpha Neuron
                last edited by

                OK, start by going to the tray icon, right click, and click on GUI command editor... right

                1 Reply Last reply Reply Quote 0
                • A Offline
                  Alpha Neuron
                  last edited by

                  ok, so now the reboot command is on the gui command editor but it does not appear under the "actions" in my profile... step by step instructions are missing my friend, or are not obviously apparent to the newbie ie me.

                  RussR 1 Reply Last reply Reply Quote 0
                  • RussR Offline
                    Russ @Alpha Neuron
                    last edited by

                    @alpha-neuron, I think the reason your reboot command isn't showing up is the background service isn't working on your computer or you didn't install it yet. You can use foreground commands, but you'll have to be logged in for them to work. That's not a problem for most people. So please just try switching the reboot command's Ground field to foreground instead of background.

                    Russell VanderMey

                    A 1 Reply Last reply Reply Quote 0
                    • A Offline
                      Alpha Neuron @Russ
                      last edited by

                      @russ Thanks, I ended up changing to foreground.

                      1 Reply Last reply Reply Quote 0
                      • Ivan FreitasI Offline
                        Ivan Freitas
                        last edited by

                        How do I shut down my macbook, I tried to put these codes above but it didn't work

                        RussR 1 Reply Last reply Reply Quote 0
                        • RussR Offline
                          Russ @Ivan Freitas
                          last edited by Russ

                          @Ivan-Freitas, I posted a mac solution here in the mac section.

                          Russell VanderMey

                          1 Reply Last reply Reply Quote 0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • First post
                            Last post