Go Back   Android Forums > Android Discussion > Android Applications > Tasker

Like Tree19Likes

test: Reply
 
LinkBack Thread Tools
Old May 8th, 2012, 03:51 PM   #1051 (permalink)
Member
 
Flumme's Avatar
 
Join Date: Jun 2011
Location: Sweden
Posts: 333
 
Device(s): HTC Desire (retired), Samsung Galaxy S3
Carrier: Not Provided

Thanks: 97
Thanked 87 Times in 63 Posts
Default

Quote:
Originally Posted by df9573 View Post
Hi everyone,

I'd love some help figuring out if punching in and out from work can be automated with Tasker. I'm a Tasker amateur... hopefully one of you pros is up to the challenge.

Here's my punch in procedure:

1) Dial my company's punch clock phone number.
2) Wait approximately five seconds for pick up/first prompt.
3) Enter my four digit employee code and then press #.
4) Wait approx. two seconds.
5) Press 1 and then #.
6) Wait approx. two seconds.
7) Hang up.

Can Tasker simplify the process?

Any advice would be appreciated. Thanks.
Tasker can be made to make a call at the touch of a button widget placed on your homescreen, using speakerphone to get the confirmation. I imagine you could set that call up to match your punch out process - just keep adding the whole string of numbers and pauses in the field for phone number when you set up the widget. Add a wait for 20 sec task, then a exit task to hang up.

Try using your home phone first, to make sure all the settings work (especially the waits - don't know exactly how to phrase those.

Advertisements
__________________
Flashing is indecent fun

Free 2 + 0,5 Gb Dropbox: http://db.tt/U3UgMIRc
Flumme is offline  
Reply With Quote
sponsored links
Old May 11th, 2012, 10:20 AM   #1052 (permalink)
Junior Member
 
Max Revson's Avatar
 
Join Date: May 2012
Location: The Little Red Dot
Posts: 26
 
Device(s): Samsung Galaxy Note GT-N7000
Carrier: Not Provided

Thanks: 2
Thanked 5 Times in 4 Posts
Default

Hello folks. Here are the profiles I'm using now, taken from my other thread:

Quote:
Originally Posted by Max Revson
To follow up on my last post, I'd test-driven a couple of profiling apps and was not fully satisfied with the results.

And then I came across what is considered to be the Holy Grail of all profiling apps: Tasker.

Tasker allows the Android phone owner to completely automate tasks that would otherwise require manual intervention. This is how I've set Tasker up in my phone (edited 13 May '12 to remove superfluous profiles):

Profile Name: Not Home Vicinity

What it does: Turn off WiFi.

When it kicks on: When I'm out of my home vicinity.

Context
01. State -> Phone -> Cell Near (cell towers in my area) INVERTED

Entry Task Name: Not Home Vicinity Value
01. Net -> WiFi -> Off



Profile Name: Home Vicinity

What it does: Set WiFi to toggle.

When it kicks on: When I'm in range of my home vicinity.

