What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

What have YOU done with Tasker?

My Menu pops up list of tasks with no names of theirs. I do put names in but it does not pick it up somehow. Any ideas?

Thanks in advance this would be really helpful to me :)
 
Last edited:
Open the Keyboard and Start Texting - Tasker Wiki

Has anyone gotten this to work? This would seem like a rather simple function but I'm having trouble. The logic is that when %SCREEN is off and I open the keyboard, it should turn off the keyguard and open my messaging app. Well, installed as it's listed in the wiki, it doesn't do anything when I open the keyboard if the screen is off and the keyboard is closed.

So I thought maybe the %SCREEN variable gets set to on before the keyboard open event gets set, so I figured I could key this off the %KEYG variable. If the keyguard is on and I open the keyboard, I want it to turn the keyguard off and open my messaging app. That DOES work, but it seems to ignore the keyguard part of it and it opens the messaging app when I open the keyboard regardless of whether the keyguard was on or not.

I have a state profile that goes like this:

Keyboard Out ->
Variable Set Name %KBOUTMSG To on If %KEYG ~ on
Keyguard Set Off If %KBOUTMSG ~ on
Load App App Messaging If %KBOUTMSG ~ on
Variable Clear Name %KBOUTMSG

Obviously the issue is with the "If %KEYG ~on" condition -- it seems to ignore it and it sets %KBOUTMSG to 'on' regardless of keyguard state.

Any ideas?

I haven't looked at the wiki, but I was able to get this to work by simply using

Context:
State -> Keyboard Out

Actions:
Display -> Keyguard -> Off
App -> Load App -> Messaging

No variables needed. Works when the phone is locked and screen off.
 
Last edited:
How did you by pass the "pop up message GPS Disabled. Enable?"
I did this profile with the navigation. With GPS off, i turned navigation on, and the GPS should turn on also. but when Navi turns on, it gives me the pop up telling me GPS is off, would you like to turn on? Any way to avoid this pop up?

Myth, I had this happen to me today, too with Navigator. I hadn't realized that I usually go through Maps, where I DON'T get the pop up message, and find the address, then hit directions and Navigate.

However, if I go from my car dock application and use the Navigate button there, I don't get the popup.

I use Custom Car Home, and have now replaced the Navigation application with the Blue Compass Arrow on there with the Navigation Shortcut that looks like a GPS unit that came with Car Dock V2 (then I uninstalled Car Dock V2. It still works somehow.)

Hope this helps! Oh, and my Compass app doesn't work as intended, either, I still have to hit the button to turn GPS on there, too. Dammit...
 
Open the Keyboard and Start Texting - Tasker Wiki

Has anyone gotten this to work? This would seem like a rather simple function but I'm having trouble. The logic is that when %SCREEN is off and I open the keyboard, it should turn off the keyguard and open my messaging app. Well, installed as it's listed in the wiki, it doesn't do anything when I open the keyboard if the screen is off and the keyboard is closed.

So I thought maybe the %SCREEN variable gets set to on before the keyboard open event gets set, so I figured I could key this off the %KEYG variable. If the keyguard is on and I open the keyboard, I want it to turn the keyguard off and open my messaging app. That DOES work, but it seems to ignore the keyguard part of it and it opens the messaging app when I open the keyboard regardless of whether the keyguard was on or not.

I have a state profile that goes like this:

Keyboard Out ->
Variable Set Name %KBOUTMSG To on If %KEYG ~ on
Keyguard Set Off If %KBOUTMSG ~ on
Load App App Messaging If %KBOUTMSG ~ on
Variable Clear Name %KBOUTMSG

Obviously the issue is with the "If %KEYG ~on" condition -- it seems to ignore it and it sets %KBOUTMSG to 'on' regardless of keyguard state.

Any ideas?

I haven't looked at the wiki, but I was able to get this to work by simply using

Context:
State -> Keyboard Out

Actions:
Display -> Keyguard -> Off
App -> Load App -> Messaging

No variables needed. Works when the phone is locked and screen off.

