yashsingh1/xdaforums huggingface dataset:
[Nexus One Themes and Apps] PONKiE:
Hello guys,

I hope I came to the right place for an answer.

I made a profile to transfer my phone screen to my pc (app: MyMobiler) and then turn of the phone screen (app: Screen Standby#).

I use a Zenis dock at work where I place my phone to be charged daily. As soon as I put my phone in the dock my external monitor profile kicks in:

State: Power USB

Time: From 8:15 till 18:00

Date: Weekdays

--->

Wait 3 seconds

Show scene: JB (used to launch 'MyMobiler')

Wait 1 second

Stop (if %POPUP ~ 1)

Show scene: JB2 (used to launch 'Screen Standby#')

---------------------------

Scene JB:

I made attached image 'ICSJB.png' to base my scene on in pixlr online.

I overlayed text fields as seen in image 'JB (1).jpg".

Mind my phone language is in Dutch.

"Annuleren" means "Cancel"... "Ok"... well.... you know.

When I press "Cancel" it destroys the scene 'JB' and puts out a variable '%POPUP = 1'.

The running profile catches the %POPUP ~ 1 variable and prevents the second scene from popping up.

If I press 'OK' the JB2 scene pops up and I can go on and use it to launch 'Screen Stanby#'

I'll attach a video to show it in action.

Now, my question... In my first JB scene I've added the following commands to be performed after I press 'OK':

Launch app: MyMobiler

Input: Back

Although it works, I don't like the way it looks... So I was wondering if anyone knows of a wasy to launch an app without losing focus on the current screen I might be in? I don't think it's possible, but it never hurts to ask. Even if it's not, no worries. I hope someone will find use in my post.

Thanks for your time

http://youtu.be/zui3SDBpPLM

:highfive:

translation for scene pictures:

Verbonden met PC = Connected to PC

Scherm weergeven op externe monitor = Show screen on external monitor

Annuleren = Cancel

Ok = Ok
[Nexus One Themes and Apps] misslovanu:
I've searched far and wide in modifying files for Tasker. I want to run a profile that capitalizes the first letter of each word on my mp3's. I'm assuming I need to choose file modified with doing this so the task can run?

Can someone steer me in the right direction?
[Nexus One Themes and Apps] phanmo:
Although Tasker can do anything, including saving kittens stuck in trees, I really think you'd be better off doing that on a pc; there are thousands of free programs to do it, on any operating system.
[Nexus One Themes and Apps] settu_kliwon:
Problem solved

Problem solved, I remove event Display off and add State -> Variable Value ~ off. When screen is Off, data will also Off, and when Screen is On, data will revert to On.
[Nexus One Themes and Apps] SneurFleur:
I get it to do everything I want to except add the picture in the mail.

I have been searching for different options from this one but I wonder, can it have something to do with that I don´t have an sdcard?

For me the location is "/Internal storage/DCIM/Tasker/%PHOTONUMBER.jpg".

Could that be the problem?
[Nexus One Themes and Apps] Utini:
Attention: The script will not work with unlock pattern.. only PIN LOCK is supported :/ too bad !
[Nexus One Themes and Apps] The-Droidster:
Does Variable Set automatically create a variable while setting its value or is there a need to specifically initialize it using Variable Add?

Thanx! :)
[Nexus One Themes and Apps] sabret00the:
Yes it does. Variable Add is more used for mathematical purposes.
[Nexus One Themes and Apps] Renecek:
Hello, how can I block private numbers? Thank you
[Nexus One Themes and Apps] christyan78:
Can somebody post the script here so i can download it?I'm trying to get the email with the picture atached send to me,but it seems i cannot get it to work.I have the script downloaded from tasker wiki,but I don't know exactly how to use it or if i need to edit something.Thanks in advance.
[Nexus One Themes and Apps] christyan78:
Can you please post the script you're running for this?Thanks.
[Nexus One Themes and Apps] avenger79:
Hoping someone could help with this, I saw this question earlier on but couldnt find an answer

