TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Christian Robinson
    C
    • Profile
    • Following 0
    • Followers 2
    • Topics 3
    • Posts 26
    • Best 3
    • Controversial 0
    • Groups 0

    Christian Robinson

    @Christian Robinson

    3
    Reputation
    982
    Profile views
    26
    Posts
    2
    Followers
    0
    Following
    Joined Last Online

    Christian Robinson Unfollow Follow

    Best posts made by Christian Robinson

    • RE: Installed background service, but background commands still not available

      Yes, that's how the UAC works when triggered from a non-admin account, and (most) installers cause the UAC to come up. If there's only one admin level account it defaults to that one, but I do have to enter the password. I treat it a bit like using "sudo" on a Linux/Unix machine--I don't like staying logged in as an admin account.

      I get an Access Denied error on that link.

      posted in General Discussion
      C
      Christian Robinson
    • RE: Commands that use Nircmd.exe (toggle mute, say stuff, etc.)

      Since I already use AutoHotkey I used someone's example one-off AutoHotkey script to accomplish the Mute/Unmute, plus Play/Pause, Volume Up/Down, and Skip Forward/Back. I can provide the script and commands if anybody's interested. It can be used to simulate virtually any keyboard key, or even key sequences.

      posted in Windows
      C
      Christian Robinson
    • RE: Installed background service, but background commands still not available

      I think I've uncovered another bug. For some reason I'm seeing multiple entries in my command list on the website, even though my commands.json file doesn't have duplicates, and triggering one of the duplicated commands is problematic.

      posted in General Discussion
      C
      Christian Robinson

    Latest posts made by Christian Robinson

    • RE: Now you can use Zapier to trigger your commands!

      @Russ Not a problem. I wondered if it was something like that, but my attempts to fix it didn't involve recreating the Zap. It was easy to rebuild it from scratch, and I only have the one (so far). Thank you.

      posted in Announcements
      C
      Christian Robinson
    • RE: Now you can use Zapier to trigger your commands!

      My only Zap has been failing for the past few weeks, with this error: "www.triggercmd.com returned (502) Bad Gateway and said nothing"

      Any tips on fixing it?

      posted in Announcements
      C
      Christian Robinson
    • RE: Commands that use Nircmd.exe (toggle mute, say stuff, etc.)

      @Nate-Hales You're going beyond what I'm doing with Alexa/TRIGGERcmd/home automation, so I don't know if I could help you much. I hope the tools I posted above can be useful, though.

      posted in Windows
      C
      Christian Robinson
    • RE: Commands that use Nircmd.exe (toggle mute, say stuff, etc.)

      @Nate-Hales

      I just use a passive stereo mixer to allow me to hear my Echo Dot, my TV, my computer, etc. at once. Same concept, basically.

      posted in Windows
      C
      Christian Robinson
    • RE: Commands that use Nircmd.exe (toggle mute, say stuff, etc.)

      @Nate-Hales

      Theoretically, yes, as long as you're willing to go with "canned" messages. Windows 10 (and 8, I'm assuming) has some support for text-to-speech, but it's not very accessible. Somewhere I came across a small vbs that can do short messages on the command line:

      say.vbs

      set s = CreateObject("SAPI.SpVoice")
      s.Speak Wscript.Arguments(0), 3
      s.WaitUntilDone(1000)
      

      It's called this way: cscript say.vbs "hello world"

      posted in Windows
      C
      Christian Robinson
    • RE: Commands that use Nircmd.exe (toggle mute, say stuff, etc.)

      @Nate-Hales

      You can't override Alexa's responses, unfortunately. The "voice" part of the configuration for TRIGGERcmd is for what you say to Alexa.

      posted in Windows
      C
      Christian Robinson
    • RE: Commands that use Nircmd.exe (toggle mute, say stuff, etc.)

      @Nate-Hales

      SimKeys.ahk

      ; By SKAN,  http://goo.gl/JfMNpN,  CD:23/Aug/2014 | MD:24/Aug/2014
      
      #Warn
      #SingleInstance, Force
      
      Args( CmdLine := "", Skip := 0 ) {
        Local pArgs := 0, nArgs := 0, A := []
        
        pArgs := DllCall( "Shell32\CommandLineToArgvW", "WStr",CmdLine, "PtrP",nArgs, "Ptr" ) 
      
        Loop % ( nArgs ) 
           If ( A_Index > Skip ) 
             A[ A_Index - Skip ] := StrGet( NumGet( ( A_Index - 1 ) * A_PtrSize + pArgs ), "UTF-16" )  
      
        Return A, A[0] := nArgs - Skip, DllCall( "LocalFree", "Ptr", pArgs)  
      }
      
      CmdLine := DllCall( "GetCommandLine", "Str" )
      Skip    := ( A_IsCompiled ? 1 : 2 )
      argv    := Args( CmdLine, Skip )
      
      If ( argv[0] == 1 )
        Send % argv[1]
      Else
        Msgbox, , Error, Must provide exactly one argument, 10
      
      ;Msgbox % "Count = " argv[0] "`n1=" argv[1] "`n2=" argv[2] "`n3=" argv[3] "`n4=" argv[4] "`n5=" argv[5]
      

      SimKeys.vbs

      Dim WshShell
      Set WshShell = WScript.CreateObject("WScript.Shell")
      WshShell.SendKeys WScript.Arguments(0)
      

      Excerpt from commands.json

      {"trigger":"Play", "command":"\"C:\\Program Files\\AutoHotkey\\AutoHotkeyU64\" C: YOUR DIRECTORY \\SimKeys.ahk {Media_Play_Pause}", "ground":"foreground", "voice":"play"}, 
      {"trigger":"Pause", "command":"\"C:\\Program Files\\AutoHotkey\\AutoHotkeyU64\" C: YOUR DIRECTORY \\SimKeys.ahk {Media_Play_Pause}", "ground":"foreground", "voice":"pause"}, 
      {"trigger":"Stop", "command":"\"C:\\Program Files\\AutoHotkey\\AutoHotkeyU64\" C: YOUR DIRECTORY \\SimKeys.ahk {Media_Stop}", "ground":"foreground", "voice":"stop"}, 
      {"trigger":"Previous", "command":"\"C:\\Program Files\\AutoHotkey\\AutoHotkeyU64\" C: YOUR DIRECTORY \\SimKeys.ahk {Media_Prev}", "ground":"foreground", "voice":"previous"}, 
      {"trigger":"Next", "command":"\"C:\\Program Files\\AutoHotkey\\AutoHotkeyU64\" C: YOUR DIRECTORY \\SimKeys.ahk {Media_Next}", "ground":"foreground", "voice":"next"}, 
      {"trigger":"Volume Up", "command":"\"C:\\Program Files\\AutoHotkey\\AutoHotkeyU64\" C: YOUR DIRECTORY \\SimKeys.ahk {Volume_Up}", "ground":"foreground", "voice":"volume up"}, 
      {"trigger":"Volume Down", "command":"\"C:\\Program Files\\AutoHotkey\\AutoHotkeyU64\" C: YOUR DIRECTORY \\SimKeys.ahk {Volume_Down}", "ground":"foreground", "voice":"volume down"}, 
      {"trigger":"Mute/Unmute", "command":"\"C:\\Program Files\\AutoHotkey\\AutoHotkeyU64\" C: YOUR DIRECTORY \\SimKeys.ahk {Volume_Mute}", "ground":"foreground", "voice":"mute"}, 
      

      Replace "YOUR DIRECTORY" with the proper path to SimKeys.ahk and SimKeys.vbs (both need to be in the same location).

      Edit: It appears SimKeys.vbs is not necessary. I don't remember why I have it--possibly because I was trying out an alternate method and forgot to move/remove it. I'm leaving it here just in case.

      posted in Windows
      C
      Christian Robinson
    • RE: Feature request: Leave off computer name when issuing an Alexa command

      @Russ No problem. I'm happy to help, especially since this is such a cool skill. Thank you for your efforts.

      posted in General Discussion
      C
      Christian Robinson
    • RE: Feature request: Leave off computer name when issuing an Alexa command

      @Russ No, I wasn't saying "run," but when I do it works.

      posted in General Discussion
      C
      Christian Robinson
    • RE: Feature request: Leave off computer name when issuing an Alexa command

      @Russ Unfortunately I still get the "undefined" response. Also, duplicates still appear on me occasionally--when I notice it I use the rename trick to clear them, but didn't see that one.

      posted in General Discussion
      C
      Christian Robinson