AutoVoice Autovoice run "variable task" by task name

Discussion in 'AutoApps' started by Sunrainsky, Mar 9, 2018.

  1. Sunrainsky

    Sunrainsky New Member

    Joined:
    Mar 8, 2018
    Messages:
    18
    Likes Received:
    0
    Is it possible for this scenario?
    Q: Ok Google, talk to Autovoice
    A: Please say your Autovoice command now
    Q: Run task
    A: which task
    Q: [variable task name]

    Basically, while I can create recognized profile for every task,is there a way to have a universal profile that can execute any task in Tasker by Task name?
    It's quite tiring to assign a recognized profile for every task.
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Sure it is :)

    Simply make the command accept a variable. Check this video.
    Also check here.

    Hope this helps!

    This is actually a cool use case for a tutorial, I think I'll create it :)
     
  3. Sunrainsky

    Sunrainsky New Member

    Joined:
    Mar 8, 2018
    Messages:
    18
    Likes Received:
    0
    I'll check it out!
    Thank you so so much!
     
  4. Sunrainsky

    Sunrainsky New Member

    Joined:
    Mar 8, 2018
    Messages:
    18
    Likes Received:
    0
    I followed your tutorial video on variables.
    Using $ sign work for setting variable.

    I can't long press as it will give me other options like translate,copy paste.

    I checked out another tutorial
    http://www.notenoughtech.com/tasker/autovoice-regex-groups/

    using something called regex variable and I can't get the variable %room. When I use ""flash" for %room, it shows %room instead of what I said.

    Any help is definitely appreciated. I've been trying to read up on variables and Regex variables. Seems the latter is more flexible?
     
  5. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Try setting the "Easy Way" AutoVoice Command filter to

    Code (Text):
    run task $task
    Then in the task add a flash action with "Running task %task"

    Then say the command "Run Task test" and it should work :) Let me know if this helps.
     
: Autovoice

Share This Page