I saw that you can get tasker to turn on wifi when it sees a wireless home network, can you get bluetooth to turn on when it finds a bluetooth device? As i would like it to automactically connect to my parrot in my car?

Many thanks
[Nexus One Themes and Apps] sabret00the:
Bluetooth needs to be on to find Bluetooth. Are you saying you want it to check every so often?
[Nexus One Themes and Apps] avenger79:
Yeah that would be good, although I'm still having problems with the basic setups yet as I'm doing the wireless on withing a certain cell tower all looks good but doesn't come on???
[Nexus One Themes and Apps] M3ntalPurg3:
Does this script still work? I am just getting aquainted with Tasker and want to know if this has been broken in new releases of Android yet.

I am currently running Wild For the Night CM 10.1 by Dastin on Epic Touch 4G
[Nexus One Themes and Apps] phanmo:
Just go here : http://xdaforums.com/showthread.php?t=1620255

Flash the zip and you can make online nandroids through the Tasker Run Shell action or the Secure Settings plugin run script action.

The first post in the thread explains everything.
[Nexus One Themes and Apps] elfaure:
If GPS Off_Kill Nav and Restart Nav (13)

A1: If [ %GPS ~ Off ]

A2: Kill App [ App:Navigation Use Root:eek:ff ]

A3: Wait [ MS:500 Seconds:0 Minutes:0 Hours:0 Days:0 ]

A4: Load App [ App:Navigation Data: Exclude From Recent Apps:eek:ff ]

A5: Wait [ MS:750 Seconds:0 Minutes:0 Hours:0 Days:0 ]

A6: Load App [ App:Navigation Data: Exclude From Recent Apps:eek:ff ]

A7: End If

This is my fix for using Tasker to Auto-On/Off GPS with (Google Standalone) Navigation. The problem is that Nav immediately looks for GPS on when launched, and Tasker with Secure Settings can't keep up. Here is a fix for that with some stop starts and delay fiddling. Why did I have to restart the app twice I can't tell you but it doesn't work just restarting it once, that's why.
[Nexus One Themes and Apps] mefistofelis:
Flash latest whatsapp message:

Just to share one of my setups, use it to isolate and Flash the latest whatsapp message:

Make a profile - notification received- and choose the app whatsapp.

Then create s task:

1. Run shell and on command enter the FOLLOWING : conv=`/system/xbin/sqlite3 /data/data/com.whatsapp/databases/msgstore.db "SELECT key_remote_jid FROM messages WHERE key_from_me='0' ORDER BY _id DESC LIMIT 1;"`; echo -e `/system/xbin/sqlite3 /data/data/com.whatsapp/databases/msgstore.db "SELECT key_from_me,data,media_mime_type FROM messages WHERE key_remote_jid='$conv' ORDER BY _id DESC LIMIT 1;"` | sed -e 's/0|/\nMe: /g' -e 's/1|/\nContact:/g' -e 's/|//g' | tac;

Then in store output in enter %Whatsapp

2. Variable split - in name of variable enter %Whatsapp and as splitter enter ":" without the quotes

3. And then you can flash the variable %Whatsapp2 to see if it worked.

You must enable accessibility service for tasker in order for it to work.

I use this profile to hear my messages when I drive, that it's when my auto bt is connected. moreover it's very practical to get every message flashed if you are doing something else instead of having this annoying pop-up. If you find more creative uses please share!

Enjoy
[Nexus One Themes and Apps] vibecatalin:
Hello I'm trying to set up a profile to speak caller's name 2 times on an interval of 3 seconds and lower the ringtone when it speaks. Everything is working fine. BUT I have one major problem, if I answer when the voice is saying the callers name , after the call ends the ringtone volume remains lowered, I've tried to setup an PhoneOffHook event to raise the ringtone, or PhoneIdle but is not working, I'm posting here the screenshots of the profiles. I would like some help. Thank you!

P.S. on the first task there is #9 where i've set it to stop the current task.
[Nexus One Themes and Apps] rjyoung00:
Email GPS Location

