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:
    0
    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:
    8,709
    Likes Received:
    736
    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:
    0
    Thanks man.
     

Share This Page