Context
01. State -> Phone -> Cell Near (cell towers in my area)
02. State -> Net -> WiFi Connected (SSID: my router's ssid) INVERTED

Entry Task Name: Home Vicinity Value
01. Net -> WiFi -> Toggle



Profile Name: At Home

What it does: Turn on WiFi & Auto-sync, turn off gps and mobile data when at home. Do the reverse (less WiFi settings) when leaving home.

When it kicks on: I'm connected to my home WiFi AND one of the GSM cells in my area

Context
01. State -> Net -> Wifi Connected (SSID: my router's ssid)
02. State -> Phone -> Cell Near (cell towers in my area)

Entry Task Name: Home Values
01. 3rd Party -> WidgetLocker -> Suspend
02. Variable -> Variable Set -> %atHome To 1 //tells phone its at home for use in later profiles
03. Net -> WiFi -> On
04. Net -> Mobile Data -> Off
05. Net -> Auto-Sync -> On
06. Plugin -> Secure Settings -> Edit -> GPS -> Off //requires Secure Settings Plugin & rooted device
07. Display -> Display Timeout -> 1 min.
08. Misc -> Say -> "Welcome home!"

Exit Task Name: Exit Home
01. Variable -> Variable Set -> %atHome To 0
02. Net -> Mobile Data -> O,
03. Net -> Auto-Sync -> Off
04. Plugin -> Secure Settings -> Edit -> GPS -> On
05. Display -> Display Timeout -> 30 sec.
06. Misc -> Say -> "Have a great day."
07. 3rd Party -> WidgetLocker -> Resume




Profile: Jabra Bluetooth Audio

What it does: Kicks on Poweramp, sets BT Voice and Media volumes to maximum. Turns bluetooth off and kills Poweramp once headphones are disconnected.

When it kicks on: Once bluetooth connection to Jabra headphones is established

Context
01. State -> Net -> Bluetooth Connected (Name: Jabra Halo)

Entry Task Name: Home With Bluetooth Values
01. Audio -> BT Voice Volume -> Level 15
02. Audio -> Media Volume -> Level 15
03. Misc -> Say -> "Bluetooth audio activated." (if %pAmp = 0)
06. App -> Load App -> Poweramp (if %pAmp = 0) //so that it doesn't try to load Poweramp if it is already loaded
07. Variable -> Variable Set -> %pAmp To 1

Exit Task Name: Exit Bluetooth Audio
01. Task -> Wait -> 5 sec.
02. Net -> Bluetooth -> Off
03. Misc -> Say -> "Bluetooth headset disconnected."
04. App -> Kill App -> Poweramp (if %pAmp = 1, Use Root On) //so that it doesn't try to kill Poweramp if it is already killed
05. Variable -> Variable Set -> %pAmp To 0

Note: Both "At Home" and "Jabra Bluetooth Audio" are active together when listening to music wirelessly at home. When outdoors, only the latter is active.



Profile: Vibrate Only At Client's Place

What it does: Set phone to vibration mode only, disable GPS.

When it kicks on: When the GPS picks up my current location as within a 30-meter radius of my client's office building.

Context
01. Location -> New Location -> Client's Office Location (name: <insert your preferred location name here after browsing to said location on map>)

Entry Task Name: Vibration Values
01. Plugin -> Secure Settings -> Edit -> GPS -> Off
02. Audio -> Silent Mode -> Vibrate
03. Misc -> Say -> "Vibration mode active"

Exit Task Name: Exit Vibration
01. Plugin -> Secure Settings -> Edit -> GPS -> On
02. Audio -> Silent Mode -> Off
03. Misc -> Say -> "Vibration mode deactivated"



Profile: Goodnight!

What it does: Set phone to silent mode when its time to go to bed.

When it kicks on: When the room is dark AND phone is facing up. The latter prevents this mode from kicking on when in my holster or pocket.

Context
01. State -> Sensor -> Light Level (from 0 to 1)
02. State -> Sensor -> Orientation (Face Up)

Entry Task Name: Night Mode Values
01. Task -> Wait -> 15 sec.
02. Variable -> Variable Set -> %sleepOrAwake To 1 //tells phone I'm asleep for use in later profiles
03. Audio -> Silent Mode -> On
04. Display -> Night Mode -> On
05. Display -> Display Timeout -> 30 sec.
06. Misc -> Say -> "Goodnight and sweet dreams!"

Exit Task Name: Day Mode Values
01. Variable -> Variable Set -> %sleepOrAwake To 0 //tells phone I'm awake for use in later profiles
02. Audio -> Silent Mode -> Off
03. Display -> Night Mode -> Off
04. Display -> Display Timeout -> 1 min.
05. Misc -> Say -> "Good day!"

Note: For afternoon naps, all I have to do is draw the curtains and *BAM!* night mode kicks on. You might have to play with the Light Level value to get something that works for you.



Profile: Urgent Calls

What it does: Always receive phonecalls from chosen loved ones.

When it kicks on: When chosen loved ones call when the phone is in "Goodnight!" mode.

Context
01. State -> Phone -> Incoming Call -> (magnifying glass) -> A Single Contact (repeat for all desired contacts)

Entry Task Name: Urgent Caller Value
01. Task -> If -> %VOLR < 5
02. Audio -> Media Volume -> Level 15
03. Media -> Music Play -> (your chosen ringtone music file)
04. Task -> End If

Exit Task Name: Urgent Caller Exit
01. Media -> Music Stop



The next 3 profiles work together since the first of these cannot have an exit task.

Profile: Announce Caller

What it does: Announces the name (if in contact list) or number of caller when at home AND awake.

When it kicks on: When the phone is ringing.

Context
01. Event -> Phone -> Phone Ringing

Entry Task Name: Announce Caller Name
01. Variable -> Variable Set -> %Ringing To 1
02. Task -> If -> %atHome = 1
03. Task -> If -> %sleepOrAwake = 0
04. Task -> If -> %CNAME Is Set //i.e. caller exists in phonebook
05. Misc -> Say -> "Call from %CNAME"
06. Task -> Else
07. Misc -> Say -> "Call from %CNUM"
08. Task -> End If
09. Task -> End If
10. Task -> End If


Profile: Call Answered

What it does: To re-set the variable %Ringing, used above, to zero.

When it kicks on: When the call is answered.

Context
01. Event -> Phone -> Phone Offhook

Entry Task Name: CallFinished Value
01. Variable -> Variable Set -> %Ringing To 0


Profile: Phone Idle

What it does: To re-set the variable %Ringing, used above, to zero.

When it kicks in: When the call is not answered (missed call).

Context
01. Event -> Phone -> Phone Idle

Entry Task Name: CallFinished Value
01. Variable -> Variable Set -> %Ringing To 0



Profile: Missed Call Reminder

What it does: Our SGNs have no blinking LEDs to tell us if we've missed a call. This plays the "Notify Sound" at 2-minute intervals upon missed call and should do as a substitute.

When it kicks on: When the call is not answered (missed call).

Context
01. State -> Phone -> Missed Call

Entry Task Name: Missed Call Values
01. Task -> Wait -> 2 min.
02. Task -> Stop (if %PACTIVE Doesn't Match[!~] *missed call reminder*)
03. Alert -> Notify Sound (Title: Missed Call Reminder)
04. Task -> Goto (Type: Action Number, Number: 1)

Exit Task Name: Clear Missed Call Values
01. Misc -> Say -> "You have missed calls"
02. Alert -> Notify Cancel (Title: Missed Call Reminder)



Profile: Shake For Bluetooth

What it does: To turn on bluetooth without having to pull down the notification bar.

When it kicks on: When the phone's screen is switched on and phone is shaken left to right.

Context
01. Event -> Sensor -> Shake (Axis: Left-Right, Sensitivity: Medium, Duration:Short)

Entry Task Name: Bluetooth Values
01. Net -> Bluetooth -> On
02. Misc -> Say -> "Bluetooth activated. Please turn on your device."

Note: Once my bluetooth headset is connected, profile automatically changes to "Home With Bluetooth" or "Outdoor With Bluetooth" and kicks on Poweramp.

Also note: "Say" in all the above examples will only work when the screen is turned on. It will not work when the phone is asleep.

Many of these are examples taken from Tasker wiki as well as the huge Takser thread in this forum. Many thanks to the original contributors to the above ideas that were shared.
Max Revson is offline  
Last edited by Max Revson; May 13th, 2012 at 02:09 AM. Reason: Removed superfluous profiles
Reply With Quote
The Following 2 Users Say Thank You to Max Revson For This Useful Post:
bruce73 (May 11th, 2012), Matt31 (June 5th, 2012)
Old May 11th, 2012, 12:02 PM   #1053 (permalink)
Member
 
bruce73's Avatar
 
Join Date: Feb 2012
Location: Los Angeles
Posts: 380
 
Device(s): HTC Vivid, Nexus 10
Carrier: Not Provided

Thanks: 113
Thanked 45 Times in 42 Posts
Default

Those are great, thanks (also helps to understand the Tasker "process") .

Quick question: why is it necessary to include the "End If" actions? What would happen if you didn't?
bruce73 is offline  
Reply With Quote
Old May 11th, 2012, 12:06 PM   #1054 (permalink)
Junior Member
 
Max Revson's Avatar
 
Join Date: May 2012
Location: The Little Red Dot
Posts: 26
 
Device(s): Samsung Galaxy Note GT-N7000
Carrier: Not Provided

Thanks: 2
Thanked 5 Times in 4 Posts
Default

Programming-ese. Every IF statement has to have an END IF. I don't know how it would affect Tasker if you didn't include END IF in there but in usual programming, the compiler would complain and not even compile the source code for execution.

You're most welcome, but the thanks should go to those who came before, the ones who really toiled through understanding and setting up profiles. I simply followed their lead.
Max Revson is offline  
Reply With Quote
Old May 11th, 2012, 05:13 PM   #1055 (permalink)
Member
 
Join Date: Apr 2010
Posts: 394
 
Device(s):
Carrier: Not Provided

Thanks: 32
Thanked 46 Times in 35 Posts
Default

Also worth saying about the IF and ENDIF statments. Adding ENDIF statements at the very end of your task is redundant.....Tasker automatically does this for you. ENDIF statements should only be manually placed in the middle somewhere.
Stupifier is offline  
Reply With Quote
Old May 14th, 2012, 08:09 AM   #1056 (permalink)
Junior Member
 
Join Date: Aug 2010
Posts: 50
 
Device(s): Samsung Galaxy Nexus (VZW)
Carrier: Not Provided

Thanks: 2
Thanked 7 Times in 5 Posts
Default

I have Tasker configured to take a picture via the front and rear camera whenever someone tries to unlock my phone, and fails (while also announcing 'Access Denied' at max volume).

This works great, and I would like to forward the photo to my personal e-mail address, in case the phone was stolen. However it looks like I need to rely on a python script for this (really don't want deal with this, as I want to keep the tasker configuration portable), or find a cheap plugin to do this.

Has anyone else figured out how to e-mail attachments via Tasker? I would settle for being able to upload it via DropBox right away as well.
danarchy is offline  
Reply With Quote
Old May 14th, 2012, 12:39 PM   #1057 (permalink)
Member
 
alackman's Avatar
 
Join Date: Aug 2010
Location: london
Posts: 320
 
Device(s): Nexus 4 Asus Transformer prime
Carrier: Not Provided

Thanks: 51
Thanked 33 Times in 30 Posts
Default

Quote:
Originally Posted by danarchy View Post
I have Tasker configured to take a picture via the front and rear camera whenever someone tries to unlock my phone, and fails (while also announcing 'Access Denied' at max volume).

This works great, and I would like to forward the photo to my personal e-mail address, in case the phone was stolen. However it looks like I need to rely on a python script for this (really don't want deal with this, as I want to keep the tasker configuration portable), or find a cheap plugin to do this.

Has anyone else figured out how to e-mail attachments via Tasker? I would settle for being able to upload it via DropBox right away as well.
I would love to know a walkthrough for this. Any chance of emailing the profile?
In terms of sending a photo, dies your dropbox not auto upload pictures, there is a setting in the drop box app. Creates a folder called photo uploads.
alackman is offline  
Reply With Quote
The Following User Says Thank You to alackman For This Useful Post:
higge (June 3rd, 2012)
Old May 14th, 2012, 01:46 PM   #1058 (permalink)
Junior Member
 
Join Date: Aug 2010
Posts: 50
 
Device(s): Samsung Galaxy Nexus (VZW)
Carrier: Not Provided

Thanks: 2
Thanked 7 Times in 5 Posts
Default

Quote:
Originally Posted by alackman View Post
I would love to know a walkthrough for this. Any chance of emailing the profile?
In terms of sending a photo, dies your dropbox not auto upload pictures, there is a setting in the drop box app. Creates a folder called photo uploads.
I don't want to upload all my pictures, just the failed unlock attempt ones, so I am not sure if DropBox will work. Unless I can force DropBox to synchronize certain folders via Tasker, not sure what else I can do.

As for how to do this, it's easy, but you have to use the 'Secure Settings' plugin (not sure if you need root for this specific task, since I was rooted already).
  1. Install the free Secure Settings plugin and add a new profile to Tasker.
  2. Select 'State > Plugin > Secure Settings' as the trigger, and pick the 'Failed Login Attempts' condition.
  3. Now you have to create the action which will take the picture, which you can find under 'Media'. If you want a new file every time a pic is taken, use the 'Photo Series Time' action, or if you want to use the same name every time, use 'Photo'. I use both methods, in case there are multiple attempts, while also having access to the latest pic using a static file name. Don't forget to select the 'Discrete' option.
danarchy is offline  
Reply With Quote
The Following 3 Users Say Thank You to danarchy For This Useful Post:
alackman (May 14th, 2012), Matt31 (June 5th, 2012), Max Revson (May 16th, 2012)
Old May 14th, 2012, 02:16 PM   #1059 (permalink)
Member
 
alackman's Avatar
 
Join Date: Aug 2010
Location: london
Posts: 320
 
Device(s): Nexus 4 Asus Transformer prime
Carrier: Not Provided

Thanks: 51
Thanked 33 Times in 30 Posts
Default

Quote:
Originally Posted by danarchy View Post
I don't want to upload all my pictures, just the failed unlock attempt ones, so I am not sure if DropBox will work. Unless I can force DropBox to synchronize certain folders via Tasker, not sure what else I can do.

As for how to do this, it's easy, but you have to use the 'Secure Settings' plugin (not sure if you need root for this specific task, since I was rooted already).
  1. Install the free Secure Settings plugin and add a new profile to Tasker.
  2. Select 'State > Plugin > Secure Settings' as the trigger, and pick the 'Failed Login Attempts' condition.
  3. Now you have to create the action which will take the picture, which you can find under 'Media'. If you want a new file every time a pic is taken, use the 'Photo Series Time' action, or if you want to use the same name every time, use 'Photo'. I use both methods, in case there are multiple attempts, while also having access to the latest pic using a static file name. Don't forget to select the 'Discrete' option.
Thanks for this,

i already have all photos uploading to dropbox so for this would wrk well, I am however using widget locker, so ill have to work out if this works with this, (i am assuming not) or if ill have to revert back to stock lockscreen. hmmmmm
alackman is offline  
Reply With Quote
Old May 14th, 2012, 02:21 PM   #1060 (permalink)
Junior Member
 
Join Date: Aug 2010
Posts: 50
 
Device(s): Samsung Galaxy Nexus (VZW)
Carrier: Not Provided

Thanks: 2
Thanked 7 Times in 5 Posts
Default

I am using the LiquidSmooth ROM which has a modified lock screen (supporting up to 8 lock 'buttons, so I am far from stock), and it still works. Definitely worth a shot!
danarchy is offline  
Reply With Quote
sponsored links
Old May 16th, 2012, 11:23 AM   #1061 (permalink)
Member
 
alackman's Avatar
 
Join Date: Aug 2010
Location: london
Posts: 320
 
Device(s): Nexus 4 Asus Transformer prime
Carrier: Not Provided

Thanks: 51
Thanked 33 Times in 30 Posts
Default

Quote:
Originally Posted by danarchy View Post
I am using the LiquidSmooth ROM which has a modified lock screen (supporting up to 8 lock 'buttons, so I am far from stock), and it still works. Definitely worth a shot!

Hi again, thank you for the profile, I've got it working and for nothing else its great to now have that extra settings app.

Now, I do have a question which is less about tasker and more about lockscreens, so I will post a new thread, hopefully if you can help you can find it and offer suggestions there as it us related to the above.
alackman is offline  
Reply With Quote
Old May 18th, 2012, 05:42 PM   #1062 (permalink)
Junior Member
 
Join Date: Jan 2012
Location: Los Angeles
Gender: Male
Posts: 21
 
Device(s): Galaxy S4, Nexus 7 (2013)
Carrier: Verizon Wireless

Thanks: 2
Thanked 2 Times in 1 Post
Default

I only have a few profiles. I have one that turn on auto-rotate whenever I open my gallery or YouTube app. I have one that silences my phone overnight, but allows calls from my ICE contacts. And I have one that turns on my wifi overnight so that certain things can sync.

There is still a lot I wish it could do, like turn on Bluetooth when I hop in my car (I don't have a dock), mute the ringer when I get to work and unmute the ringer when I leave. I can get it to toggle the ringer on a timer, but a timer doesn't take holidays into account so I want it to trigger off of some other signal, but I haven't put enough thought or energy into it to configure it. Overall, it's the best app ever.
roytheodd is offline  
Reply With Quote
Old May 21st, 2012, 07:02 PM   #1063 (permalink)
New Member
 
Join Date: May 2012
Posts: 8
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 2 Times in 2 Posts
Default

I've been reading the various Android forums relating to Tasker support, and have found all sorts of useful tips that I have used on my phone.


To give back to the communities for all the nifty things I've found in these forums, I'm posting this trick I worked out that addresses a problem that I have seen complained about several times on multiple forums. I am posting this exact same thing to multiple forums that I have gotten tips from.


Tasker is a very nifty package, but the priority feature seems to cause problems, rather than solve them. The complaint that I've seen about this is that there is no guaranteed way to insure that a procedure invoked with Perform Task has finished other than waiting a while then going on.


I've had strange results about which tasks complete when when I'm using Perform Task. Part of the problem for me is that I have some tasks that are started both with a profile and a Tasker widget, which have different launching priorities. I finally decided to see if I could figure out a way to make task processing more predictable.


As I have had happen several times, Tasker didn't have a built-in tool for what I wanted to do, so I built one out of the parts Tasker had available.


To get on to the solution to the child task completion problem, I figured out a way to make a parent process block itself until the child is done, this involves a bit of tinkering in both parent and child, but is surprisingly simple.


In your parent task:


Variable Set %block to 1
Perform Task {Your Task Here} {Optional Parameters} Return Variable %block
Wait Until: 1 second - %block ~ 0


In your child task:


{your stuff here}
Return 0


In the case where you need a result back from the child process, your blocking variable and your result variable are the same. Just set your return variable to something your child will not send back, then set the Wait Until to watch for the return to not match your blocking value.


Parent:


Variable Set %fruit to Wombat
Perform Task "Identify Fruit" Return Variable %fruit
Wait Until: 1 second - %fruit !~ Wombat


The parent task then blocks until your child process returns something like "Pineapple", which then no longer matches "Wombat" and the parent goes on.


What this little trick does is to remove priorities from the equation. Use this and it no longer matters what priorities are assigned where, your parent task will be blocked, either by the Tasker priority system or its own code, until the child task finishes.


If the child task is of higher priority than the parent, unless it contains a Wait of some kind, it will run to completion, the parent will be unblocked, it will hit the Wait Until, count off one second, see that the requirement is met, and release control. If there is a wait, the parent hits Wait Until, and blocks until it gets a return.


If the child and the parent have the same priority, the parent will hit the Wait Until and wait for the blocking value to change.


If the child is lower priority than the parent, the Wait Until will allow the child to run during those fractions of a second when it is not checking the variable for the blocking value, and the child eventually returns a value and the parent goes on.


The upshot of this is that your parent task will reliably wait for the child to finish, and you don''t have to care about the exact way it happens.


Since returning a value when none is expected is harmless, you can use the same child tasks in different parent tasks and the parent can wait or not as needed. No need to wait? Just Perform Task and don't set up the blocking statements.


Easy to implement and solid as a rock. I've tested this several ways, including a descending nested priority stack, and everything waited for what it was supposed to.
MikeVx is offline  
Reply With Quote
The Following User Says Thank You to MikeVx For This Useful Post:
Flumme (May 22nd, 2012)
Old May 21st, 2012, 07:10 PM   #1064 (permalink)
New Member
 
Join Date: May 2012
Posts: 8
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 2 Times in 2 Posts
Default

Hmm. How did I manage to get that oversize font? Sorry about that. Likely copy and paste problems as I composed the post in a word processor. (You've seen what food processors do to food...)
MikeVx is offline  
Reply With Quote
Old May 21st, 2012, 07:37 PM   #1065 (permalink)
Member
 
Rob.G's Avatar
 
Join Date: Nov 2010
Location: United Stated
Gender: Male
Posts: 341
 
Device(s): Samsung Galaxy S III HTC Incredible - rooted
Carrier: Verizon

Thanks: 11
Thanked 83 Times in 73 Posts
Default

What I've been doing is using a different way:

For example I have a "Personal Assistant" Task which updates the weather, any calendar events for the day, my horoscope, and the Amazon free app of the day and speaks some of the items to me as I go about my morning business. It does the last 2 only once a day, the others are updated every hour which I use with Minimalistic Text and/or a widget.

When I was first designing it, the various calls would get mixed up and the information was getting set wrong because different websites took longer to poll from.

Anyhow, when my "PA" task runs, I use the various Perform Tasks to call whichever items are being updated, then before the next one is called I use Wait Until TRUN !~ "PA Weather". So the primary task waits until my weather task is completed by seeing if "PA Weather" is not running (TRUN !~), then moves on to the next.

Perform Task "PA Weather"
Wait Until TRUN !~ "PA Weather"
Perform Task "PA Calendar"
Wait Until TRUN !~ "PA Calendar"
Etc...

Never had a problem with it that way since then.
Rob.G is offline  
Last edited by Rob.G; May 22nd, 2012 at 06:09 AM.
Reply With Quote
The Following User Says Thank You to Rob.G For This Useful Post:
Flumme (May 22nd, 2012)
Old May 21st, 2012, 10:39 PM   #1066 (permalink)
New Member
 
Join Date: May 2012
Posts: 8
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 2 Times in 2 Posts
Default

Given the complaints I'd seen I'd have thought that a solution would have been so visible that I couldn't miss it, but I read so much in a few weeks I did miss it. Still, multiple solutions for a problem is a good thing. Now I'll have to look up TRUN, since that is something I've missed that I can probably find uses for once I understand it.
MikeVx is offline  
Reply With Quote
Old May 23rd, 2012, 08:15 PM   #1067 (permalink)
New Member
 
Join Date: May 2012
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by df9573 View Post
Hi everyone,

I'd love some help figuring out if punching in and out from work can be automated with Tasker. I'm a Tasker amateur... hopefully one of you pros is up to the challenge.

Here's my punch in procedure:

1) Dial my company's punch clock phone number.
2) Wait approximately five seconds for pick up/first prompt.
3) Enter my four digit employee code and then press #.
4) Wait approx. two seconds.
5) Press 1 and then #.
6) Wait approx. two seconds.
7) Hang up.

Can Tasker simplify the process?

Any advice would be appreciated. Thanks.
This little task is really giving me a run for my money...

Does anyone know what action(s) in Tasker simulate a press of the dialpad? I can't just have multiple dial actions separated by waits.
df9573 is offline  
Reply With Quote
Old May 23rd, 2012, 09:20 PM   #1068 (permalink)
Senior Member
 
Join Date: Apr 2012
Location: Sacramento, CA
Gender: Female
Posts: 866
 
Device(s): Samsung Galaxy S3, Logitech Revue, Motorola Triumph (CM9 ICS ROM) [retired]
Carrier: Virgin Mobile

Thanks: 182
Thanked 125 Times in 104 Posts
Default

Does anyone know of some basic instructions that are in text format rather than video? I just got Tasker and am baffled by interacting with it, but in this case, instructional videos don't really fit with how my mind works.

The immediate things I'd like to do are to play particular sound files (on my phone's SD card as ringtones) at startup and shutdown.
Seanette is offline  
Reply With Quote
Old May 24th, 2012, 01:53 AM   #1069 (permalink)
Member
 
Rob.G's Avatar
 
Join Date: Nov 2010
Location: United Stated
Gender: Male
Posts: 341
 
Device(s): Samsung Galaxy S III HTC Incredible - rooted
Carrier: Verizon

Thanks: 11
Thanked 83 Times in 73 Posts
Default

Quote:
Originally Posted by df9573 View Post
This little task is really giving me a run for my money...

Does anyone know what action(s) in Tasker simulate a press of the dialpad? I can't just have multiple dial actions separated by waits.
I can't see what you would do differently through Tasker regarding this, You would either use waits or pauses in Tasker just the same as with a phone number with a "wait" or a "pause until keypress" inserted in the number string, but...

You can have Tasker simulate a keypress, however, you must be rooted to be able to access this function because Android natively doesn't allow one program to interfere with another.

If you are ready to head down that alley, there is a pretty good tutorial to start you off in the Tasker Google Group:> I figured out how to emulate key presses - Tasker | Google Groups
Rob.G is offline  
Reply With Quote
Old May 24th, 2012, 02:10 AM   #1070 (permalink)
Member
 
Rob.G's Avatar
 
Join Date: Nov 2010
Location: United Stated
Gender: Male
Posts: 341
 
Device(s): Samsung Galaxy S III HTC Incredible - rooted
Carrier: Verizon

Thanks: 11
Thanked 83 Times in 73 Posts
Default

Quote:
Originally Posted by Seanette View Post
Does anyone know of some basic instructions that are in text format rather than video? I just got Tasker and am baffled by interacting with it, but in this case, instructional videos don't really fit with how my mind works.

The immediate things I'd like to do are to play particular sound files (on my phone's SD card as ringtones) at startup and shutdown.
I wasn't aware there were video tutorials for Tasker, but I'm sure someone somewhere did it.