I'm fairly new to Tasker, but have been able to figure most of it out. However, I cannot figure out how to get Tasker to include GPS coordinates, address, or similar in an email when taking a picture for failed attempts at the passcode. I've got the email & picture part figured out thanks to this thread, but I would like to include GPS coordinates as well. Anyone know how to accomplish this? Any assistance would be greatly appreciated.

EDIT:

OK. So I've been playing with tasker a good chunk of the day trying to get this figured out & I believe I've got it, so I'm posting my profile below for anyone who may want to use it.

Using Tasker w/ Secure Settings, SL4A & Python Installed. I started with the post a few pages back for the initial setup.

My profile now looks like this and works flawlessly:

Set Profile:

Add new profile -> name it whatever you want -> State -> Plugin -> Secure Settings -> Configuration: Edit -> Failed Login Attempts -> type number of attempts you want (remember to tick Device admin Enabled) -> Save -> Done

Set Tasks:

New Task -> Whatever you want to call it

Click + -> Plugin -> Secure Settings -> Configuration: Edit -> GPS -> ON

Click + -> Misc -> Get Location -> Source -> GPS, Timeout ->60 sec (so it don't drain battery)

Click + -> Net -> Mobile data -> On

Click + -> Net -> Wifi -> On

Click + -> Task -> Wait -> 2 seconds

Click + -> Variable -> Variable set -> Name: %PHOTONUMBER ->To: 1

Click + -> Media -> Take Photo -> Camera: Front -> Filename: %PHOTONUMBER

Click + -> Variable -> Variable set -> Name: %EMAIL_USER -> To: your Gmail address

Click + -> Variable -> Variable set -> Name: %EMAIL_PSWD -> To: your Gmail password

Click + -> Variable -> Variable set -> Name: %EMAIL_TO -> To: email address you want to send to

*OPTIONAL* Click + -> Variable -> Variable set -> Name: %EMAIL_SUBJECT -> whatever you want to set it as

Click + -> Variable -> Variable set -> Name: %EMAIL_ATTACH -> To: /storage/emulated/0/DCIM/Tasker/%PHOTONUMBER.jpg - ensure this is the correct path for where your photos are stored, I am on 4.2.2 JB, so if you are on 4.1.* or below this will most likely be different for you.

Click + -> Variable -> Variable set -> Name: %EMAIL_BODY -> This can be any message you choose. I have it as: "The GPS cordinates of my phone as of the time of this email are : %LOC. If no GPS Signal is available, the location as determined by the closest cell towers is: %LOCN. The current battery level is: %BATT"

Click + -> Script -> Run SL4A Script -> Name: sendemailA.py -> Pass Variables: %EMAIL_USER,%EMAIL_PSWD,%EMAIL_TO,%EMAIL_SUBJECT,%EMAIL_ATTACH,%EMAIL_BODY

Click + -> Task -> Wait -> 10 seconds

Click + -> Variable -> Variable add -> Name: %PHOTONUMBER -> Value: 1

Click + -> Plugin -> Secure Settings -> Configuration: Edit -> GPS -> OFF

Click + -> Net -> Mobi data -> OFF

Click + -> Net -> Wifi -> OFF
[Nexus One Themes and Apps] dazzlingdaz:
OK - so here is my take on the whole GPS not switching on fast enough before the app starts.

You will need :

Tasker

Secure Settings

Helper for Secure Settings

App that uses GPS (I will use Sygic for this explanation)

A. Create Starter

Go into tasker

Select Tasks

Create task "Sygic Start"

1. Secure Settings > Edit > Helper > GPS > On

2. Alert > Popup > Text = Waiting For GPS

3. Task > Wait > 100ms

4. Task > If > %GPS ~ On

5. App > Load App > Sygic

6. Task > Stop > task = Sygic Start

7. End If

8. Task > Goto > step 3

B. Create Stopper

Create task "Sygic Stop"

1. Secure Settings > Edit > Helper > GPS > Off

C. Enable Stopper

Switch to Profiles

Create new > Application > Sygic

Enter task > Sygic Off

Hold down enter task and select "Add Exit Task"

Select Sygic Off again

Hold down Sygic Off "entry" task and "unlink task"

This will leave you with a Sygic profile with only an exit task

D. Add shortcut to home screen

Hold down on home screen

Select Shortcut

Tasker Shortcut

Select "Sygic Start"

Hope this is of use to someone - I was going round in circles trying to figure out the best way of achieving this! And if anyone has a better way, please let me know!
[Nexus One Themes and Apps] smohanv:
Minor corrections,

You will need :

Tasker

Secure Settings

Helper for Secure Settings

App that uses GPS (I will use Sygic for this explanation)

A. Create Starter

Go into tasker

Select Tasks

Create task "Sygic Start"

1. Plugin > Secure Settings > Edit > Helper > GPS > On

2. Alert > Popup > Text = Waiting For GPS

3. Task > Wait > 100ms

4. Task > If > %GPS ~ On

5. App > Load App > Sygic

6. Task > Stop > task = Sygic Start

7. Task > End If

8. Task > Goto > step 3

B. Create Stopper

Create task "Sygic Stop"

1. Plugin > Secure Settings > Edit > Helper > GPS > Off

Switch to Profiles

Create new > Application > Sygic

Enter task > Sygic Start

Hold down enter task and select "Add Exit Task"

Select Sygic Stop

D. Add shortcut to home screen

Hold down on home screen

Select Shortcut

Tasker Shortcut

Select "Sygic Start"

Now this works flawlessly. Thanks for your thoughts.
[Nexus One Themes and Apps] dazzlingdaz:
I purposely only added an exit task, since the shortcut already starts the app and there is no need to keep re-firing the app, since the entry task fires each time the app starts. But tasker insists on creating an entry task when you define a new task. So what I do is create a task, which creates the entry task. Add the exit task, and then remove the entry task leaving a task with ONLY an exit task.
[Nexus One Themes and Apps] smohanv:
Hi

for me, your settings didn't put my GPS to off mode. Also I added another secure settings to switch Mobile Data on and Off. For phones like Nexus 4, Data connection eats more battery. I am also creating another profile to switch data on when opening apps requiring data and switch off mobile data once close the app. Please post here if you have any suggestions.

Thanks for your posting.
[Nexus One Themes and Apps] Salvador24:
Sorry if this has been answered before - couldn't find an answer when searching :(

I've just run through the steps above to just get it to save a photo (I'm not bothered about emailing the photo atm) and it runs through fine when performing the task manually within Tasker, but nothing happens when the pattern lock is entered incorrectly.

