AutoVoice Use Regex issues

Discussion in 'AutoApps' started by david-1984, Jun 18, 2018.

  1. david-1984

    david-1984 New Member

    Joined:
    Jun 18, 2018
    Messages:
    5
    Likes Received:
    0
    Hi, I have created 4 different profiles and linked them to the actions.

    Turn volume up on computer
    Turn volume down on computer
    Turn pc on
    Turn pc off

    everything works perfectly.

    When I try to change in this with enabling "use Regex"

    Turn volume up on pc|computer
    Turn volume down pc|computer
    Turn pc|computer on
    Turn pc|computer off

    everything get mixed up. I say the first one and the 4th get executed, I say the second and the first one get executed. Why? before the change it never does any mistke!

    (I am using italian, the above sentences are in italian in my code)

    thanks
    David
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    You have to use something like Turn volume up on (pc|computer)

    Put parenthesis around the parts that you want to apply an OR to :)

    Hope this helps!
     
  3. david-1984

    david-1984 New Member

    Joined:
    Jun 18, 2018
    Messages:
    5
    Likes Received:
    0
    thanks a lot. it worked but if I try tu use parentesis with variabiles doens't work.

    like:
    set volume of the (pc|computer) to (?<name>.+)

    in this case doesn't work. it works only with :
    set volume of the computer to (?<name>.+)

    why?
    thanks
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
: use regex

Share This Page