The Tasker Wiki is text-based:> Step-Throughs & How-Tos - Tasker Wiki

For doing this be warned that Tasker won't be able to play a sound right when your device turns on. Programs are put in a queue until the system is finished it's startup routine. So it could take up to 1 minute or so until Tasker gets resources and is allowed to play a sound.

Your Profile would be:
Event > System > Device Boot
+ > Media > Play Ringtone, select your sound

Also, when powering off, Tasker MAY not be able to play a sound because the device uses it's resources to close all the programs running, so again it is put in a queue and may not get a chance to run until it is too late.
Rob.G is offline  
Reply With Quote
The Following User Says Thank You to Rob.G For This Useful Post:
Seanette (May 24th, 2012)
sponsored links
Old May 25th, 2012, 09:42 AM   #1071 (permalink)
New Member
 
Join Date: May 2012
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Rob.G View Post
I can't see what you would do differently through Tasker regarding this, You would either use waits or pauses in Tasker just the same as with a phone number with a "wait" or a "pause until keypress" inserted in the number string, but...

You can have Tasker simulate a keypress, however, you must be rooted to be able to access this function because Android natively doesn't allow one program to interfere with another.

If you are ready to head down that alley, there is a pretty good tutorial to start you off in the Tasker Google Group:> I figured out how to emulate key presses - Tasker | Google Groups
Exactly what I'm looking for. Thanks!
df9573 is offline  
Reply With Quote
Old May 28th, 2012, 10:01 PM   #1072 (permalink)
New Member
 