I haven't got a rooted phone so haven't been able to install the tasker helper - is the helper essential for the failed login option to work?

Apologies if that's a stupid question, haven't been able to find an answer anywhere!
[Nexus One Themes and Apps] Ja_som:
Hi, can you guys help me?

I try to make profile/task which run e.g. "AppMgr.app" and "AfterStart.app" after i install some application or app is installed from Google Play...

And other task... When is free wifi near, it connect automaticly...

Thank You...

Sorry for my english.
[Nexus One Themes and Apps] ewingr:
How deactivate Tasker?

Since upgrading to the more recent version of Tasker with the complte UI change, I see no way to 'Turn off' Tasker. You used to be able to turn it off.

Anyone know if you can do that now, and if so, how?
[Nexus One Themes and Apps] :
Press and hold the tasker icon in top left
[Nexus One Themes and Apps] ewingr:
Thanks so muc;h. I presumed there must be a way.

Not overly intuitive, but easy enough once a person knows :)
[Nexus One Themes and Apps] greatlyusa:
navigon or google navigation with tasker and voice

Hello,

hope somebody can help my (...bad english :( )

i use tasker to control my phone by voice but i have a problem with navigon and/or google navigation.

if i start autovoice recognize so i can speak anything and it´s also possible to transfere it in googel search and this is working fine.

my problem ist if i search a address for routing so i can do it but i have to klick on the map to start the google navigation or if i want navigon.

how can you do it automatically so my idea was to search in google and after that get the coordinates or the address and transfere it to navigon or google navi. and let´s start the routing.

is it possible because i can´t find how to to by google search

many thanks

Jack

EDIT:

To navigate with AutoVoice:

Condition:

AutoVoice recognized with filter "Navigate"

Task:

Start intent with the values:

- action: android.intent.action.VIEW

- data: google.navigation:q=%avcommnofilter

- target: Activity

Hope this helps. :)
[Nexus One Themes and Apps] JOKERz:
Not work on me
[Nexus One Themes and Apps] bassilap:
I use tasker to automate saving my snapchat messages.

