AutoVoice Help with autovoice regex variables!

Discussion in 'AutoApps' started by astranberg, Sep 28, 2017.

  1. astranberg

    astranberg New Member

    Joined:
    Aug 9, 2015
    Messages:
    5
    Likes Received:
    1
    Hello friends!!
    Okay, this should be really simple, but I'm having a tough time. I am trying to create an autovoice command where the profile recognizes "launch" or "open" and then an app name. The task then uses autolaunch to launch that app.
    I am having trouble with the profile. I currently have autovoice Recognize:
    Command: "(launch|open) (?<appname>.+)
    Test
    in autovoice: "launch play music"
    However, when I run this task I get %appname = "launch" but I want %appname = "play music"

    Help?
    Adam
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    You have 2 options:
    • Recommended: Use the Easy Way and set the filter to launch $appname,open $appname and you're good to go :)
    • Use regex but you have to name every group in the regex. In your case it would be (?<command>launch|open) (?<appname>.+)
    Hope this helps!
     
  3. astranberg

    astranberg New Member

    Joined:
    Aug 9, 2015
    Messages:
    5
    Likes Received:
    1
    Thanks man.
     

Share This Page