Join Date: May 2012
Posts: 8
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by Rob.G View Post
What I've been doing is using a different way:

[stuff deleted]

Perform Task "PA Weather"
Wait Until TRUN !~ "PA Weather"
Perform Task "PA Calendar"
Wait Until TRUN !~ "PA Calendar"
Etc...

Never had a problem with it that way since then.
Well, apparently Tasker is bent on being unpredictable. For no obvious reason, my blocking system has broken because, for some but not all tasks, Tasker fails to return a value to the parent, which causes the parent to block until stopped. It gets worse, the same child task will return a value to some parent tasks but not others. I don't know what changed, Tasker did not update.

Until either I can figure out why this is happening, or Tasker is fixed, I'm running some experiments based on your method, with an idea of creating a global variable when I need a result returned, since I can't count on the Return function to work correctly.
MikeVx is offline  
Reply With Quote
Old May 31st, 2012, 11:23 AM   #1073 (permalink)
Junior Member
 
Join Date: Apr 2012
Posts: 90
 
Device(s):
Carrier: Not Provided

Thanks: 91
Thanked 24 Times in 13 Posts
Default

I have a speech notification that speaks a line of text when a certain contact sends me a text message. How would I go about randomizing the spoken text? Like if I created 3 speech tasks and one of them would play randomly each time the contact texts me. Any help is appreciated!
TRAVI5TY is offline  
Reply With Quote
Old May 31st, 2012, 11:25 AM   #1074 (permalink)
New Member
 