Profile

Application --> Snapchat

Tasks

1) Run Shell > Command > cp /data/data/com.snapchat.android/cache/received_image_snaps/* /sdcard/DCIM/Snapchat/ > use root enabled

2) List Files > Dir > /sdcard/DCIM/Snapchat > Match > *.nomedia > Variable > %Filelist

3) For > Variable > %FilelistX > Items > %Filelist()

4) Move > From > %FilelistX > To > %FilelistX.jpg

5) End For
[Nexus One Themes and Apps] greyhd:
I was wondering if it's possible to wake up your device by swiping across the screen? Instead of using the power button to turn the screen on I would prefer to swipe across the screen to wake it up.
[Nexus One Themes and Apps] Gage_Hero:
Alarm task and profile

For people wanting a decent alarm.... here ya go.... you may need to change the media file and time but here is the tasks and profile if ya like... remember the thanks button.....

---------- Post added at 12:55 AM ---------- Previous post was at 12:34 AM ----------

Okay here are some Canadian weather tasks / profile that works.... you need to get a key (for free) from http://www.wunderground.com and maybe change your location (postalcode) but they work......may want to change the time on the profile too as i get up early lol. If you use it for US take the fcttext_metric metric part off...... I use notepad++ to edit the files, can be done on phone if ya like......line 77 on task....location is on line 15.... can use zip code or postal code....

For profile....line 36 for location....line 98 - 208 for metric.....36 for key and 193

of course you can just search for metric too.....

dont forget the thanks button......
[Nexus One Themes and Apps] ewingr:
Task no longer working

I have a task where if I set teh variable %ANNOUNCE to Yes, it announces the time every 30 minutes. It used to work fine. Haven't used in a long time, I'm certainly on a different ROM, if not phone, and now it does not work. I don't understand why. Here are teh details on how it is set up ( forget the terminology / names of the column that starts the task):

To start the task:

Variable Value %ANNOUNCE = Yes

Every 30 minutes (I actually thought this might belong on the task side of things, but don't see how to do that...and it was here upon restore of the tasks)

Task

Variable Split; Name %TIME

Variable Subtract; Name %TIME1; iF %TIME1 > 12

Say: It's %TIME1 %TIME2 OH CLOCK

Any suggestions on how to get this to function?
[Nexus One Themes and Apps] girron:
Does this show on their end that you saved the pic
[Nexus One Themes and Apps] bassilap:
Nope. But this has actually stopped working for me. I think with the latest updates they've made changes.
[Nexus One Themes and Apps] violet.tester128:
I have many setups, although all of them may not seem helpful for you.

1)a talking caller id - phone is ringing, wait 2 secs, speak caller name. As soon as call is answered or cancelled, it stops.

2) night mode - at midnight, check if phone has been used in last 15 mins. If not, switch off WiFi, data.

3) college mode- if it is a weekday and I'm near my college ( cell near), change to silent mode (9-4pm)

4) camera - increase display timeout on camera launch. Revert on exit.

5) maps- if maps is inactive for 30 secs, switch off GPS.

6) gallery launch-auto rotate on.

7) games- change CPU governor to performance.

8 ) dialer launch (daytime) - auto brightness on.

9) headphones plugged-launch music player.

10) when phone is silent and i can't find it, i send a secret message to it. On receiving the message - media volume=high, play song.
[Nexus One Themes and Apps] ryanw5489:
I have a problem not sure if this is the right place to ask but Can't seem to get this to work. I wasn't sure if I wanted to buy the Tasker app so I tried the trail version and download link for 4.0+ which I am running 4.2.2. And It would not open it just went to a screen with Tasker background and the forced stopped! So I download the link for 1.6,2.0 and 3.0 + and got it to work. My problem is I eventually within a day of using Tasker I purchased Tasker directly from the play store and opened app after I installed and got the force closing again! What can I do..?
[Nexus One Themes and Apps] Mugga:
Hey guys,

is it possible to launch an application when a specific bluetooth device is connected?
[Nexus One Themes and Apps] ryanw5489:
I can't seem to get this to work?
[Nexus One Themes and Apps] ryanw5489:
OK I got part of the task to work. I got it to turn on wifi gps and moble data. But I can't seem to get it to email please help this seems pretty cool!
[Nexus One Themes and Apps] vibecatalin:
I've bought from the PlayStore Enhanced Caller ID and SMS
[Nexus One Themes and Apps] Prodiggy:
Ive looked everywhere around tasker I couldnt find the feature..

Could someone tell me where can I find the context/trigger by killing an app?

I want wave control pro killed immediately when I kill power amp..

you can just tell me how to set up the above.. rgds..
[Nexus One Themes and Apps] ryanw5489:
[MENTION=5541555]Prodiggy[/MENTION]

If you are just trying to kill a app. You have to go to the tab that says app then choose the app you want to kill then you will have a few options. It will ask to use root. I could not get it to kill without root.
[Nexus One Themes and Apps] Prodiggy:
I want to kill an app immediately when I kill another app..

I know there is a kill action where you can kill when some event occurs BUT the trouble is about the triggering the kill action when you kill an app.. "THE KILL CONTEXT/TRIGGER"
[Nexus One Themes and Apps] ryanw5489:
Could anyone help me PLESE? I got everything to work but the email part, I get a notification saying that the email login failed? Any ideas?

---------- Post added at 05:45 PM ---------- Previous post was at 05:33 PM ----------

Edit: I'm sorry it said email failed..?

Please help
[Nexus One Themes and Apps] Gator Brah:
Anyone know a way of keeping an active profile from populating into the active profile variable (%PACTIVE)? Im building a active profile widget but dont want all of my profiles to show up in it. Im sure i could modify the variables but for the sake of simplicity....
[Nexus One Themes and Apps] funCrash93:
can someone help here.?

wanna make a task to Clear Recent Apps.? To access that /*Clear Button*/ in the Recent Apps dialog.

