TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Example Commands
    3. Windows
    Log in to post
    Load new posts
    • Recently Replied
    • Recently Created
    • Most Posts
    • Most Votes
    • Most Views
    • T

      Open and close VLC Player

      • • Tim S
      10
      0
      Votes
      10
      Posts
      5.8k
      Views

      RussR

      @Martin-Musso, that's a cool idea. I did some research and figured out how to play a playlist and send the output to a Chromecast device:

      "c:\Program Files (x86)\VideoLAN\VLC\vlc.exe" c:\playlists\playlist.xspf --sout="#chromecast{ip=192.168.86.25}" --demux-filter=demux_chromecast

      But, I haven't figured out how to tell it to resume where it left off. This sortof worked, but only for the first thing in the playlist.

      I tried this extension with no joy. https://addons.videolan.org/p/1154044/
      If you do try it, you'll want to download it from the Files tab and manually drop it in
      C:\Users(your user)\AppData\Roaming\vlc\lua\extensions
      If you search and install it from within VLC you'll get an old version that's even worse.

      Reference:
      https://wiki.videolan.org/VLC_command-line_help/
      https://forum.videolan.org/viewtopic.php?t=145868

    • Jonny SantosJ

      Play On Spotify.exe

      • • Jonny Santos
      4
      0
      Votes
      4
      Posts
      1.7k
      Views

      RussR

      @Jasbleidy-Lourido-Ortega, please explain. You should be able to say, "Alexa, turn on Night Mood." Is that short enough?

    • VladDrackoV

      does not recognize all commands in windows

      • • VladDracko
      3
      0
      Votes
      3
      Posts
      299
      Views

      RussR

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

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

    • K

      volume controller with Parameter

      • • kingaustin247
      2
      1
      Votes
      2
      Posts
      1.5k
      Views

      D

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

    • RussR

      Start and stop OBS recording or streaming

      • • Russ
      1
      0
      Votes
      1
      Posts
      535
      Views

      No one has replied

    • Igor PenhaI

      how do I open a shortcut file?

      • • Igor Penha
      6
      0
      Votes
      6
      Posts
      649
      Views

      RussR

      @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
    • André Ricardo da CostaA

      Problem updating programTrigger CMD

      • • André Ricardo da Costa
      4
      0
      Votes
      4
      Posts
      324
      Views

      RussR

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

    • M

      Qual Comando para ligar o PC Windows 10

      • • marcusnjsantos
      6
      0
      Votes
      6
      Posts
      7.6k
      Views

      RussR

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

    • Ivan KulerI

      Turn on PS4 using Wake on Lan

      • • Ivan Kuler
      1
      0
      Votes
      1
      Posts
      2.0k
      Views

      No one has replied

    • Dreissy KidsD

      how do I change the browser from one screen to another

      • • Dreissy Kids
      8
      0
      Votes
      8
      Posts
      1.8k
      Views

      XanderX

      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.

    • M

      Chrome Did Not Shut Down Correctly

      chrome • • mluck
      1
      0
      Votes
      1
      Posts
      246
      Views

      No one has replied

    • Lucas CamilaL

      Open hyper terminal in windows

      • • Lucas Camila
      4
      0
      Votes
      4
      Posts
      2.7k
      Views

      RussR

      @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
    • AndrewA

      Batch file issues

      • • Andrew
      4
      0
      Votes
      4
      Posts
      464
      Views

      RussR

      @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
    • XanderX

      Never used parameters before...

      • • Xander
      25
      0
      Votes
      25
      Posts
      3.1k
      Views

      Royher FigueraR

      @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

    • DazzllyD

      Abrir YouTube no Opera /ou\ Opera GX

      • • Dazzlly
      1
      0
      Votes
      1
      Posts
      1.0k
      Views

      No one has replied

    • Marcelouw GamePlayM

      ps4-waker command

      • • Marcelouw GamePlay
      6
      0
      Votes
      6
      Posts
      543
      Views

      RussR

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

    • Wander SousaW

      Atalhos

      • • Wander Sousa
      2
      0
      Votes
      2
      Posts
      1.4k
      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

    • Jaxon TJ

      Unexpected token W in JSON at position 273

      • • Jaxon T
      5
      0
      Votes
      5
      Posts
      294
      Views

      RussR

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

    • RussR

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

      • • Russ
      3
      0
      Votes
      3
      Posts
      1.9k
      Views

      RussR

      @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

    • Santiago OrtizS

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

      • • Santiago Ortiz
      9
      0
      Votes
      9
      Posts
      4.4k
      Views

      André Ricardo da CostaA

      @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!