Join Date: May 2012
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

I would like a profile while I am driving ("Driving") with these features:

- I want the SMS to be read when I am in my car (so, the context is: Bluetooth on), but not when I am on the phone (that's the part I can't work).

- No ringtone and no vibration.

- No wifi, no GPS and no Data.

Then, when I switch off Bluetooth (either manually or because the car is engined off), it should switch to another profile ("home" or "outside", depending on the location / the variables set in the other profiles).

How can I do this? Do I have to use variables (I think so)?

thanks!
rive01 is offline  
Reply With Quote
Old June 1st, 2012, 11:34 PM   #1075 (permalink)
New Member
 
Join Date: Jun 2012
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

I am new to Tasker and I have been reading through this thread to find some more profiles to make. I am currently on page 10 of this thread so I apoligize if some of my questions have already been answered.

The profiles I currently have are GPS automation, a plugged in profile, and a night profile.

I would like to add several new profiles, but there are a few that are really giving me trouble.
1) Dim or turn off softkey backlight (I have an HTC Amaze and the buttons cause bad light bleed on the screen)
I tried running a command from secure settings to turn the keys off (echo 0 > /sys/class/leds/button-backlight/brightness), but it didn't do anything. I also tried an app called screen filter that works with tasker and the softkey lights remained on even when I unchecked the enable softkey backlight box.
2) Restart phone every few nights
I tried using the reboot action from the misc section of tasker, but it doesn't work. When I test the profile a prompt comes up saying it is asking for SU permission and I grant it, but then nothing happens. I have waited at least a few minutes and nothing happens. I also tried a command to do this from the Secure Settings plug in and it didn't work.
3) Display on when unplugged
Is there a way to make the display turn on when the phone is unplugged and then time out and turn off after the regular amount of time as set in settings? My Blackberry used to do this and I miss this feature.

The phone is rooted so I don't really understand why the reboot profile is not working.
Thanks in advance for the help
j181 is offline  
Reply With Quote
Old June 4th, 2012, 10:23 AM   #1076 (permalink)
Junior Member
 
Join Date: Apr 2010
Posts: 21
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Anyone ever use tasker to start a run or pause a run with run keeper? possible?

Thanks.
Tsitalon is offline  
Reply With Quote
Old June 4th, 2012, 12:37 PM   #1077 (permalink)
Member
 
Join Date: May 2010
Posts: 148
 
Device(s):
Carrier: Not Provided

Thanks: 59
Thanked 2 Times in 2 Posts
Default New to Tasker help with a task

I'm trying to figure out if there's a way to automatically start the video recorder in "long video" recording mode?
mted558 is offline  
Reply With Quote
Old June 4th, 2012, 02:42 PM   #1078 (permalink)
Member
 
Join Date: Apr 2010
Posts: 394
 
Device(s):
Carrier: Not Provided

Thanks: 32
Thanked 46 Times in 35 Posts
Default

Quote:
Originally Posted by rive01 View Post
I would like a profile while I am driving ("Driving") with these features:

- I want the SMS to be read when I am in my car (so, the context is: Bluetooth on), but not when I am on the phone (that's the part I can't work).
Yes you'll need to setup some variables. Look into the contexts Phone OffHook and Phone Idle. When you are in a Call, the Phone OffHook context will fire. When any call has ended, the Phone Idle context will fire. Setup a variable with that and you should be able to figure out the rest.
Stupifier is offline  
Reply With Quote
Old June 4th, 2012, 03:25 PM   #1079 (permalink)
New Member
 
Join Date: Jun 2012
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

i need help with a wifi tether profile. i have a screen off and a screen on profile to disable and enable mobile data and wifi. i am trying to make those profiles not active when i am using wifi tether. problem is that the tasker profile for wifi tether disables when wifi tether is not in foreground or screen is off. how can i set it up so when wifi tether is running in background or screen is off the other profiles stay inactive, or how do u keep an application profile active when the app is not in foreground.?
sfetaz is offline  
Last edited by sfetaz; June 4th, 2012 at 03:29 PM.
Reply With Quote
Old June 5th, 2012, 12:51 PM   #1080 (permalink)
New Member
 
Join Date: Jun 2012
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

I was able to get the 1st profile working. I found a set light alert option in tasker and the button backlight can be disabled that way. The profile is triggered using display on. I tried to make it trigger on boot or using battery level 0 to 100%, but it only seems to work if I use the display on context.
The problem is every time the screen turns on it says "Tasker has been granted superuser permissions for an interactive shell." Is there a way to remove this unecessary notification?
Another profile I am trying to make is to extend the display timeout when the keyboard is out. I tried selecting the state and keyboard out context and I also tried using the application state since I use GO keyboard, but neither will work.
Also, can somebody help me with the other two profiles quoted below that I am having problems with?
Quote:
Originally Posted by j181 View Post
1) Dim or turn off softkey backlight (I have an HTC Amaze and the buttons cause bad light bleed on the screen)
I tried running a command from secure settings to turn the keys off (echo 0 > /sys/class/leds/button-backlight/brightness), but it didn't do anything. I also tried an app called screen filter that works with tasker and the softkey lights remained on even when I unchecked the enable softkey backlight box.
2) Restart phone every few nights
I tried using the reboot action from the misc section of tasker, but it doesn't work. When I test the profile a prompt comes up saying it is asking for SU permission and I grant it, but then nothing happens. I have waited at least a few minutes and nothing happens. I also tried a command to do this from the Secure Settings plug in and it didn't work.
3) Display on when unplugged (or plugged in)
Is there a way to make the display turn on when the phone is unplugged and then time out and turn off after the regular amount of time as set in settings? My Blackberry used to do this and I miss this feature.

The phone is rooted so I don't really understand why the reboot profile is not working.
j181 is offline  
Reply With Quote
sponsored links
Old June 5th, 2012, 06:20 PM   #1081 (permalink)
Member
 
Join Date: Apr 2010
Posts: 394
 
Device(s):
Carrier: Not Provided

Thanks: 32
Thanked 46 Times in 35 Posts
Default

Quote:
Originally Posted by j181 View Post
The problem is every time the screen turns on it says "Tasker has been granted superuser permissions for an interactive shell." Is there a way to remove this unecessary notification?
Another profile I am trying to make is to extend the display timeout when the keyboard is out. I tried selecting the state and keyboard out context and I also tried using the application state since I use GO keyboard, but neither will work.
Also, can somebody help me with the other two profiles quoted below that I am having problems with?
Have you looked at the settings of your SuperUser app? Or are you using SuperSU? Either way, both of those SU Permission apps have options to disable the toast notifications you are getting. You can even set it to auto-grant superuser access. If after disabling the notifications, you still get those toast messages, I would recommend switching SU Permission apps. After I was unable to disable those annoying toast messages with SuperSU, I switched to SuperUser app and it worked.

Also, regarding your Reboot issue. It sounds like Tasker's reboot command doesn't work for you. Find alternatives. I use the AutoShortcut Tasker Plugin along with the app called Rebooter to fire scheduled reboots with Tasker.

And then finally, regarding your display on when unplugged profile. Look into the Tasker context -> State -> Power. Set that to invert. So once you unplug power, the profile will trigger. Then to turn the display on, look into the app Secure Settings. One of the options in that app allows for the screen to turn on (I use this) and it has Tasker integration. You just have to figure it out.
Stupifier is offline  
Last edited by Stupifier; June 5th, 2012 at 06:32 PM.
Reply With Quote
The Following User Says Thank You to Stupifier For This Useful Post:
j181 (June 6th, 2012)
Old June 6th, 2012, 01:15 AM   #1082 (permalink)
New Member
 
