Pass Variables back to Tasker from a app Factory App?

436 views
Skip to first unread message

dp106

unread,
Dec 3, 2013, 9:58:04 AM12/3/13
to tas...@googlegroups.com
As the subject really.  I have created an app using the app factory that I would like if possible to pass a couple variables back to tasker.  Is there anyway I can do this?

Matt R

unread,
Dec 3, 2013, 10:37:03 AM12/3/13
to tas...@googlegroups.com
Use send intent in the app factory app and intent received in Tasker.

Matt

dp106

unread,
Dec 4, 2013, 4:46:45 AM12/4/13
to tas...@googlegroups.com
Well I figured it out eventually!
 
I created a (test) task to send then intent:
 
Test (100)
A1: Send Intent [
Action:net.dinglisch.android.tasker.ACTION_TASK
Cat:None
Mime Type:
Data:
Extra:extra1:davetest
Extra:extra2:second test is here
Package:
Class:
Target:Broadcast Receiver ]
I then created a profile to respond to an intent being received.
 
I still can't do what I want though as I want to create a new variable based on the content of another :(

Pent

unread,
Dec 4, 2013, 6:29:29 AM12/4/13
to tas...@googlegroups.com
That might be possible in the not-too-distant future.

Pent

Pent

unread,
Dec 4, 2013, 1:29:11 PM12/4/13
to tas...@googlegroups.com
I've had a look and the basics are pretty simple. I'm sure there'll be some problems, but this should be in for next version.

The syntax will be %%var meaning 'the variable whose name is the contents of %var'.

So you can do something like:

Variable Set, %var to colour
Variable Set, %colour to Red
Variable Set %%var to Blue
Flash %colour

And it should flash Blue.

Pent

Jacob Klein

unread,
Dec 4, 2013, 9:53:44 PM12/4/13
to tas...@googlegroups.com
Another option would have it use one variable for my ex it will be %test. Then make a counter %count

And every time the task runs add 1 to count (variable add) and have it set the input to %test(%count)

It would add it to the array but it should work.

I'm not 100% certain it will work but it's worth a shot. Not sure if it will replicate like this or not

Reply all
Reply to author
Forward
0 new messages