This does work when the phone is locked and the screen is off, but it also works when the phone is unlocked and the screen is on (ie. every time you open the keyboard it'll open the messaging app). I don't want that. I want it to ONLY work when the phone is locked and the screen is off. Any ideas on how to make that work?
 
Open the Keyboard and Start Texting - Tasker Wiki

Has anyone gotten this to work? This would seem like a rather simple function but I'm having trouble. The logic is that when %SCREEN is off and I open the keyboard, it should turn off the keyguard and open my messaging app. Well, installed as it's listed in the wiki, it doesn't do anything when I open the keyboard if the screen is off and the keyboard is closed.

So I thought maybe the %SCREEN variable gets set to on before the keyboard open event gets set, so I figured I could key this off the %KEYG variable. If the keyguard is on and I open the keyboard, I want it to turn the keyguard off and open my messaging app. That DOES work, but it seems to ignore the keyguard part of it and it opens the messaging app when I open the keyboard regardless of whether the keyguard was on or not.

I have a state profile that goes like this:

Keyboard Out ->
Variable Set Name %KBOUTMSG To on If %KEYG ~ on
Keyguard Set Off If %KBOUTMSG ~ on
Load App App Messaging If %KBOUTMSG ~ on
Variable Clear Name %KBOUTMSG

Obviously the issue is with the "If %KEYG ~on" condition -- it seems to ignore it and it sets %KBOUTMSG to 'on' regardless of keyguard state.

Any ideas?

I haven't looked at the wiki, but I was able to get this to work by simply using

Context:
State -> Keyboard Out

Actions:
Display -> Keyguard -> Off
App -> Load App -> Messaging

No variables needed. Works when the phone is locked and screen off.

This does work when the phone is locked and the screen is off, but it also works when the phone is unlocked and the screen is on (ie. every time you open the keyboard it'll open the messaging app). I don't want that. I want it to ONLY work when the phone is locked and the screen is off. Any ideas on how to make that work?

Add a context where the state of the screen is off.
 
I haven't looked at the wiki, but I was able to get this to work by simply using

Context:
State -> Keyboard Out

Actions:
Display -> Keyguard -> Off
App -> Load App -> Messaging

No variables needed. Works when the phone is locked and screen off.

This does work when the phone is locked and the screen is off, but it also works when the phone is unlocked and the screen is on (ie. every time you open the keyboard it'll open the messaging app). I don't want that. I want it to ONLY work when the phone is locked and the screen is off. Any ideas on how to make that work?

Add a context where the state of the screen is off.

Yep... this works for me.
 
Here are two context/tasks that turn on my wifi when I am in range of my home router and turn off my wifi when I leave the range of the wifi I am connected to (so it also works away from home like when I leave a Starbucks)

Context 1
Wifi Near
SSID (put in the name of your router that shows up when you are connected)
Toggle Wifi (checked)

Task 1
Wifi
Set On

Context 2
Wifi Connected
Invert (checked)

Task 2
Wifi
Set Off

I have the wifi check interval at 600 (10 minutes) which I hope will not be too much of a drain on the battery.

I run wifi whenever I am home because it seems to use much less power than the 3G connection I can get.
 
Here are two context/tasks that turn on my wifi when I am in range of my home router and turn off my wifi when I leave the range of the wifi I am connected to (so it also works away from home like when I leave a Starbucks)
I must be missing something here. Android does this by default. My droid is set up to use wi-fi at home and at work, everywhere else it uses 3g. It switches automatically when I'm in range of the networks. I suspect you might be doing this because you don't want the w-fi service running all the time? I let wi-fi, bluetooth, gps, (all services) run 24/7. If they're not needed by an app, they don't use any battery. Why all the effort to duplicate what Android does just fine on it's own?
 
I must be missing something here. Android does this by default. My droid is set up to use wi-fi at home and at work, everywhere else it uses 3g. It switches automatically when I'm in range of the networks. I suspect you might be doing this because you don't want the w-fi service running all the time? I let wi-fi, bluetooth, gps, (all services) run 24/7. If they're not needed by an app, they don't use any battery. Why all the effort to duplicate what Android does just fine on it's own?

And how does Android know when you are home to reconnect to the memorized router SSID? Wifi is powered and searching which is why I want to power it off when I am away from home. I have 10 IMAP folders running IDLE push so I need to conserve my battery when I can to make it through the day.

I revised my method since it was toggling the wifi on every time I unlock the screen even though I was setting a 10 minute cooldown.

The following profiles check every 15 minutes and connect me to my home router if it is in range. It will also disable wifi whenever I disconnect from my current connection whether it be at home or at a Starbucks.


Profile Home Wifi
Context
Wifi Near
SSID: myroutername
toggle wifi checked
Task(s)
Wifi On

Profile Wifi Connected
Context
Wifi Connected
Task
Profile Status "Wifi Disconnect" on

Profile Wifi Disconnect
Context
Wifi Connected invert
Task
Wifi off
Profile Status "Wifi Disconnect" off

Profile Home Wifi Checker
Context Time every 15 minutes
Task Profile Status "Home Wifi" On
Task Wait 30 seconds
Task Profile Status "Home Wifi" Off
 
I loaded the Navy Bells profile from the tasker wiki, but I want it to mute Listen when the bells chime. I have Listen start when I plug in headphones and set a variable %LST to 1. I tried using the android media pause and pause toggle to trigger when the bells program triggers but only if %LST is set to 1. That did not work.

Anyone have an idea on what I can do?
 
So I just bought tasker today and have been messing around with it. Made a little task that basically gets the weather XML code from yahoo.weather and parses out the condition code. IE: 30 = Partly Cloudy. I then have tasker assign a different wallpaper depending on the condition. I am going to mess around with it some more but as it stands now it's going to be a storage hog considering yahoo weather has 48 different weather codes and I don't want to use a wallpaper for every different one.

I know tasker has IF statements but do you know if you can do an IF/ELSE statement? Therefore i could setup wallpapers for the standard condition like Sunny, Partyl Sunny, Night, ETC and then have it default to a general one if they don't match.

This would be awesome. But it would be better if you also create a profile that speaks the current conditions and the forecast for the next two days out loud.. I would do it my self if I had the xml experience but I'm a hardware guy not software.
 
Add a context where the state of the screen is off.

Thanks Mike, this worked!

EDIT: Maybe I was a bit quick to declare it working. It does seem to work now, but it's not consistent.

After a phone restart:
Screen is off, keyboard is closed.
I open the keyboard and the keyguard is off and messaging app is open. Perfect.

Any subsequent attempt at this:
Screen is off, keyboard is closed.
I open the keyboard and the keyguard is ON. When I unlock it, the messaging app is open.

It seems like Tasker still recognizes the keyboard is open and screen is off, and it does open the messaging app, however it doesn't disable the keyguard. Any idea on why that is?

EDIT #2: Ran into another issue, also with the keyguard behavior not being consistent.

I have a very simple profile set that says when the phone is plugged in, turn the keyguard off, with the exit task of turning the keyguard on. I have it plugged in right now and the keyguard stays on. The notification pane even says that 'keyguard off while plugged in' is the active profile, however if I leave the phone sit until the screen goes off and hit the lock button to turn on the screen, the keyguard is on. The frustrating part about this is I can try this over and over without making any changes to the phone, and some of the time the keyguard will be on, while other times it will be off.
 
Last edited:
Great thread - I've been lurking for a while and programmed a lot of these with great success.

I do have one question - I set these scripts up: Lock your phone and locate it by SMS and sound - Tasker Wiki and added a Lock action at the end of the Task, so it would set the keypad pattern, then lock it.

Is there a way to have it deactivate the keyboard pattern upon unlocking, but only for the unlock immediately after that profile runs? So basically if I lose my phone, I'll activate the script and it'll lock. When I recover it, upon unlocking the phone the keyboard pattern should deactivate.

Also a separate but sort-of related question - since I ran the above script, I can't deactivate the keyboard puzzle through MENU > Settings > Security anymore. I can see the green check next to Require Pattern, but the box is grayed out and I can't click it. How do I deactivate it?

Thanks for the help.
 
Last edited:
Zeroforum,
At the end of your script set a variable %KEYGUARD to 1

Start a new profile
Context - Display - Screen unlocked
Task - Display - keyguard off - if %KEYGUARD matches 1
Task - Variable - Set Variable - %KEYGUARD to 0
 
Back
Top