Join Date: Jun 2012
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thanks for the reply Stupifier. I couldn't get Rebooter to show up in the Autoshortcut plugin, but I did get the app called Fast Reboot to do what I want through the load app task. It isn't a true reboot, but it turns out to be just what I wanted. I was also able to get my other profiles to work using your reply.
The only issue I still have is with my keyboard profile to extend the screen timeout with the keyboard out. I tried selecting the keyboard out context and I also tried using the application context since I use GO keyboard with the task being display timeout, but the profile doesn't seem to work. The display timeout is the same and when the keyboard is out I can check the taskbar and it says no active profiles. I thought about doing something similar to what you described in the last profile, using secure settings to set the screen on time, but that setting is "wake device" in secure settings and the device is already awake when the keyboard is out so I didn't think it would work for the keyboard profile. Also, since it is showing no active profiles when the keyboard is out, I think the problem lies with the keyboard out context. Have any ideas for this profile?
Thanks for the help!
j181 is offline  
Last edited by j181; June 6th, 2012 at 02:09 AM. Reason: Fixed
Reply With Quote
Old June 6th, 2012, 04:26 AM   #1083 (permalink)
Junior Member
 
Join Date: Mar 2012
Location: Finland
Gender: Male
Posts: 40
 
Device(s): Samsung Galaxy S4
Carrier: Saunalahti

Thanks: 17
Thanked 8 Times in 6 Posts
Default

I need help to create a task like this. When I go to the golf course, I would like to have my phone to go silent automatically. I tried to do it but it didn't work at all. Can I have some noob walkthrough with this. What I didn't try was to create that in actual place, I did it at home.
higge is online now  
Reply With Quote
Old June 6th, 2012, 03:25 PM   #1084 (permalink)
Member
 
Join Date: Apr 2010
Posts: 394
 
Device(s):
Carrier: Not Provided

Thanks: 32
Thanked 46 Times in 35 Posts
Default

Quote:
Originally Posted by j181 View Post
Have any ideas for this profile?
Thanks for the help!
Have you looked into the Tasker Variable %WIN. Anytime a new window is created (possibly the keyboard), the %WIN variable is set to the window name. People (including me) use this variable as a workaround when app contexts are not working.

Quote:
Originally Posted by higge View Post
I need help to create a task like this. When I go to the golf course, I would like to have my phone to go silent automatically. I tried to do it but it didn't work at all. Can I have some noob walkthrough with this. What I didn't try was to create that in actual place, I did it at home.
Golf courses cover a wide area so a location based context would be difficult. When you get to your specific golf course, check and see if there are any WiFi networks around. Only check around the area you usually ARRIVE at when you go to the specific golf course. You don't have to be able to physically connect to the WiFi network, you only have to SEE it. If you find one, then you can setup a 'WiFi Near' context. Once setup, when your phone is capable of seeing the specific WiFi network on the specific golf course you play at, it will trigger your profile (silent phone).
Stupifier is offline  
Last edited by Stupifier; June 6th, 2012 at 03:31 PM.
Reply With Quote
The Following User Says Thank You to Stupifier For This Useful Post:
j181 (June 6th, 2012)
Old June 6th, 2012, 05:26 PM   #1085 (permalink)
Junior Member
 
Join Date: Mar 2012
Location: Finland
Gender: Male
Posts: 40
 
Device(s): Samsung Galaxy S4
Carrier: Saunalahti

Thanks: 17
Thanked 8 Times in 6 Posts
Default

Thanks for the answer. If there's no wifi available, I can do it with phone links right? Maybe do it with links, it would cover greater area. But I will try that.
higge is online now  
Reply With Quote
Old June 6th, 2012, 05:43 PM   #1086 (permalink)
Member
 
Corki2's Avatar
 
Join Date: Sep 2010
Location: FL
Posts: 340
 
Device(s): LG Ally, Droid X, HTC Rezound, LG Spectrum, Galaxy S3
Carrier: Not Provided

Thanks: 48
Thanked 80 Times in 56 Posts
Default

I bought Tasker a long time ago 1 or 2 years. I opened it and tried to make sense of it, closed it and uninstalled it. I finally decided to learn how to use it and am happy to report success. I have a few I use on my Rezound running the ICS leak.

1. When I launch certain programs like Kindle, WordSmith, etc., the display stays on. When I exit the program the display timeout goes back to 30secs.

2. I have a widget that toggles my keyguard on and off because I hate having to unlock my phone while it's sitting on the table next to me at home.

3. If I misplace my phone and it's on silent, I can send a "ring" text that turns my ringer to loud and plays whatever song I choose. I chose "I Get Around" by The Beachboys.

4. If I totally lose my phone I can send a "Find my phone" text message and it will text me back with GPS coordinates. You can plug in those coordinates in Google Maps and get the address or location on a the map.

5. Missed call, sms, Google Voicemail reminders.

6. I use Gentle Alarm which includes a night clock. You can set it to launch the clock when it's docked, but I found that it doesn't differentiate between a dock and a corded charger, car or home. So every time I plugged in my phone it launched the bedside clock. Also when you unplug the phone, you have to exit out of the clock program. I used tasker to create a profile that launches Gentle Alarm when it's docked and when I take my phone out of the dock, Gentle Alarm closes automatically.

I did a have a profile to read text messages to me but since I have Enhanced Caller ID which can read sms as well as Gmail, I got rid of that Tasker profile until I figure out how to make it read Gmail sender and subject.

I'm glad I finally took the time to learn how to set up profiles. It's very handy.

I got most of these from the Wiki Stepthrough. I downloaded the Reminder Notifications from the section with the downloads.

Edit: I figured out how to use Scenes. Whoo hoo! So now I have a popup with reply for texts and a popup for K9.

I also figured out how to get Tasker to read my texts and emails and set quiet time, so I can ditch Enhanced Caller ID now.

Here's a shot of my regular popup. And another popup I made for my favorite contacts which includes their picture instead of name.
Attached Images
File Type: jpg Rezound Screen1.jpg (257.1 KB, 88 views)
File Type: jpg My sms popup.jpg (656.7 KB, 81 views)
Corki2 is offline  
Last edited by Corki2; June 9th, 2012 at 08:21 PM. Reason: Added pic
Reply With Quote
Old June 6th, 2012, 06:56 PM   #1087 (permalink)
New Member
 
Join Date: Jun 2012
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

Higge,
What I think you mean by phone links is the cell near context. To do this you could do state-phone-cell near. The problem with this is several different cell towers probably cover the golf course. To set this profile up you will want to be on the golf course and click scan (bottom of cell near task page) and let it scan for awhile to find the cell towers in the area. If you find some towers near where you enter the golf course you should be able to set Tasker to put the phone on silent when it sees those towers.

The real problem arises with turning the phone back to regular volume. If you set it to go back when it is away from those towers it will probably go back and fourth between regular and silent on the golf course as the phone finds new towers and goes out of range of old ones. Maybe set it to go back after a certain amount of time, when your home wifi is visible, or something else.
j181 is offline  
Reply With Quote
Old June 7th, 2012, 01:11 AM   #1088 (permalink)
Junior Member
 
Join Date: Mar 2012
Location: Finland
Gender: Male
Posts: 40
 
Device(s): Samsung Galaxy S4
Carrier: Saunalahti

Thanks: 17
Thanked 8 Times in 6 Posts
Default

Thanks for the answer. I think that is the way I try to do it. I tried the programming at home and it worked so I will try it in actual place tonight. And yes, I meant cell towers of course, my english is not so good.
higge is online now  
Reply With Quote
Old June 10th, 2012, 11:46 AM   #1089 (permalink)
Member
 
gcobb's Avatar
 
Join Date: Nov 2010
Location: Southaven, MS
Posts: 423
 
Device(s): Samsung Galaxy S2 - Resurrection Remix
Carrier: Not Provided

Thanks: 28
Thanked 23 Times in 20 Posts
Default

Edited:

Is there a basic how-to for making scenes? I've looked all over the place and haven't found what I'm looking for just yet. I may try Youtube but if I had example steps it would be great.
__________________
http://www.photogesture.com
gcobb is offline  
Last edited by gcobb; June 10th, 2012 at 03:16 PM.
Reply With Quote
Old June 10th, 2012, 07:22 PM   #1090 (permalink)
Member
 
Join Date: Apr 2010
Posts: 394
 
Device(s):
Carrier: Not Provided

Thanks: 32
Thanked 46 Times in 35 Posts
Default

