Type out your parameters

  • I can say:

    • Alexa, ask TRIGGERcmd to run Type This with parameter I am the coolest

    And my computer will type "I am the coolest" wherever my cursor happens to be.

    Create c:\tools\typeit.vbs with these contents:

    Dim Wsh
    Set Wsh = Wscript.CreateObject("Wscript.Shell")
    Set args = Wscript.Arguments
    For Each arg In args
      Wsh.SendKeys arg
      Wsh.SendKeys " "

    Then create a command in TRIGGERcmd like this with parameters turned on:

    wscript c:\tools\typeit.vbs

    TRIGGERcmd runs your commands super fast, so if you're testing this on the computer where the agent is running and using the Parameters button on the website, you can add a 5 second pause at the beginning of the script with this command. That should give you enough time to click another window before it types your parameters in that window.

    WScript.sleep 5000

  • @russ BIG HELP!

  • Hi Russ,

    I'm trying to improve the dictation that I've been using via this parameter. Things that I run into often is my Google Home will only listen to me for a sentence or two and I struggle with punctuation.

    How can I code for Google to listen longer and to enter in punctuation? Commas work! But not periods, hyphens, colons, etc. I've played with sendkeys to navigate software in the past with success. Another feature I'm trying to accomplish is a new paragraph.

    Thanks in advance.

  • @EL-Dirtbag, I'm actually surprised you can use this to type more than a short sentence. I think Google Assistant has a timeout of only a few seconds. That said, you could have your script type two enter keys at the end (or beginning), so each time you invoke the script via TRIGGERcmd, it would create a new paragraph.

Log in to reply