TRIGGERcmd
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Recent
    Log in to post
    • All categories
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • HeeHang

      I'm trying to run a console application I created using make.com's TriggerCmd.
      General Discussion • • HeeHang

      2
      0
      Votes
      2
      Posts
      11
      Views

      Steve Lee

      @HeeHang I know nothing about Make.com but TRIGGER cmd runs windows cmd commands and Windows has the parts to make it possible. Basically you probably want to add something like the following to a cmd/bat file and run that from TRIGGERcmd

      start "" app.exe /s timeout /t 5 taskkill /im app.exe /f start runs app.exe in a new process timeout waits a few seconds before returning taskkill /im kills task by name - assuming it is only one

      If you have a script rather than an exe the run: cmd /c "my.cmd"

      Hope that helps

    • Russ

      Trigger a command with a Shortcut via Siri
      Mac • • Russ

      1
      0
      Votes
      1
      Posts
      89
      Views

      No one has replied

    • M

      How can I get feedback that the command was executed remotely?
      Mac • • Murilo Callegari

      2
      0
      Votes
      2
      Posts
      23
      Views

      Russ

      @Murilo-Callegari, if you look at the Runs list for your command, it should say "Command ran" if the command actually ran on your computer.

      If you're worried the screen still didn't lock even though your "lock screen" command ran, you could have your "lock screen" script also check whether the screen is locked, and send that information to the Runs list using the ~/.TRIGGERcmdData/result.sh script.

      Just run ~/.TRIGGERcmdData/result.sh from your "lock screen" script with a status message like "Locked" or "Unlocked" as the parameter when you run result.sh.

      You can also have Alexa speak the "Locked" or "Unlocked" result if you add {{result}} to your command's Voice Reply field and use one the Conversational Alexa skills.

      This article has more about that.

    • Waldex Santos

      Shutdown não funciona no mac
      Mac • • Waldex Santos

      4
      0
      Votes
      4
      Posts
      83
      Views

      M

      @Waldex-Santos Todos os comandos eu uso pela Alexa, e no Mac Ventura eu uso o comando:

      Desligar o MacOS: osascript -e 'tell app "System Events" to shut down

      Trancar a tela com senha: osascript -e 'tell application "System Events" to keystroke "q" using {control down, command down}'

      Encerrar todos os aplicativos no modo "quit force": osascript -e 'tell app "System Events" to shut down' (Muito útil para quando o sistema congela!)

      Eu fiz automação com o sensor Tuya ou Zigbee da porta, toda vez que eu abro a porta do quarto o computador tranca, e quando eu saio de casa ele desliga sozinho!

      Assim fico seguro contra os enxeridos, porque utilizo muito o Amphetamine e na pressa saio as vezes sem lembrar de bloquear a tela ou antes do protetor de tela ter tempo hábil para isso.

      Essas automações de camadas de segurança todas são geridas pela Alexa e sensores de presença da Phillips Hue e também pelo sensor de contato da portas/janelas que é baratinho no Aliexpress que é Tuya...

    • Steve Lee

      Alexa keeps hearing "perameter" as"perimeter"
      General Discussion • • Steve Lee

      7
      0
      Votes
      7
      Posts
      20
      Views

      Steve Lee

      @Russ yay! I'll give it a go

    • A

      Commands marked as executed, but nothing happens
      General Discussion • linux launching apps foreground service help needed • • aandrews

      5
      0
      Votes
      5
      Posts
      27
      Views

      A

      @Russ It makes sense, thank you again. I will try this as soon as possible but I'm hopeful it'll finally work as I intended

    • O

      Turn Computer Monitors Off - But only two out of three monitors
      Alexa • • Olivotec

      2
      0
      Votes
      2
      Posts
      14
      Views

      Russ

      @Olivotec, please try this 2-line script:

      MultiMonitorTool.exe /disable \.\DISPLAY2 MultiMonitorTool.exe /disable \.\DISPLAY3

      You'll need to install this tool first:
      https://www.nirsoft.net/utils/multi_monitor_tool.html

    • Frank Malczewski

      Customer Support? TRIGGERcmdAgent keeps stopping
      General Discussion • • Frank Malczewski

      28
      0
      Votes
      28
      Posts
      224
      Views

      Frank Malczewski

      @Russ OK. Thanks. As previously mentioned, I am now running that script nightly. Hopefully, even if I get a failure it will be short-lived.

    • T

      Turn Computer Monitors Off
      Linux • • Tony Bineyard

      9
      0
      Votes
      9
      Posts
      4493
      Views

      O

      @Jogador-Extremo-live said in Turn Computer Monitors Off:

      I have two monitor, is there a way to turn off just my second monitor?

      So this is basically what I need, did you manage to do this?

      I want to play games on my TV which is one of 3 monitors I have. And i want to turn off both monitors to have only the TV i'm using to game

    • Ricardo Pereira

      Como usar o Nircmd?
      Example Commands • • Ricardo Pereira

      5
      0
      Votes
      5
      Posts
      625
      Views

      Russ

      @Xander, good point.

    • Mauro

      How open triggercmd gui with command
      General Discussion • • Mauro

      5
      0
      Votes
      5
      Posts
      22
      Views

      Steve Lee

      @Mauro Nice

    • Steve Lee

      Demo of TRIGGERcmd with Alexa and Song Master
      Example Commands • • Steve Lee

      3
      0
      Votes
      3
      Posts
      27
      Views

      Steve Lee

      @Russ Good idea, thanks!

      I've yet to explore routines. They do increases the number of places to configure though. And no nice text file way with Alexa!

      I did try adding words to created a new command

      mac setlist ... mac setlist next

      But it doesn't work due to the way Alexa always matches the first one

      So I'd have to add multiple 3 word items. Yuck Shame we can add out own lexicon 😞

      I was going to use Routines for repeat timers but on reading the docs they don't take parameters which really limits them for all applications 😢

    • Russ

      New SmartThings integration (2023)
      Announcements • smartthings • • Russ

      24
      0
      Votes
      24
      Posts
      769
      Views

      Russ

      @Tiago-Dias, do you have the same problem as @gfh0229? Where you click this SAVE button and you get a 403 error?

      b5bb0ade-51cd-4025-a5f6-550cc490c03a-image.png

      I don't have that problem. When I click SAVE, I see this:
      51f6fc0a-fbaa-48ab-9bba-5b74f0463e17-image.png

      Or, are you getting the "Couldn't add device A network or server error occurred.
      Try again later" error? I'm still waiting to hear back from Samsung about that. I see it's still an issue in their latest version 1.8.06.23.

    • Russ

      Volume script
      Windows • • Russ

      1
      0
      Votes
      1
      Posts
      30
      Views

      No one has replied

    • Steve Lee

      extending the smart home skill
      General Discussion • • Steve Lee

      3
      0
      Votes
      3
      Posts
      28
      Views

      Steve Lee

      @Russ Oh, I must have misunderstood, they seemed to in the articles I linked. Oh well, shame and very limiting to skill creators. may words get pick on my Alexa for other purposes - eg play - so it's hard.

    • Mauro

      Execute IFTTT in windows
      Example Commands • • Mauro

      3
      0
      Votes
      3
      Posts
      13
      Views

      Russ

      @Mauro, @Matt-Packwood's solution would work, but here's another option. You could create an IFTTT applet with TRIGGERcmd as the THIS part. Pick Specific command and choose one of your TRIGGERcmd commands. It doesn't matter what it does because all you care about is the fact that it will run your IFTTT applet.

      This is a built-in function of the TRIGGERcmd IFTTT integration:

      f53b5c93-57ec-48dc-82de-cab91ff289c9-image.png

      Then, if you want to run a command on your Windows PC that will trigger that TRIGGERcmd command that will start the IFTTT applet, you could run that TRIGGERcmd command using the tcmd command line tool.

    • Pedro Dias 0

      "FN + Page Up"
      General Discussion • • Pedro Dias 0

      2
      0
      Votes
      2
      Posts
      13
      Views

      Steve Lee

      @Pedro-Dias-0 said in "FN + Page Up":

      é possível criar um comando no arquivo .bat para executar essa função do teclado? "FN + Page Up"

      Some programs like AutoHotkey can be called to simulate key presses.

      However FN keys are usually invisible to Windows and used by the manufacturer to do hardware specific things. Maybe check if AutoHotkey can simulate the FN key.

    • Pedro Dias 0

      windowns ! uso dois monitores e quero um comando para desligar somente 1 monitor
      General Discussion • • Pedro Dias 0

      3
      0
      Votes
      3
      Posts
      14
      Views

      Pedro Dias 0

      @Russ Certo, vou tentar

    • william siqueira

      Compatibility with Debian 12
      General Discussion • • william siqueira

      4
      0
      Votes
      4
      Posts
      16
      Views

      Russ

      @william-siqueira, thank you for the screenshots. That helps.

      Notice the data folder for the background agent is in root's home folder, not your williams user.

      /root/.TRIGGERcmdData

      I also see No token exists. Login to request one. So you can probably fix it if you run:

      sudo su - triggercmdagent --console (paste in your token)

      Or you could copy your /home/william/.TRIGGERcmdData folder to /root/.TRIGGERcmdData so it won't create a second computer in your account because you already have a computerid.cfg file in /home/william/.TRIGGERcmdData and the background agent that will run as root will use that computer id.

    • Steve Lee

      A little feedback
      General Discussion • • Steve Lee

      13
      0
      Votes
      13
      Posts
      47
      Views

      Russ

      @Steve-Lee, thank you for doing that!