Quote:
Originally Posted by gcobb View Post
Edited:

Is there a basic how-to for making scenes? I've looked all over the place and haven't found what I'm looking for just yet. I may try Youtube but if I had example steps it would be great.
I felt the same way. After a week or so I became much more comfortable making scenes. Reading the Tasker userguide ended up being my guide. Whenever I ran into a question, I could usually figure it out with google and the userguide.
Stupifier is offline  
Reply With Quote
sponsored links
Old June 11th, 2012, 03:28 PM   #1091 (permalink)
Member
 
Join Date: Aug 2010
Posts: 103
 
Device(s):
Carrier: Not Provided

Thanks: 16
Thanked 35 Times in 22 Posts
Default

I've got a profile for Pandora to load when I hookup a headset or my computer speakers. Once Pandora loads, mobile data turns on and media volume gets adjusted. The problem is when unplugging everything goes back to its previous setting except Pandora does not close. I've tried not using an exit task and using an exit kill app task. Neither work.
ymmie is offline  
Reply With Quote
Old June 11th, 2012, 11:58 PM   #1092 (permalink)
Senior Member
Thread Author (OP)
 
chrlswltrs's Avatar
 
Join Date: Nov 2009
Location: Seattle
Gender: Male
Posts: 6,741
 
Device(s): Nexus 4 w/ LTE
Carrier: T-Mobile

Thanks: 1,174
Thanked 1,786 Times in 1,163 Posts
Default

Quote:
Originally Posted by ymmie View Post
I've got a profile for Pandora to load when I hookup a headset or my computer speakers. Once Pandora loads, mobile data turns on and media volume gets adjusted. The problem is when unplugging everything goes back to its previous setting except Pandora does not close. I've tried not using an exit task and using an exit kill app task. Neither work.
To kill an app you need to be rooted and give Tasker SU permissions. Unfortunately Google removed the ability for an app to kill another app a couple years ago (probably due to so many people using worthless task killers).

I have a couple profiles where Tasker kills apps like Slacker Radio when I exit the profile
__________________
"Is life so dear, or peace so sweet, as to be purchased at the price of chains and slavery? Forbid it, Almighty God! I know not what course others may take; but as for me, give me liberty or give me death!"

-Patrick Henry, March 23, 1775
chrlswltrs is offline  
Reply With Quote
Old June 13th, 2012, 03:49 PM   #1093 (permalink)
Member
 
Corki2's Avatar
 
Join Date: Sep 2010
Location: FL
Posts: 340
 
Device(s): LG Ally, Droid X, HTC Rezound, LG Spectrum, Galaxy S3
Carrier: Not Provided

Thanks: 48
Thanked 80 Times in 56 Posts
Default

Automatically turn BT on when phone rings and then turn off when you hang up. Simple.

Context: State > Phone>Call>Any
Enter task: Net > BT > On
Exit task: Net > BT > Off

I also have an autoreply profile and a silent ringtone profile which are enabled when I turn my phone over. So I'm not disturbed when I'm busy or taking a nap.

I have my silent ringtone set to be active at night when my ringer is unaffected so I can get calls.

Profile to turn my wifi off if I get out of range of my SSID. And turn it back on when it detects it.

If anyone is interested in instructions for any of the profiles I have posted I will be happy to post them. I'm actually working on documenting all the ones I use for easy sharing, but haven't gotten very far with it yet. Just ask and I will post it.
Corki2 is offline  
Reply With Quote
Old June 13th, 2012, 09:43 PM   #1094 (permalink)
Member
 
Corki2's Avatar
 
Join Date: Sep 2010
Location: FL
Posts: 340
 
Device(s): LG Ally, Droid X, HTC Rezound, LG Spectrum, Galaxy S3
Carrier: Not Provided

Thanks: 48
Thanked 80 Times in 56 Posts
Default My Step by Step Guide to Creating a Basic sms PopUp Scene in Tasker

As a new Tasker user I scoured the net looking for a step by step guide like this. I didn't find one. Once I figured out how to make a scene, I decided to put a guide together to save others form hours of searching in vain. This may not be excatly what you want, but it will give you the basics and you can go from there.

Creating a basic PopUp Scene in Tasker.

1. First you have to create the scene. From the Scenes screen click on the +. A popup will open asking you to name it. Name it and click the check mark. In this example, my scene is called “SMS PopUp”. You will then be on a screen that has a transparent overlay. The transparent rectangle area is your scene. Grab a corner and pull out and you can change the size of your scene. Once you are happy with the size, click the magnifying glass in the lower right corner. Now there should be a green line through your magnifying glass. This means you can start adding things to your scene. Anytime you want to change the size of the whole scene or see how it looks, just click the magnifying glass. Remember to click it again when you want to add things.

2. Now that you have created your scene canvas, you need to add elements to it. For example, show your last text message, etc. There are two ways to add an element to your scene. You can either ling click on the scene. When you click the plus sign or long press on your scene, a list of choices will popup. These are all the different things you can add to your scene. Let’s say we want to make a basic text message popup. Scroll down in this list and click the “Text” choice on the next popup is where you choose what you want to display. Click on the little yellow tag on the “text” line and another popup will open with a list of things you can display. I’m choosing “Text From Name” in this example. I don’t do anything in this screen but you can adjust the text size and color here. Up at the top you have options such as Background, Tap, etc. Click on the background tab. This is where you change the color of this section of your scene. I like to enter #90000000 here because it looks great on ICS but you can just press the magnifying glass here and a color selector will pop up. You can also choose to put a border on here. Just click the plus sign next to border to choose how wide you want it. When you tap the plus sign your color picker will magically appear so you can pick that color also. There are other things you can mess with here, but for this demo, we’re done on this screen. You can explore the other tabs at the top, “Tap”, “Long Press”, etc ., but I’m not getting into that. After you have finished choosing your background settings, click the check mark on the lower left corner. You will then be looking at your scene. You should see the name of the last person who sent you a text message. Grab the corner and resize it to your liking. I moved it to the top 1/3 of the scene. You can drag it and resize the element you just created to your liking. If you want to see how it looks for real in your scene, click the magnifying glass again to get to the actual view. Remember to click it again to show the green like when you want to add more stuff to your scene. Now choose the next element by clicking the + sign again. Lets click “Text” again, then choose “Text Body” from the little yellow tag for the next element. Adjust your background colors, etc then click the check mark. Now you are back at your scene where you can adjust the size and location of this element. I align it with the bottom of the first section. Anytime you want to adjust the background color, etc., just click on it and make your changes.

Now lets add a “Reply” button to your scene. Click the + sign and choose “Button” from the list. Name it and Label it “Reply”. Then from the tab at the top of your page, choose “Tap” This tells your button what to do when it’s tapped. Click the + sign and you will see a whole bunch of rectangles to choose from. Click “App”, then “Load App” then choose “Messages” or whatever your messaging program is called from the list of apps .Then click the check mark in the lower left corner. Next click the + sign in the lower left corner to add the next action. This time pick “Misc” and then “Send Intent” In this case since we want to reply directly to the message we received we are going to add the codes manually rather than choosing from the little yellow envelope. In the “action” box type “android.intent.action.VIEW” without the quotes. Then skip down to “Data” and input “sms:%SMSRF” without the quotes. Then scroll down toward the end and choose “Activity” as your Target. Now click the check mark in the lower left corner. Now you are at a list showing you the actions you just chose. Click the check mark at the bottom left again and you are back to your scen with a huge “Reply” button. Grab the corner and resize it and put it where you want it.

Now we need a button to close this popup. Click the + and choose “Button” again. Name and label it “Close”. The at the top of the page choose the “Tap” tab. Click the + in the lower left corner and choose “Scene”. Choose “Hide Scene”. Then click the check mark in the lower left. Now you are done here so you can click the check mark on the lower corner. Now you are back to your scene where you can resize and reposition your “Close” button.

You can add another button to open your messaging inbox by repeating the above action, except label it “In Box” and then from the “Tap” menu at the top choose “App” then “Load App” and pick your messaging program again. Click the check mark and resize and reposition your “In Box” button.