thanks.)
[Nexus One Themes and Apps] jiijima:
Hmm, have you tried selecting your app that you want as your trigger and select invert? I think that will make it so when ever that app is not running it will trigger.
[Nexus One Themes and Apps] GHOSTIVVI:
Can someone help me create a tasker profile that will do a nandroid backup via TWRP nightly when plugged in to charger and upload the backup to dropbox?
[Nexus One Themes and Apps] Mekanikz:
Is it possible to make the following sequence?

- Turn WiFi on

- If connected to network, WiFi stays on. If not connected to network WiFi turns off.

- Mobile Data turns on if Wifi off

If so can someone walk me through it?
[Nexus One Themes and Apps] ryanw5489:
Try this it works perfect for me. It turns my wifi on every so often 15 min I believe. Checks for a connection then if no connection it turns off if connection it leaves it on. Also turns it off if no connection. So try this.

Profile: Wifi Checker (13)

Time: Every 15m

Enter: Wifi Checker (14)

A1: WiFi [ Set:eek:n ] If [ %WIFI ~ off ]

A2: Wait [ MS:0 Seconds:30 Minutes:0 Hours:0 Days:0 ] If [ %WIFII !~ *CONECTION* ]

A3: WiFi [ Set:eek:ff ] If [ %WIFII !~ *CONNECTION* ]

You could add this for the moble data.

Moble data on if wifi don't = *CONNECTION *
[Nexus One Themes and Apps] Mekanikz:
Thanks bro. Are you sure the variable Wifi don't is correct? Also are *connected* and *connection* the exact same? And does it matter whether or not it's in caps?
[Nexus One Themes and Apps] ryanw5489:
I'm sure you could change the time part to something like display on!