Group Details Private

Global Moderators

Forum wide moderators

Member List
  • RE: New commands not showing up as devices in the Alexa app

    @Greg-Larsen Correct. They are optional should someone want to just use the triggercmd site to set off their actions but absolutely needed for Alexa/Google integration. 👍🏻

    posted in General Discussion
  • RE: Turning PC on (without WoL)

    @Greg-Larsen If you want to add hardware, a $5 smart plug (Aliexpress) would do the job of your $25 (+hub) suggestion. Set the BIOS to turn on when power is provided and you're done.

    I have my three monitors on one smart plug so when I say Good Morning to Alexa, she fires them up. I don't really need WoL so pressing the button is fine with me.

    posted in General Discussion
  • RE: Shutdown but computer starts few seconds later

    @Joao-victor-0 That's not TriggerCMD causing the problem, it's another device connected to your PC that's causing it to power back on. If you run the command outside of TCMD, it will do the same thing.

    Try unplugging your USB devices and see which one is reawakening your PC.

    posted in Windows
  • RE: Triggercmd doesn't install windows 64 bits

    "2021-08-26 19:54:08 Program: About to install to: C:\Users\User\AppData\Local\Discord"
    "2821-08 1-26 19:54:21) Apply 21 ApplyReleasesImpl: Updating shortcut C:\Users\User\Desktop\Discord.Ink"

    @Igor-Marinho Looks like you're installing Discord, not TriggerCMD.

    posted in Windows
  • RE: Shutdown command doesn't work on Windows Server

    @matheus-venancio What is the actual command that you're using? And does it work from a cmd prompt?

    posted in General Discussion
  • RE: Turn On Notebook Display

    @Bruno-Rafael Look through recent posts for NirCmd instructions. It can simulate key presses but I don't know that a virtual press will suffice.

    If it does, simply create an Alexa routine with both actions (and you'd probably want to throw a Wait command in between)

    posted in Windows
  • RE: How to use Off Command

    @Russ Sorry for the delayed reply; crazy week.

    Background was the problem on the one part.
    On the other, for some weird reason, Task Scheduler was renaming the actual .job from "SCoff" to "SC off" so that the path was wrong. Once I spotted that, I got it working.

    Just to check - I've been running the x86 version of TCMD on that PC for...years? Other than the updated .js, there's no newer version? The main DL is x64.

    posted in Instructions
  • RE: How to use Off Command

    @Russ D'oh. The link here showed it went to ...node.js so I downloaded from here but now it's clear that it was a page about it so I've DL'd it properly 🤦🏻♂
    That's back up and running.

    Question, though. I switched the command to use SCHTASKS to run a job of the same batch files to circumvent any UAC issues but SCoff doesn't work in either bat or task form. The cmd window -says- it's being called but no window is called. Any ideas?

    [
       {"trigger":"Users","command":"schtasks.exe /run /tn users","ground":"foreground","voice":"users"},
       {"trigger":"Connect","command":"schtasks.exe /run /tn SCon","ground":"background","voice":"connect"},
       {"trigger":"Disconnect","command":"schtasks.exe /run /tn SCoff","ground":"background","voice":"disconnect"},
       {"trigger":"Remote","command":"schtasks.exe /run /tn SCon","offCommand":"schtasks.exe /run /tn SCoff","ground":"foreground","voice":"Remote","voiceReply":"Okay","allowParams":"true" },
       {"trigger":"Reboot","command":"shutdown /r /t 10","ground":"foreground","voice":"reboot"}
    ]
    

    In case I would need them as separate commands, I created the Connect/Disconnect commands which I think are fine but they don't show in the TCMD trigger page at all.

    posted in Instructions
  • RE: How to use Off Command

    @Russ That's probably it. The agent.js has a date stamp of Nov 2017. Closed tcmd, updated from your link (old was 23kb, new is 348kb. Quite the diff!)

    But, on starting the batch file, I get an "unexpected token" error. It also overwrote my .json file but it was mostly the line above so I'll redo it if I need to. Swapped the old .js back and it runs so something is amiss.

    SyntaxError: Unexpected token <
        at createScript (vm.js:80:10)
        at Object.runInThisContext (vm.js:139:10)
        at Module._compile (module.js:599:28)
        at Object.Module._extensions..js (module.js:646:10)
        at Module.load (module.js:554:32)
        at tryModuleLoad (module.js:497:12)
        at Function.Module._load (module.js:489:3)
        at Function.Module.runMain (module.js:676:10)
        at startup (bootstrap_node.js:187:16)
        at bootstrap_node.js:608:3
    
    posted in Instructions
  • RE: How to use Off Command

    @Russ I'm trying to setup an on/off command for some services. The PC is x86 so I'm just editing the JSON file.

    Here's the line inside the JSON:
    {"trigger":"Remote","command":"C:\Users\STICK10\Documents\SC on.bat","offCommand":"C:\Users\STICK10\Documents\SC off.bat","ground":"foreground","voice":"Remote","voiceReply":"Okay","allowParams":"true" },

    When I try to trigger it, it's only running the SC ON batch file, not the OFF. What's my error? Or do I need to set these as two different commands altogether?

    Inside TCMD's cmd window:
    { trigger: 'Remote',
    id: '____',
    params: 'on' }
    Running trigger: Remote Command: C:\Users\STICK10\Documents\SC on.bat
    Reported: Command Ran

    { trigger: 'Remote',
    id: '____',
    params: 'off' }
    Running trigger: Remote Command: C:\Users\STICK10\Documents\SC on.bat
    Reported: Command Ran

    posted in Instructions