There is a little bear face in your task bar that allows you to resize and move your elements around on your scene. Play with the bear until you have everything looking the way you want it. When you’re done playing with it, click the check mark in the lower left corner. Now you’re back at the Tasker main screen.

3. Now that you have created your Popup Scene, you need to let Tasker know when to display it on your phone. In this case, I want it to display when I get a text message. We need to create a profile for that.

Click the “Profile” tab at the top of your page. Click on the + sign and name it “SMS Popup” or whatever you want to call it. It won’t show anywhere that matters. Click the check mark in the lower left corner. Now you see a list of things you can choose from. We want an event (received text message) to trigger our scene, so click “Event” . Now click “Phone” then choose “received Text” Here you can choose SMS, MMS or Any. I choose Any. You can also choose which senders you want to use this for by clicking the magnifying glass on the “Sender” line. In this case, choose “Any Contact”. Click the check mark in the lower left corner and a popup will appear asking you to add a new task. Click “New Task” You don’t have to name this, just click the check mark and now your at another big blue screen with a plus sign in the bottom left corner. Click it. Then choose “Scene” then “Show Scene”. Now on the “Name” line click the magnifying glass and it will popup a list of the scenes you have created. Pick your scene. Now you’re at another screen with a lot of choices. For “Display As” choose “Dialog” and you’re done here. Click the check mark in the lower left corner. Now you’re back at your mail screen. Click the check mark in the lower left corner to exit.

Now test your popup.

There are other things you can add to the popup such as time frame, or whether to show it if it’s in your pocket, etc. To restrict it if it’s in your pocket go back to your list of Tasks and click on the Orange Triangle (left) side of the task you created and long click it. A popup will open click the + sign. And in this case choose “State” . Now choose “Sensor” then select “Proximity Sensor”. You have to tick the “Invert” box or the popup will only show if it’s in your pocket. Then click the check box in the lower left corner.

To add time restriction, long press again and this time choose “Time” and tell it when you want this task to be active. That way you can keep it from popping up at night.

That’s it. That’s my basic PopUp.
Corki2 is offline  
Reply With Quote
The Following 6 Users Say Thank You to Corki2 For This Useful Post:
bruce73 (June 16th, 2012), chrlswltrs (June 14th, 2012), couragedragon (June 17th, 2012), Flumme (June 26th, 2012), Hamster68 (June 15th, 2012), ryancmatchett (June 14th, 2012)
Old June 14th, 2012, 02:12 AM   #1095 (permalink)
Senior Member
Thread Author (OP)
 
chrlswltrs's Avatar
 
Join Date: Nov 2009
Location: Seattle
Gender: Male
Posts: 6,741
 
Device(s): Nexus 4 w/ LTE
Carrier: T-Mobile

Thanks: 1,174
Thanked 1,786 Times in 1,163 Posts
Default

Quote:
Originally Posted by Corki2 View Post


That’s it. That’s my basic PopUp.
Great write-up! Pop-ups are one thing that I never got the hang of getting them to work right. I have found work arounds or other apps that simplify what I was trying to do in tasker, but this is great info!
chrlswltrs is offline  
Reply With Quote
Old June 14th, 2012, 11:50 AM   #1096 (permalink)
Junior Member
 
youngplaya's Avatar
 
Join Date: May 2012
Posts: 19
 
Device(s): Galaxy SII GT-9100
Carrier: Not Provided

Thanks: 3
Thanked 1 Time in 1 Post
Default

I really miss a "Missed Text" state at Tasker, it would simplify my missed sms reminder...

I'm currently using some simple profiles:

- Wifi Toggle through cell near and wifi near
- Battery Charged notifier (it notify when the battery is charged)
- Missed call reminder
- Missed sms reminder
- GPS on when opening some apps (Maps, Navigator, Foursquare)
- Auto sync off during night period

I've seen some great profiles, but I'm always concerned if they're going to drain my battery life!
youngplaya is offline  
Reply With Quote
Old June 16th, 2012, 11:03 AM   #1097 (permalink)
Junior Member
 
Join Date: Dec 2009
Location: Philadelphia, PA
Posts: 26
 
Device(s): Nexus 5
Carrier: Not Provided

Thanks: 2
Thanked 7 Times in 6 Posts
Default

I've got a quick Tasker question regarding profile contexts. More of a syntax question actually. I want to use an "or" statement with two calendar entries and don't know how to format it. Basically, I have calendar entries for "vacation" and "holiday" and have many tasks that I'd like to run if the context is either of those. So how would I say "vacation OR holiday" correctly in the same declaration? I currently have them as two separate context entries, but since you're limited to 4 total I would really like to get one back. Thanks!
jennyfur is offline  
Reply With Quote
Old June 16th, 2012, 02:24 PM   #1098 (permalink)
Senior Member
Thread Author (OP)
 
chrlswltrs's Avatar
 
Join Date: Nov 2009
Location: Seattle
Gender: Male
Posts: 6,741
 
Device(s): Nexus 4 w/ LTE
Carrier: T-Mobile

Thanks: 1,174
Thanked 1,786 Times in 1,163 Posts
Default

Quote:
Originally Posted by jennyfur View Post
I've got a quick Tasker question regarding profile contexts. More of a syntax question actually. I want to use an "or" statement with two calendar entries and don't know how to format it. Basically, I have calendar entries for "vacation" and "holiday" and have many tasks that I'd like to run if the context is either of those. So how would I say "vacation OR holiday" correctly in the same declaration? I currently have them as two separate context entries, but since you're limited to 4 total I would really like to get one back. Thanks!
Try a "/" between them, no spaces. That is how you do an "or" for an "if" statement in a task, hopefully it is the same.
chrlswltrs is offline  
Reply With Quote
Old June 25th, 2012, 01:22 PM   #1099 (permalink)
Senior Member
 
Join Date: Mar 2011
Posts: 846
 
Device(s): Nexus 5
Carrier: Sprint, home of unlimited dialup

Thanks: 77
Thanked 295 Times in 218 Posts
Default

I read thru' Max Revson's post and the rest of this thread (and other posts on this forum), and the Tasker wiki - I'm still stuck and could really use some help from the experts on here..

Phone: Sprint GNex

I was able to set up some basic tasks, but am stumped with this one below.
I would like to turn on the Wifi Radio when I get home *if* I had 3g data enabled when I get home (there are days/times when I don't want 3g/wifi data on my phone when I'm at home - example, at night, I don't want 3g/wifi)

I tried to set this up by using two state (cell near - home cell sites, and net->mobile network - 3g). The task is simply to enable net->wifi.

To test it, I (when at home) enable 3g (keeping wifi off). When this happens, I see the wifi turning on. Great! But a few seconds after the wifi turns on, it turns off. Then turns on, then off... and so on. (3g stays on the whole time).
I tried to disable the mobile data in the task that turns wifi on, but the wifi still keeps toggling between on/off.

What am I doing wrong? How can I fix this?

(The only reason I'm checking 3g is because I don't want to have to disable this tasker profile to turn off my data connection at night - in other words, if I turn 3g/wifi off manually at night, I want data connection to stay off till I enable it in the morning)
jj14x is offline  
Reply With Quote
Old June 25th, 2012, 09:24 PM   #1100 (permalink)
Senior Member
 
Join Date: Apr 2010
Posts: 567
 
Device(s): AT&T SGS III
Carrier: Not Provided

Thanks: 23
Thanked 29 Times in 24 Posts
Default PHone call, face up, Speaker on.

Trying to create a context as per the subject line. Seems to me it should be simple, but I'm not succeeding. Here is what I have:

Context
Phone: Offhook
Orientation: Face Up

Task
Speakerphone on

My expectations were that if I'm on a call, I can put the phone down, face up, and the speaker would come on; pick it up, and it would go off.

If I have answered the call with phone NOT face down, the speaker does not come on when I put it down.

If I have it laying down when the call comes in, and answer it, the speaker comes up. But then if I pick it up the speaker does not go off. I thought maybe for that I needed an exit task (although I though exit would automatically reverse things). But for some reason, I can't even create an exit task for this context.

Any thoughts?
ewingr is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Discussion > Android Applications > Tasker

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:09 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.