Tasker Task: AutoContacts: Emails & Numbers Type


These are modular tasks which can be called on using the Perform Task option in Tasker. They use Tasker’s ability to pass variables to a child task using %par1 and %par2 and of the Return function so the original task can retrieve the processed  information.

João Dias’ Auto Contacts is a plugin for Tasker which let’s you grab almost anything about a contact that you’d want to be able to process in Tasker. However to get some things you have to parse the information first by saving it, splitting it, searching it, etc. These tasks are designed to be used as a function for a user to call to grab a specific Email or Number of any particular contact that they want.

To use this you have to setup Tasker’s Perform Task option with similar settings to the following:

Name AutoContacts: Emails Type  or Name AutoContacts: Numbers Type

Parameter 1 (%par1): %name

Parameter 2 (%par2): %type

Return Value Variable %return

 

The %name variable needs to be the variable that contains the name of the person you want information from.

The %type variable needs to be the variable that contains the type of email address or number you want from the person.

The %return variable will be the variable that contains the data from this task after it’s returned.

 

Note: Currently you need a 250ms wait after using this task to give it time to process and return the data.

Note on the Note: Sometimes it appears this needs to be 500ms at least. Use whatever works best for your experience.

 

Human Readable Version of AutoContacts: Emails Type

AutoContacts: Emails Type (54)
A1: AutoContacts [ Configuration:Contact Name or Nickname: %par1 Package:com.joaomgcd.autocontacts Name:AutoContacts Timeout (Seconds):1000 ]
A2: Variable Set [ Name:%emails To:%acallemails() Do Maths:Off Append:Off ]
A3: Variable Set [ Name:%types To:%acallemailtypes() Do Maths:Off Append:Off ]
A4: Variable Split [ Name:%emails Splitter:, Delete Base:Off ]
A5: Variable Split [ Name:%types Splitter:, Delete Base:Off ]
A6: Variable Set [ Name:%index To:%types(#?%par2) Do Maths:Off Append:Off ]
A7: Return [ Value:%emails(%index) Stop:On ]

Download Zipped XML File: AutoContacts__Emails_Type.tsk

Update: Had to fix the Emails types, I forgot to change some variable names.

 

 

Human Readable Version of AutoContacts: Numbers Type

AutoContacts: Numbers Type (58)
A1: AutoContacts [ Configuration:Contact Name or Nickname: %par1 Package:com.joaomgcd.autocontacts Name:AutoContacts Timeout (Seconds):1000 ]
A2: Variable Set [ Name:%numbers To:%acallnumbers() Do Maths:Off Append:Off ]
A3: Variable Set [ Name:%types To:%acallnumbertypes() Do Maths:Off Append:Off ]
A4: Variable Split [ Name:%numbers Splitter:, Delete Base:Off ]
A5: Variable Split [ Name:%types Splitter:, Delete Base:Off ]
A6: Variable Set [ Name:%index To:%types(#?%par2) Do Maths:Off Append:Off ]
A7: Return [ Value:%numbers(%index) Stop:On ]

Download Zipped XML File: AutoContacts__Numbers_Type.tsk