TRIGGERcmd
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Example Commands
    3. Windows
    Log in to post
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • M

      Show a custom Notification
      • mllacerda

      1
      0
      Votes
      1
      Posts
      189
      Views

      No one has replied

    • Robertofilho

      Shutdown function
      • Robertofilho

      4
      0
      Votes
      4
      Posts
      987
      Views

      Russ

      @Robertofilho, I think something is wrong in your TRIGGERcmd agent's configuration. Uninstalling and re-installing doesn't delete the configuration. Please try this:

      Delete or rename your .TRIGGERcmdData folder in C:\Users\(your user). Delete your computer from your account. Close and re-run the TRIGGERcmd Agent. It will prompt you again for the token. Copy/paste that from the Instructions page in your account.

      After that, you should be able to run commands again, and if you restart the background service it should stay running and you can run background commands.

    • Santiago Ortiz

      Need a command to open apps on my pc, like games, Spotify or Netflix! Its URGENT
      • Santiago Ortiz

      9
      0
      Votes
      9
      Posts
      2416
      Views

      André Ricardo da Costa

      @Russ Nice! I used the same method and managed to make the WhatsApp Desktop application downloaded from the Windows Store open by Alexa's voice command. And this is helpful, as I use whatsapp a lot on the web. I will continue testing other functions of the Trigger CMD ! Thank you!

    • Russ

      Email yourself a list of files (docs, mp3's, videos, whatever)
      • Russ

      3
      0
      Votes
      3
      Posts
      1709
      Views

      Russ

      @Jd-pt, I'll try to get to this soon. In the meantime, do you have any questions.

      If Gmail is blocking you from sending, you might need to turn on "Less secure apps" for this script to use Gmail's smtp server: https://support.google.com/accounts/answer/6010255?hl=en

    • Jaxon T

      Unexpected token W in JSON at position 273
      • Jaxon T

      5
      0
      Votes
      5
      Posts
      136
      Views

      Russ

      @Jaxon-T, if you use three of these "back ticks" ` before and after your text, it will show it as a code block and keep any backslashes intact.

      Like this:

      { "trigger": "sleep", "command": "d:\\tools\\pstools\\psexec -h C:\\\\Windows\\System32\\psshutdown.exe /d /t 1", "offCommand": "", "ground": "background", "voice": "sleep", "voiceReply": "", "allowParams": "false" }

      I tried your command and it didn't work because of UAC. You'll notice I ran it with psexec -h. That worked because it's running as a background command which runs it as Local System which has access to run things "As Administrator" with psexec -h.

    • Wander Sousa

      Atalhos
      • Wander Sousa

      2
      0
      Votes
      2
      Posts
      789
      Views

      G

      @Wander-Sousa

      Da uma olhada se este post te ajuda.

      https://www.triggercmd.com/forum/topic/52/press-the-down-arrow-key-or-any-other-key/22

    • Marcelouw GamePlay

      ps4-waker command
      • Marcelouw GamePlay

      6
      0
      Votes
      6
      Posts
      326
      Views

      Russ

      @Marcelouw-GamePlay, awesome. I'm glad it's working.

    • Dazzlly

      Abrir YouTube no Opera /ou\ Opera GX
      • Dazzlly

      1
      0
      Votes
      1
      Posts
      616
      Views

      No one has replied

    • Xander

      Never used parameters before...
      • Xander

      25
      0
      Votes
      25
      Posts
      1074
      Views

      Royher Figuera

      @Russ said in Never used parameters before...:

      @Royher-Figuera, in a .bat file, the syntax for a parameter is %1 for the first parameter, and %2 for the second parameter, etc.

      So you could make a simple batch file that google's something like this:

      start https://www.google.com/search?q=%1

      @Russ Yes, my mistake.

      I have a error in my .bat file with a "$" and "%". I compare with my google.bat and this is ok and modified the another files.

      Thank You

    • Andrew

      Batch file issues
      • Andrew

      4
      0
      Votes
      4
      Posts
      239
      Views

      Russ

      @Andrew, I saw the same thing. I ran that batch file via TRIGGERcmd - nothing seemed to happen, but something did happen. You have a pause at the end, so it stayed running behind the scenes. I found mine in Task Manager when I showed the "Command line" column.

      e8e5aa1a-853f-4a51-8219-4163bb19bc9b-image.png

      Try adding something to your batch file that you could actually see, like this:

      @echo off title This is your first batch script! echo Welcome to batch scripting! calc
    • Lucas Camila

      Open hyper terminal in windows
      • Lucas Camila

      4
      0
      Votes
      4
      Posts
      390
      Views

      Russ

      @Lucas-Camila, is this the Hyper terminal you're talking about? https://hyper.is/

      One option is you could add hyper to the end of your ~/.bashrc file to run it when you start WSL.

      This command can open WSL for you:

      start wsl

      For what it's worth I also noticed you can run bash scripts in WSL from TRIGGERcmd with a command like this:

      bash /home/russ/script.sh
    • M

      Chrome Did Not Shut Down Correctly
      chrome • • mluck

      1
      0
      Votes
      1
      Posts
      123
      Views

      No one has replied

    • Dreissy Kids

      how do I change the browser from one screen to another
      • Dreissy Kids

      8
      0
      Votes
      8
      Posts
      510
      Views

      Xander

      For those following along at home, here's what I had to do:

      https://www.techrepublic.com/article/how-to-track-down-usb-flash-drive-usage-in-windows-10s-event-viewer/
      especially Figure B.

      I couldn't figure out why no events were registering in all the ordinary places and it turns out they get logged in a more obscure on and only if it's been enabled.
      Once that was done, I un/replugged my USB monitor to create an event and then took an event entry and "assigned task" to it.

      Oh and, every time the USB glitches out, it gets recognized by Nirsoft's utility as a new display so I had to put a loop in the batch file for Display3 to Display20 to move my common windows back to their preferred monitors. Bit of a pain, only because I hadn't had to do that in a batch for years and forgot how.

    • Ivan Kuler

      Turn on PS4 using Wake on Lan
      • Ivan Kuler

      1
      0
      Votes
      1
      Posts
      995
      Views

      No one has replied

    • M

      Qual Comando para ligar o PC Windows 10
      • marcusnjsantos

      6
      0
      Votes
      6
      Posts
      3656
      Views

      Russ

      @Ivan-Kuler, thanks for doing that video! I watched it, then I liked it and subscribed.

    • André Ricardo da Costa

      Problem updating programTrigger CMD
      • André Ricardo da Costa

      4
      0
      Votes
      4
      Posts
      114
      Views

      Russ

      @André-Ricardo-da-Costa, good. I think you'll have success if you uninstall before re-installing, or if you use that "Update Agent" to upgrade.

    • Igor Penha

      how do I open a shortcut file?
      • Igor Penha

      6
      0
      Votes
      6
      Posts
      261
      Views

      Russ

      @Noah-Nauman, generally you can use @Igor-Penha's solution and just copy the target from the shortcut and make that your command.

      2532dabe-e523-46d2-821f-5927a21d09b2-image.png

      Or, if you still want to open an actual shortcut file (.lnk file), you can use the start command, like this:

      start C:\shortcuts\test.lnk
    • Russ

      Start and stop OBS recording or streaming
      • Russ

      1
      0
      Votes
      1
      Posts
      266
      Views

      No one has replied

    • K

      volume controller with Parameter
      • kingaustin247

      2
      1
      Votes
      2
      Posts
      1266
      Views

      D

      hi, i can't make working.
      não consigo fazer funcionar, podem me ajudar

    • VladDracko

      does not recognize all commands in windows
      • VladDracko

      3
      0
      Votes
      3
      Posts
      179
      Views

      Russ

      @VladDracko, please try changing that command to a foreground command.

      Some commands only work as foreground commands, like this one.