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

How can I shutdown PC?

General Discussion
5
11
22.8k
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.
  • ?
    A Former User
    last edited by Aug 25, 2017, 3:31 PM

    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

    R 1 Reply Last reply Aug 25, 2017, 9:24 PM Reply Quote 0
    • R
      Russ @A Former User
      last edited by Russ Aug 26, 2017, 12:14 AM Aug 25, 2017, 9:24 PM

      @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 Jun 3, 2018, 10:48 AM Reply Quote 0
      • C
        Christopher Hogben @Russ
        last edited by Jun 3, 2018, 10:48 AM

        @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).

        R 1 Reply Last reply Jun 3, 2018, 2:20 PM Reply Quote 0
        • R
          Russ @Christopher Hogben
          last edited by Russ Jun 3, 2018, 2:28 PM Jun 3, 2018, 2:20 PM

          @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
            Alpha Neuron @Russ
            last edited by Feb 19, 2019, 10:46 PM

            @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
              Alpha Neuron
              last edited by Feb 19, 2019, 10:57 PM

              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
                Alpha Neuron
                last edited by Feb 20, 2019, 1:32 AM

                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.

                R 1 Reply Last reply Feb 20, 2019, 2:03 AM Reply Quote 0
                • R
                  Russ @Alpha Neuron
                  last edited by Feb 20, 2019, 2:03 AM

                  @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 Feb 22, 2019, 3:58 AM Reply Quote 0
                  • A
                    Alpha Neuron @Russ
                    last edited by Feb 22, 2019, 3:58 AM

                    @russ Thanks, I ended up changing to foreground.

                    1 Reply Last reply Reply Quote 0
                    • I
                      Ivan Freitas
                      last edited by May 31, 2020, 12:59 PM

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

                      R 1 Reply Last reply May 31, 2020, 2:56 PM Reply Quote 0
                      • R
                        Russ @Ivan Freitas
                        last edited by Russ May 31, 2020, 3:02 PM May 31, 2020, 2:56 PM

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

                        Russell VanderMey

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post