TASKER profiles 2013 - Android General

Alright, lets show off some tasker profiles! Im always interested in ideas other have cooked up. I'll show you guys some stuff i came up with.
Hit thanks if you like it!
Ill start populating the post. I realize that tasker profiles are a royal pain in the butt to read, so im going to create some colapsable projects.
Ill also color code certain things and ill try to stay consistent..Ill try to add a project every day. So the first one will be my car project.
Tips:
To avoid confusion with all the collapse-ables, close the ones youre done reading.
Have Secure Settings installed, and swipe to the helper section and install helper
HAve autovoice, you gotta start using this at some point..its pretty awesome.
%PACTIVE is a variable that means "profiles active"
you can long press a profile and press the settings button on the top right and if you scroll down you can uncheck the "display in notification" if you dont want your tasker notification to be over-populated
Projects will be Blue
Profiles will be orange
Enter tasks will be green.
Exit Tasks will be red.
If statements will start and end with pink.....end if
CAR PROJECT
This project has a couple of tasks that do stuff that are related to the car. hence the name.. It does the following:
1: When you get in the car, the screen will stay on, and if it does somehow close, the keyguard will be disabled. This prevents too much fiddling with the phone...This is turned off when you get out.
2: Alters volume levels and brightness when getting in and out of the car.
3: Marks down what time you got out of the car, starts counting how long youve been out of your car, and takes the GPS coordinates of your location when you get out of the car.
The purpose of this is so youll always know when you got out of the car, how long you have been parked (in case of parking meters, parking hours etc..) and allows you to navigate to your car so youll never lose it after parking in some obscure location.
This is done with minimalistic text to display that info, and upon pressing it, will activate the task to navigate back to your car. Ill attach a screen shot.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
4: When someone calls, my phone asks me if i want to answer it, instead of ringing, upon yes, it does, upon no it doesnt.
5: reads me my text, I have nothing to hide, but you could easily implement the yes/no prompt if you want it read to you or not.
6: turns wifi on, gps on, and you can add a bluetooth on if you want.
HERE ARE THE PROFILES:
Profile: Car Mode
Context:
State -> Docked any
State -> Headset plugged in
But really this could be anything.
Tasks:
Enter Task:
Load App -> Car Home (http://blog.brianmoses.net/2012/10/manually-installing-googles-car-home-app.html)
Secure Settings -> GPS Enabled
Wifi -> Off
System Volume -> 7
Media Volume -> 15
Auto Brightness -> on
Notification Volume -> 7
Secure Settings -> Keep Display On
Secure Settings -> Keyguard Disabled
Variable Set -> %SEARCHWIFI ~ 0 (Youll see why later)
Exit Task:
Variable Set %HOURSINCE ~ 0
Variable Set %MINSINCE ~ 0
IF - %TIME > 12.00 {
MINIMALISTIC TEXT -> (variable) ampm = PM
Variable Set -> %PARKEDTIME to (%TIME-12.00)
}
else if - %TIME < 12.00 {
MINIMALISTIC TEXT -> ampm = AM
%PARKEDTIME to %TIME
}
end if
MINIMALISTIC TEXT parkedtime = %PARKEDTIME
Secure Settings -> Keyguard Enabled
Secure Settings -> Lock Device
Secure Settings -> Keep display on - never
Kill App -> Car Home
Get Location -> GPS, timeout -> 100seconds
Variable Set -> %PARKEDAT ~ %LOC
Secure Settings -> GPS Disabled
Variable Set %SEARCHWIFI ~ 1
Profile: Update Time Since (Update what minimalistic text will show)
This counts how long youve been parked for and assigned an HOUR variable and a MINUTE variable to minimalistic text.
Since the "repeat" thing in tasker has a minimum of 2 minutes, i just made two of the same tasks and made the other wait a minute before starting.
Conext:
Every 2 minutes
Tasks: Timesince1
If - %TIMESINCE = 60 {
Variable Set -> %HOURSINCE to %HOURSINCE + 1 (do maths)
Variable Set -> %MINSINCE to 0
MINIMALISTIC TEXT - minsince = %MINSINCE
MINIMALISTIC TEXT - hoursince = %HOURSINCE
}
end if
if - %TIMESINCE < 60 {
Variable Set -> %MINSINCE to (%MINSINCE + 1) (do maths)
MINIMALISTIC TEXT -> minsince = %MINSINCE
MINIMALISTIC TEXT -> hoursince = %HOURSINCE
}
end if
Timesince2
wait -> 1 minute
If - %TIMESINCE = 60 {
Variable Set -> %HOURSINCE to %HOURSINCE + 1 (do maths)
Variable Set -> %MINSINCE to 0
MINIMALISTIC TEXT - minsince = %MINSINCE
MINIMALISTIC TEXT - hoursince = %HOURSINCE
}
end if
if - %TIMESINCE < 60 {
Variable Set -> %MINSINCE to (%MINSINCE + 1) (do maths)
MINIMALISTIC TEXT -> minsince = %MINSINCE
MINIMALISTIC TEXT -> hoursince = %HOURSINCE
}
end if
Profile: Read Text
context:
Received Text any
Variable Value -> %PACTIVE ~ *Car Mode*
Task: Read SMS
Silent mode -> on
Say -> %SMSRN says. %SMSRB
silent mode-> off
Profile: Car Call (Asks me if i want to answer the call or not, then the response will be passed off to another profile called CAR RESPONSE)
context:
Call incoming
Variable Value - %PACTIVE ~ *Car Mode*
Enter Task:
Media Control -> Pause (simulate media button)
Ringer Volume -> 0
Say -> Should i answer this call?
Auto voice recognize (Triggers autovoice to listen to you)
Exit Task:
Media Control Play
Profile: Call Response
Do the same for a "NO response" except the command in autovoice will be "no" and the task will end the call.
context:
AutoVoice recognized -> check event behavior, command = yes
Variable Value -> %PACTIVE ~ *Car Mode*
Task: Take Call
Take Call...lol
THIS ONE IS A TASK
Make this task so you can set your minimalistic texts tap behavior to open a tasker shortcut and then select this one.
IT will allow you to navigate to your car when you tap the widget, you may need to change the wait task if it takes longer for your phone to turn on GPS (not get a lock)
Create a task:
Secure Settings GPS Enabled
Wait 3 seconds
Open Map (this is a task under the APP task) Mode-> Navigate To, Address %PARKEDAT
TO SET UP MINIMALISTIC TEXT:
Im not going to tell you what the font should be, what size or what color the font should be etc etc, ill just tell you how to add the variables to minimalistic text
Tap and hold on your homescreen and add a 2x2 Widget
Delete all the premade stuff
if you swipe to the layout tab and press the "+" youll get a bunch of options to add stuff.
Swipe over to the MISC tab, and add a static text and a local variable. Theres a bug in Minimalistic text where if you add a bunch of local variables at once, itll make the values of them all the same..so youll have to add the things one at a time..pain in the butt i know.
so add a static text and a local variable. over and over till you have 4 local variables and 3 static texts.
have 3 rows, delete the ones you dont need by tapping the 3 dots and pressing delete row.
I have it set up like this:
----------------------------------------------------------------------------
[Static text = Parked At:]
----------------------------------------------------------------------------
[Locale Variable = parkedtime] [locale variable = ampm]
----------------------------------------------------------------------------
(optional)[static text icon = user interface-> hand pointy thingy]
----------------------------------------------------------------------------
[static text = Parked For: ]
----------------------------------------------------------------------------
[locale variable = hoursince] [static text = Hrs.] [locale variable = minsince]
----------------------------------------------------------------------------
Then swipe over to "Tap Behaviour" and check "start another activity"
press select and activity or shortcut
swipe right to the shortcut tab
select the "Find Car" task we created earlier
pick an icon for it if it asks by pressing the button on the lower right hand corner
END CAR PROJECT
WIFI PROJECT
These tasks will automate turning your wifi on and off based on locations you are at often. I.E. your house, your work, your buddies house, your girlfriends house, etc...
It works via the cell near state, however im not perfectly clear on how much battery this drains, so i took an extra precaution by having a %SEARCHWIFI variable, set to either 1, or 0, (on or off, respectively). This variable's value is easily changed in any profile, so its easy to avoid conflicting profiles, as well as saves battery by not continuously searching for cellphone towers.
What i do with this, is have a profile, Near Home for example, and when im in a new location i want to automatically connect to, i just clone it, change the name, re-search cellphone towers and voila! I have like 10 of these and it works perfectly. So ill only make a "Near Home" profile, then you can clone that.
I like to have a pattern lock when im out and about, but i dont like having one when im at a buddies house, or at my own house, so i have tasker deal with that. If you want this, first you have to set a pattern lock code. then this will take effect.
Profile: Search Wifi?
Context:
Not Wifi Connected (check invert after the wifi connected task)
Variable Value -> %PACTIVE !~ *Car Mode*
Enter Task:
Variable Set -> %SEARCHWIFI ~ 1
Exit Task:
Variable Set-> %SEARCHWIFI ~ 0
Profile: Wifi Time-Out
If you are near one of the places and you somehow disconnect, tasker will wait 20 seconds to see if youre still disconnected and if you are , turn wifi off, turn the pattern lock on, and in 10 minutes, if youre still in the area it will try to connect again. of course you can change the times to whatever you want.
Context:
Not Wifi Connected
task:
Wait 20 seconds
if - %WIFII !~ *connect*
Secure settings -> pattern lock enabled
Variable set -> %SEARCHWIFI ~ 0
Wifi -> off
end if
wait 10 minutes
Variable set -> %SEARCHWIFI ~ 1
Profile: Near Home
context:
Cell near (press scan)
state -> Variable Value -> %SEARCHWIFI ~ 1
Enter Task:
Wifi On
Secure Settings -> Pattern lock disabled
exit Task:
if - %WIFII !~ *connect* (i know this is overkill)
secure settings -> patternlock disabled
wifi off
end if
END WIFI PROJECT
REQUESTS PROJECT:
Voice commands in car to perform various responses to a received text, requested by oscar615
NOTE: autovoice recognize doesnt play well with pop-up sms windows...sometimes works, sometimes only works after you close the pop up.
oscar615 said:
Wow, your car code is almost what I was thinking about earlier today. About the only difference is when I get a text I would like it to give me 3 audible choices. 1- send a pre recorded text letting them know i am in the car. 2- Give me the option to do nothing and 3- the option to call the person who sent the text and have the phone set to speaker, and pause any music that is on. The problem is I am so new to tasker and really have no idea how to do this. I will study your code to see if I can learn what you did and maybe add the other options to it. I want it to all be voice responses and and prompts.
Do you have any idea what needs to be added to what you have created in order to get what I want?
Anyway great work. Thanks for doing this thread and posting your profiles.
Click to expand...
Click to collapse
Profile: Driving Text
context:
event -> received text any
state -> variable value - %PACTIVE ~ *car mode* (or whatever profile you have for your car)
task:
silent mode on
misc -> say -> Text received by %SMSRN. What should i do?
wait 150ms
plugin -> autovoice recognize
silent mode off
Profile: Cant talk
context:
autovoice recognized -> check event behavior -> command = can't
state -> variable value - %PACTIVE ~ *car mode*
task:
phone -> send sms -> number: %SMSRF, Message: Sorry, im driving, cant talk right now, check 'store in messaging app'
profile: call back
context: plugin -> autovoice recognized, check event behavior, command = call
state -> variable value - %PACTIVE ~ *car mode*
task:
call -> number: %SMSRF, check auto dial
With autovoice, if the command is "can't" you can say anything, and as long as "can't" is somewhere in the sentence, it will perform that action. unless you specified otherwise, but i wont get into that. If you say anything other than those, it will just close.
end oscar's request
END REQUEST PROJECT

Please kindly attach the xml files as well.
Sent from my SHV-E210S

ecoolcat said:
Please kindly attach the xml files as well.
Sent from my SHV-E210S
Click to expand...
Click to collapse
Yes please!

Tunein Radio request
SO this looked like a promising thread to ask this in, if it hasn't died already....
I would like to set a task to start tunein radio pro, then subtask different stations with commands like "tasker radio paradise", "tasker radio local 1", "tasker radio local 2", "tasker radio record"(to save the currently playing stream) "tasker radio stop record", etc.
Is it possible for tasker to take command of an app and have it do custom calls for app specific functions? I'm a newb dealing with tasker as I don't even own the app yet. However if I could confirm these types of commands work I'll bite in a heartbeat.

Coyote0420 said:
SO this looked like a promising thread to ask this in, if it hasn't died already....
I would like to set a task to start tunein radio pro, then subtask different stations with commands like "tasker radio paradise", "tasker radio local 1", "tasker radio local 2", "tasker radio record"(to save the currently playing stream) "tasker radio stop record", etc.
Is it possible for tasker to take command of an app and have it do custom calls for app specific functions? I'm a newb dealing with tasker as I don't even own the app yet. However if I could confirm these types of commands work I'll bite in a heartbeat.
Click to expand...
Click to collapse
Tasker does not control apps.

knx2 said:
Tasker does not control apps.
Click to expand...
Click to collapse
Ah.. that's disappointing. Was really hoping to have a setup where I could just tell it what station to play. I would assume the only way to do what I'd like would be to save the stream url's and have tasker open them with whatever app can play a stream directly?
As a side question, is there an app that can use the "draw over other apps" ability of android that can assume control and setup complex scripting of commands? Root would of course be a requirement but are there other limitations to android that would prevent such an app?

Coyote0420 said:
Ah.. that's disappointing. Was really hoping to have a setup where I could just tell it what station to play. I would assume the only way to do what I'd like would be to save the stream url's and have tasker open them with whatever app can play a stream directly?
As a side question, is there an app that can use the "draw over other apps" ability of android that can assume control and setup complex scripting of commands? Root would of course be a requirement but are there other limitations to android that would prevent such an app?
Click to expand...
Click to collapse
Yeah tasker does that, and it can do what you tried explaining earlier..although its a bit clunky.
You just tell tasker to do things through the input -> d-pad option while making your task. You can also emulate swipes and touches through a shell command called input. Heres the link explaining how, its quite simple..
http://www.pocketables.com/2013/07/how-to-emulate-touch-input-using-tasker-and-root.html

Although I did not understand, but thank you for sharing. :good:

Anti -Theft Profiles
Well , here are some of my Anti -Theft profiles!
There are quite afew but they all work together to make the best Anti - Theft app
SMS GPS - remotely on gps
SMS WIFI - remotely on wifi
Wifi status - Get the wifi status via sms
Battery Status - Get battery level via sms
SMS lock phone - Lock phone via sms (By enabling keyguard with specific pin)
Detect Sim Crad change - Detects if sim card is swapped and automatically sends you an SMS using the swapped number.

eBoody said:
Alright, lets show off some tasker profiles! Im always interested in ideas other have cooked up. I'll show you guys some stuff i came up with.
Hit thanks if you like it!
Ill start populating the post. I realize that tasker profiles are a royal pain in the butt to read, so im going to create some colapsable projects.
Ill also color code certain things and ill try to stay consistent..Ill try to add a project every day. So the first one will be my car project.
Tips:
To avoid confusion with all the collapse-ables, close the ones youre done reading.
Have Secure Settings installed, and swipe to the helper section and install helper
HAve autovoice, you gotta start using this at some point..its pretty awesome.
%PACTIVE is a variable that means "profiles active"
you can long press a profile and press the settings button on the top right and if you scroll down you can uncheck the "display in notification" if you dont want your tasker notification to be over-populated
Projects will be Blue
Profiles will be orange
Enter tasks will be green.
Exit Tasks will be red.
If statements will start and end with pink.....end if
CAR PROJECT
This project has a couple of tasks that do stuff that are related to the car. hence the name.. It does the following:
1: When you get in the car, the screen will stay on, and if it does somehow close, the keyguard will be disabled. This prevents too much fiddling with the phone...This is turned off when you get out.
2: Alters volume levels and brightness when getting in and out of the car.
3: Marks down what time you got out of the car, starts counting how long youve been out of your car, and takes the GPS coordinates of your location when you get out of the car.
The purpose of this is so youll always know when you got out of the car, how long you have been parked (in case of parking meters, parking hours etc..) and allows you to navigate to your car so youll never lose it after parking in some obscure location.
This is done with minimalistic text to display that info, and upon pressing it, will activate the task to navigate back to your car. Ill attach a screen shot.
4: When someone calls, my phone asks me if i want to answer it, instead of ringing, upon yes, it does, upon no it doesnt.
5: reads me my text, I have nothing to hide, but you could easily implement the yes/no prompt if you want it read to you or not.
6: turns wifi on, gps on, and you can add a bluetooth on if you want.
HERE ARE THE PROFILES:
Profile: Car Mode
Context:
State -> Docked any
State -> Headset plugged in
But really this could be anything.
Tasks:
Enter Task:
Load App -> Car Home (http://blog.brianmoses.net/2012/10/manually-installing-googles-car-home-app.html)
Secure Settings -> GPS Enabled
Wifi -> Off
System Volume -> 7
Media Volume -> 15
Auto Brightness -> on
Notification Volume -> 7
Secure Settings -> Keep Display On
Secure Settings -> Keyguard Disabled
Variable Set -> %SEARCHWIFI ~ 0 (Youll see why later)
Exit Task:
Variable Set %HOURSINCE ~ 0
Variable Set %MINSINCE ~ 0
IF - %TIME > 12.00 {
MINIMALISTIC TEXT -> (variable) ampm = PM
Variable Set -> %PARKEDTIME to (%TIME-12.00)
}
else if - %TIME < 12.00 {
MINIMALISTIC TEXT -> ampm = AM
%PARKEDTIME to %TIME
}
end if
MINIMALISTIC TEXT parkedtime = %PARKEDTIME
Secure Settings -> Keyguard Enabled
Secure Settings -> Lock Device
Secure Settings -> Keep display on - never
Kill App -> Car Home
Get Location -> GPS, timeout -> 100seconds
Variable Set -> %PARKEDAT ~ %LOC
Secure Settings -> GPS Disabled
Variable Set %SEARCHWIFI ~ 1
Profile: Update Time Since (Update what minimalistic text will show)
This counts how long youve been parked for and assigned an HOUR variable and a MINUTE variable to minimalistic text.
Since the "repeat" thing in tasker has a minimum of 2 minutes, i just made two of the same tasks and made the other wait a minute before starting.
Conext:
Every 2 minutes
Tasks: Timesince1
If - %TIMESINCE = 60 {
Variable Set -> %HOURSINCE to %HOURSINCE + 1 (do maths)
Variable Set -> %MINSINCE to 0
MINIMALISTIC TEXT - minsince = %MINSINCE
MINIMALISTIC TEXT - hoursince = %HOURSINCE
}
end if
if - %TIMESINCE < 60 {
Variable Set -> %MINSINCE to (%MINSINCE + 1) (do maths)
MINIMALISTIC TEXT -> minsince = %MINSINCE
MINIMALISTIC TEXT -> hoursince = %HOURSINCE
}
end if
Timesince2
wait -> 1 minute
If - %TIMESINCE = 60 {
Variable Set -> %HOURSINCE to %HOURSINCE + 1 (do maths)
Variable Set -> %MINSINCE to 0
MINIMALISTIC TEXT - minsince = %MINSINCE
MINIMALISTIC TEXT - hoursince = %HOURSINCE
}
end if
if - %TIMESINCE < 60 {
Variable Set -> %MINSINCE to (%MINSINCE + 1) (do maths)
MINIMALISTIC TEXT -> minsince = %MINSINCE
MINIMALISTIC TEXT -> hoursince = %HOURSINCE
}
end if
Profile: Read Text
context:
Received Text any
Variable Value -> %PACTIVE ~ *Car Mode*
Task: Read SMS
Silent mode -> on
Say -> %SMSRN says. %SMSRB
silent mode-> off
Profile: Car Call (Asks me if i want to answer the call or not, then the response will be passed off to another profile called CAR RESPONSE)
context:
Call incoming
Variable Value - %PACTIVE ~ *Car Mode*
Enter Task:
Media Control -> Pause (simulate media button)
Ringer Volume -> 0
Say -> Should i answer this call?
Auto voice recognize (Triggers autovoice to listen to you)
Exit Task:
Media Control Play
Profile: Call Response
Do the same for a "NO response" except the command in autovoice will be "no" and the task will end the call.
context:
AutoVoice recognized -> check event behavior, command = yes
Variable Value -> %PACTIVE ~ *Car Mode*
Task: Take Call
Take Call...lol
THIS ONE IS A TASK
Make this task so you can set your minimalistic texts tap behavior to open a tasker shortcut and then select this one.
IT will allow you to navigate to your car when you tap the widget, you may need to change the wait task if it takes longer for your phone to turn on GPS (not get a lock)
Create a task:
Secure Settings GPS Enabled
Wait 3 seconds
Open Map (this is a task under the APP task) Mode-> Navigate To, Address %PARKEDAT
TO SET UP MINIMALISTIC TEXT:
Im not going to tell you what the font should be, what size or what color the font should be etc etc, ill just tell you how to add the variables to minimalistic text
Tap and hold on your homescreen and add a 2x2 Widget
Delete all the premade stuff
if you swipe to the layout tab and press the "+" youll get a bunch of options to add stuff.
Swipe over to the MISC tab, and add a static text and a local variable. Theres a bug in Minimalistic text where if you add a bunch of local variables at once, itll make the values of them all the same..so youll have to add the things one at a time..pain in the butt i know.
so add a static text and a local variable. over and over till you have 4 local variables and 3 static texts.
have 3 rows, delete the ones you dont need by tapping the 3 dots and pressing delete row.
I have it set up like this:
----------------------------------------------------------------------------
[Static text = Parked At:]
----------------------------------------------------------------------------
[Locale Variable = parkedtime] [locale variable = ampm]
----------------------------------------------------------------------------
(optional)[static text icon = user interface-> hand pointy thingy]
----------------------------------------------------------------------------
[static text = Parked For: ]
----------------------------------------------------------------------------
[locale variable = hoursince] [static text = Hrs.] [locale variable = minsince]
----------------------------------------------------------------------------
Then swipe over to "Tap Behaviour" and check "start another activity"
press select and activity or shortcut
swipe right to the shortcut tab
select the "Find Car" task we created earlier
pick an icon for it if it asks by pressing the button on the lower right hand corner
END CAR PROJECT
WIFI PROJECT
These tasks will automate turning your wifi on and off based on locations you are at often. I.E. your house, your work, your buddies house, your girlfriends house, etc...
It works via the cell near state, however im not perfectly clear on how much battery this drains, so i took an extra precaution by having a %SEARCHWIFI variable, set to either 1, or 0, (on or off, respectively). This variable's value is easily changed in any profile, so its easy to avoid conflicting profiles, as well as saves battery by not continuously searching for cellphone towers.
What i do with this, is have a profile, Near Home for example, and when im in a new location i want to automatically connect to, i just clone it, change the name, re-search cellphone towers and voila! I have like 10 of these and it works perfectly. So ill only make a "Near Home" profile, then you can clone that.
I like to have a pattern lock when im out and about, but i dont like having one when im at a buddies house, or at my own house, so i have tasker deal with that. If you want this, first you have to set a pattern lock code. then this will take effect.
Profile: Search Wifi?
Context:
Not Wifi Connected (check invert after the wifi connected task)
Variable Value -> %PACTIVE !~ *Car Mode*
Enter Task:
Variable Set -> %SEARCHWIFI ~ 1
Exit Task:
Variable Set-> %SEARCHWIFI ~ 0
Profile: Wifi Time-Out
If you are near one of the places and you somehow disconnect, tasker will wait 20 seconds to see if youre still disconnected and if you are , turn wifi off, turn the pattern lock on, and in 10 minutes, if youre still in the area it will try to connect again. of course you can change the times to whatever you want.
Context:
Not Wifi Connected
task:
Wait 20 seconds
if - %WIFII !~ *connect*
Secure settings -> pattern lock enabled
Variable set -> %SEARCHWIFI ~ 0
Wifi -> off
end if
wait 10 minutes
Variable set -> %SEARCHWIFI ~ 1
Profile: Near Home
context:
Cell near (press scan)
state -> Variable Value -> %SEARCHWIFI ~ 1
Enter Task:
Wifi On
Secure Settings -> Pattern lock disabled
exit Task:
if - %WIFII !~ *connect* (i know this is overkill)
secure settings -> patternlock disabled
wifi off
end if
END WIFI PROJECT
REQUESTS PROJECT:
Voice commands in car to perform various responses to a received text, requested by oscar615
NOTE: autovoice recognize doesnt play well with pop-up sms windows...sometimes works, sometimes only works after you close the pop up.
Profile: Driving Text
context:
event -> received text any
state -> variable value - %PACTIVE ~ *car mode* (or whatever profile you have for your car)
task:
silent mode on
misc -> say -> Text received by %SMSRN. What should i do?
wait 150ms
plugin -> autovoice recognize
silent mode off
Profile: Cant talk
context:
autovoice recognized -> check event behavior -> command = can't
state -> variable value - %PACTIVE ~ *car mode*
task:
phone -> send sms -> number: %SMSRF, Message: Sorry, im driving, cant talk right now, check 'store in messaging app'
profile: call back
context: plugin -> autovoice recognized, check event behavior, command = call
state -> variable value - %PACTIVE ~ *car mode*
task:
call -> number: %SMSRF, check auto dial
With autovoice, if the command is "can't" you can say anything, and as long as "can't" is somewhere in the sentence, it will perform that action. unless you specified otherwise, but i wont get into that. If you say anything other than those, it will just close.
end oscar's request
END REQUEST PROJECT
Click to expand...
Click to collapse
Hey, any chance you would be willing to post the xml files for that car project ? im really interested in it

Oi.
N5*S.K.6*E.X.1.0*ART*TWRP.2.7.1.0*rad.2.08
n5sk6gapps127artex1.0twrp2.7.1.0rd2.08
n5sk6g'ps127ex1arttwrp2710v4a2330rd208

helo?
n5sk6.4.v1gapps157artex1.0twrp2.7.1.0rd2.08
----------------------------------------------------------------------------
have doubts about Slim? click here:
http://slimroms.net/index.php/faq
---------- Post added at 10:28 AM ---------- Previous post was at 10:26 AM ----------
[emoji20]
n5sk6.4.v1gapps157artex1.0twrp2.7.1.0rd2.08
----------------------------------------------------------------------------
have doubts about Slim? click here:
http://slimroms.net/index.php/faq

Hey there
Sent from my LG-D851 using XDA Free mobile app

Hi, Could I request a tasker profile?
I read that you can kinda export to an app; and that´s what i´m looking
http://android.stackexchange.com/qu...ll-pattern-lock-gets-activated-after-interval
there´s even a Tasker script but i don´t know how to do...

eBoody said:
Hey there
Sent from my LG-D851 using XDA Free mobile app
Click to expand...
Click to collapse
need your help to complete a task i created, i need to send my gps coordinates to any number as a message and to my Email.
what i have done so far is :
mobile data on
secure settings gps enabled
get location
-----------------------------------------How do i send the captured gps location to a number and my email?
secure settings gps disabled
in addition to the above if there is a way to keep sending the updated coordinates that would be fabulous, this is for tracing the device if it is lost or stolen.

Edinho376 said:
Hi, Could I request a tasker profile?
I read that you can kinda export to an app; and that´s what i´m looking
http://android.stackexchange.com/qu...ll-pattern-lock-gets-activated-after-interval
there´s even a Tasker script but i don´t know how to do...
Click to expand...
Click to collapse
tyagi2014 said:
need your help to complete a task i created, i need to send my gps coordinates to any number as a message and to my Email.
what i have done so far is :
mobile data on
secure settings gps enabled
get location
-----------------------------------------How do i send the captured gps location to a number and my email?
secure settings gps disabled
in addition to the above if there is a way to keep sending the updated coordinates that would be fabulous, this is for tracing the device if it is lost or stolen.
Click to expand...
Click to collapse
I made a PROJECT with both of your requests, that means you import it long pressing the home icon on the bottom left of tasker and press import, then navigate where you saved this xml
https://docs.google.com/file/d/0B7iTLxpFAyDRVFhvUDVhOVhJdFk/preview?pli=1
Sent from my LG-D851 using XDA Free mobile app

Thanks mate
Sent from my GT-N7100 using Tapatalk

eBoody said:
I made a PROJECT with both of your requests, that means you import it long pressing the home icon on the bottom left of tasker and press import, then navigate where you saved this xml
https://docs.google.com/file/d/0B7iTLxpFAyDRVFhvUDVhOVhJdFk/preview?pli=1
Sent from my LG-D851 using XDA Free mobile app
Click to expand...
Click to collapse
Bro, I really appreciate your efforts to make this but I honestly must say that I don´t know where or how to use this project. Sorry sorry sorry
I don´t have tasker, neither the demo version; so my question is:
Is there a way to export this project as an apk? Or could i make this work with any free app?
Don´t give up on me hahahaha :fingers-crossed:

Buy Tasker. It's two trips to the vending machine. If you can afford a smart phone and the bill to go with it then support the people that make the apps.

Edinho376 said:
Bro, I really appreciate your efforts to make this but I honestly must say that I don´t know where or how to use this project. Sorry sorry sorry
I don´t have tasker, neither the demo version; so my question is:
Is there a way to export this project as an apk? Or could i make this work with any free app?
Don´t give up on me hahahaha :fingers-crossed:
Click to expand...
Click to collapse
Even if I were to export it as an app, you would still need tasker installed for the app to work
Aside from that, tasker is the most amazing app ever created bar none, by far. It's a huge reason android is king. I really recommend you get it and tinker with it on your free time.
Sent from my LG-D851 using XDA Free mobile app

Related

[Tasker app] Car mode then text pop-up

I'm currently using tasker app and trying to use it for driving safety.
I receive a lot of texts throughout the day. While driving, I would like a profile that pop-ups the text content like the iPhone pop-up but only when I'm driving.
I have an app called 'Car Mode' that when loaded it automatically sets speaker phone on all outgoing and incoming calls. This is ideal but would also would like the text pop-up to be initiated once I load/open this app.
I have the process down but cannot translated into tasker. Here:
Load 'car mode' widget
Once receive a text-trigger the pop-up profile to display the text content like the iPhone.
Anybody that can help would be awesome. Thank you.
Sent from my SAMSUNG-SGH-I897 using XDA App
I do use Tasker and don't see an obvious way to do it. Another option is Vlingo. It has a Safereader feature that will read out the sms on receipt. You could use tasker to launch it or have it start on bluetooth pairing. Free in the market. It also works for voice dialing. I'm on froyo but I don't know if it's needed for that since Vlingo seems to do everything.
Sent from my SAMSUNG-SGH-I897 using XDA App
This is not what you are looking for but there is a way to make tasker read your sms when in car mode :
http://lifehacker.com/5601133/push-...d-to-awesome-heights-with-these-tasker-setups
For the popups you may be able to set handcent as the default sms app when in car mode, that allows popup alerts like the iphone if i'm not mistaken.
Thanks Guys! I'll give these a try.
I imagine Tasker can handle text pop once it receives a sms. Actually Tasker supports a alert action 'pop up'. I just need to figure out how to enable it ONLY when Car Mode App is active and be turned off when is in-active.
Tasker is great but does have a learning curve....
Set a variable (%CARMODE) to 1 using an application context, have it set to 0 on app exit. Use an if condition to pop up texts (task on "Received SMS" event, if condition attached to the popup step in the actual task) only when the variable is 1.
s44 said:
Set a variable (%CARMODE) to 1 using an application context, have it set to 0 on app exit. Use an if condition to pop up texts (task on "Received SMS" event, if condition attached to the popup step in the actual task) only when the variable is 1.
Click to expand...
Click to collapse
Ok, Here is not setup and is not working. Can you shed some light on this? Much Appreciated thanks
Profile named : Car Mode
Context: Application -> Car Mode
Enter task:
Tasker -> Profile Status -> Name: Text Popup; Set: On
Variable Set '%INCARMODE' To 1
Exit task:
Tasker -> Profile Status -> Name: Text Popup; Set: Off
Variable Set '%INCARMODE' To 0
Profile named Text Popup
Context: Event -> Phone -> Received text
Enter task: Tasker -> If %INCARMODE ~ 1
Alert -> Popup %SMSRB
Done
rrlara said:
Profile named : Car Mode
Context: Application -> Car Mode
Enter task:
Variable Set '%INCARMODE' To 1
Exit task:
Variable Set '%INCARMODE' To 0
Profile named Text Popup
Context: Event -> Phone -> Received text
Enter task:
Tasker -> Stop IF '%INCARMODE' !~ 1
Variable -> Set '%SMSSENDER' To '%SMSRF' IF '%SMSRN' ! Set
Variable -> Set '%SMSSENDER' To '%SMSRN' IF '%SMSRN' Is Set
Alert -> Popup '%SMSSENDER - %SMSRB'
Done
Click to expand...
Click to collapse
Edited
Sent from my Voodoo-powered Fascinate with XDA

[Q] Tasker Profile Help

Hi
I have recently been playing around with Tasker, and have had some great success, although I am having some trouble getting a profile to STOP, when the profile it activates turns on.
Here are the profiles:
Near Home:
Context: Location: My House VIA GPS+NET.
Enter
Near Home:
1. WIFI. Set on
2. Variable Set
%NEARHOME to 1
3.Stop
IF %PROFILE matches Home
Exit
Near Home Exit:
1. If %HOME Is Set
2. Variable Set
%NEARHOME to 0
3.Variable Set
%HOME to 1
4. Stop.
Click to expand...
Click to collapse
Home:
Context WIFI Connected
Enter
Home:
1. Variable Set
%HOME to 1
2. Stop %CAR Matches 1
3. Stop %NIGHT Matches 1
4. Stop %Headset Matches 1
5-23 is Notification, Power and System Settings
24. Variable Set
Name %PROFILE to Home
Exit
Exit Home:
1.Variable Set
%HOME to 0
2. Perform Task
Name: Decision. Stop: Off
Click to expand...
Click to collapse
I wish for %NEARHOME to STOP when %HOME is activated, and wifi on.
When setting up the system settings for %Home I left WIFI turned on.
Can anyone help on this?
I also have to set up some audio profiles for work, to turn my phone on silent during a specific time, IF I am @ a certain location.
Can anyone help out on this as well?
1. Task to be done: Silent
When: Between 8:30 and 7
Upon Exit: <do nothing> (will toggle back to previous state)
2. Task to be done: Silent
When: When location at work +/- 1.5k
Upon Exit: <do nothing> (will toggle back to previous state)
Aaron

[TUT][TASKER] Clear SMS Popup Notifications when Using Texter

ABSTRACT (i.e., TLDR version)
I present a way to integrate Texter; Tasker; a preferred SMS app that also gives popup notifications; and SL4A+Perl such that when using Texter, I can mark incoming SMS as read; clear notifications; clear popups; and re-sleep the phone. Profiles+scripts in the second post.
INTRODUCTION
In a nutshell: I wanted to use Tasker to remove notifications of unread SMS messages while using Texter. This proves difficult because I use an SMS app that has popup notifications. These profiles+scripts exit the popup notification, clear the unread notification, then puts your phone back to sleep.
Texter is an Android app/Google Chrome extension that lets you send SMS messages from your computer with your phone number. Super cool! It's kind of glitchy at times but overall a solid app, and it'll get better with time. It's currently in closed beta but they're adding new people all the time. I'd hop on that ASAP.
Texter clears unread SMS notifications when you hit "Close" or "Reply", but by Android design it cannot clear the notification bar and LED. I keep my phone on my desk when using my computer, so having the unread notification on both my phone and my computer are kind of annoying. So I wanted to use Tasker to clear those notifications. Turns out Tasker cannot mark messages as read itself, so I use SL4A and the Android port of my favorite scripting language, Perl. It's easy to write a script using SL4A and Perl for Android (or your language of choice - but I provide a Perl script, so you may as well use that) to clear unread SMS notifications for you.
OVERVIEW OF PROFILES
This first post will be a discussion of each profile I use; next post will have the profiles/scripts themselves, and possibly a changelog as I mess around with this system.
My system consists of 5 profiles and 1 widget-task:
WIDGET-TASK: USE TEXTY
This task simply sets or clears a variable %TEXTY, to denote if we are at a computer and would prefer to use Texter vs our phones to send SMS messages. It also sets a permanent notification and changes the widget icon to show that you're in Texter-mode vs regular SMS mode.
PROFILE: TEXTY ACTIVE
This is the heart and soul of the profile scheme. When you receive an SMS, if %TEXTY is set it fires the Perl script that clears your SMS notification, then opens your preferred SMS app to clear the notification bar. Bonus: if you use a popup SMS notification (GO SMS, Handcent, Chomp, etc), this will also clear the popup for you!
PROFILE: TEXTY DISPLAY ON/OFF
Naively using %SCREEN to denote if the screen is on/off to enable or disable Texter functionality does not work all the time - I have found that my phone sometimes lags between receiving a text message and actually popping up the notification. So if %SCREEN ~ on, the main profile might not fire the go-back-to-sleep tasks.
Thus we need a way to account for this lag. I created a new variable %TEXTYSCN that denotes when the screen is on/off, accounting for that lag. Basically, I wait 15 seconds after screen on before setting %TEXTYSCN = on; if the screen has been on for that long, it's probably because I wanted to use it.
When I set %TEXTYSCN = off, I wait 15 seconds beforehand IF IT'S ALREADY SET TO OFF. This seems weird at first, but it's kind of like an interrupt handling mechanism - if you receive a text, your screen will turn on. That starts the 15 second count before %TEXTYSCN = on - until those 15 seconds are up, %TEXTYSCN ~ off. Now that the popup notification is cleared, the display shuts off. If we flipped %TEXTYSCN = off right now and we're inside that 15 second timer, %TEXTYSCN will get set back to on - and subsequent popup notifications won't get cleared. Note that I only wait if %TEXTYSCN ~ off. If it's on, that means we're choosing to sleep the phone after we've used it for something.
[NOT SURE IF NEEDED, NEEDS MORE TESTING] PROFILE: PHONE OFFHOOK/IDLE
Not sure if I need these profiles yet - all it does is disable the main profile if we're on a call, and restart it once we hang up. GO SMS doesn't popup notify when I'm in a call, and after a call I can clear the notifications as I please. I'm not entirely sure of using the main profile during calls yet (what happens if I get a text in the middle of a call and my screen was off at the time? It'll run the main profile, GO HOME, then display off. This might be disorienting the next time I look down and I'm at the Home screen rather than the In-Call screen) so I'll just disable the clear-SMS. Maybe in a later iteration I'll disable the go-home part but clear SMS.
ON TO POST #2!
APPS YOU NEED
See post #1 for links to all required apps.
Android 2.2+
Tasker
Texter
SL4A
Perl for Android (or your interpreter of choice, but the script I provide is for Perl)
INSTALLATION <----VERY IMPORTANT! DOES NOT WORK STRAIGHT OUT OF THE BOX.
Download Tasker_Texty_V1.2.zip. Place all files ending with "prf.xml" into /sdcard/Tasker/profiles . Place Texty.tsk.xml into /sdcard/Tasker/tasks . Import all profiles and tasks by opening Tasker; hit Menu; hit Profile Data; "Import One Profile" and "Import One Task". Place markSMSread.pl into /sdcard/SL4A/scripts .
Create the Texty (it's now officially named Texter, but I didn't want to bother changing the words in the profiles, not to mention "Texty" sounds way better to me) widget on your home screen. Check out the Tasker website if you need help on how to do this.
Open up the "Texty Profile" profile. Change "Load App" from "Messaging" to your favorite SMS app (or keep it as default if that's what you prefer.)
Remove the "Type: System Lock" action, and replace it with "Display->System Lock". You will need to give Tasker administrative capabilities.
As necessary, change the "wait" values in the Texty Active; Texty Display On; and Texty Display Off profiles. See below, "Scripts and Profiles", on the rationale for this.
Enjoy the wonderful amalgamation of Texter, Tasker, and Android! Happy texting
ADVANCED: SCRIPTS AND PROFILES
I include this section redundantly so people can see what exactly goes into the setup. This way you can be confident that you're customizing your profiles exactly how you want to, and you can see my rationale for why I used certain numbers, variables, etc.
Tasker cannot clear the unread SMS notification on its own, so I use SL4A to do it. Here is the Perl script I use (you can of course use your own script and programming language if you'd like):
Code:
use strict;
use warnings;
use Android;
# See http://goo.gl/Qw0WK for original code
my $droid = Android->new();
my $msgs = $droid->smsGetMessageIds(1);
my $i = 0;
while ($msgs->{result}[$i]){
$droid->smsMarkMessageRead([$msgs->{result}[$i]], 1);
$i++;
}
I will assume you're familiar with Tasker language. At some point I will just post profiles you can import. If you need help with any steps, just ask! I'll do my best to respond in a timely fashion.
Note before importing/creating profiles: You need to make sure %TEXTY is clear on boot. I don't know if variables are cleared on phone restarts; I took no chances and wrote into my Boot profile to clear %TEXTY. If someone can let me know, that would be appreciated.
WIDGET-TASK: "TEXTY"
Initial Icon: Texty app look
Notes: You may need to write everything without the "Set Widget Icon"; make the widget; then edit the task and re-make the widget. Tasker looks for widgets to change icons, and it can't change the icon of a non-existent widget.
1) If %TEXTY ! Set
2) Notify (title: "Texty Active"; icon: whatever you want; permanent: ON)
3) Set Widget Icon (name: Texty; icon: whatever you want, I use the stock SMS icon)
4) Variable set (%TEXTY to 1)
5) Stop
6) End If
7) If (%TEXTY Is Set)
8) Set Widget Icon (name: Texty, icon: original Texty icon)
9) Notify Cancel (title:"Texty Active")
10) Variable Clear: %TEXTY
11) End If
PROFILE: TEXTY ACTIVE
Condition: Event: Received Text
Notes: Mess around with the wait statements to see if there's a sweet spot. You might find a 2 second wait might open and close your SMS program before the popup notify comes up. I'm still trying to find all the right numbers myself. (I think I've settled on 5, but that could change all willy-nilly like)
1) If %TEXTY is set
2) Wait 5 seconds
3) IF %TEXTYSCN !~ on
4) Load App: your SMS app of choice (to clear the notification bar and/or popup notifies)
5) SL4A: markSMSread.pl
6) Wait 1 second
7) Go Home
8) System Lock
9) End If
10) End If
PROFILE: DISPLAY ON
Condition: Event: Display On
Notes: Adjust the wait: if it's too long, the main profile will clear your popup notify and sleep your phone if you receive a message soon after starting to use your phone; too short and the main profile might not clear your popup notify at all [see the wait statement in the Texty Active profile]
1) If %Texty Is set
2) Wait 10 seconds
3) Variable set: %TEXTYSCN to on
4) END IF
PROFILE: DISPLAY OFF
Condition: Event: Display Off
Notes: Adjust the wait: if it's too long, the main profile won't clear your popup notify if you receive a text shortly after display turns off; too short and %TEXTYSCN might accidentally get flipped to on.
1) If %Texty is set
2) Wait 15 seconds IF %TEXTYSCN ~ off
3) Variable set: %TEXTYSCN to off
4) End if
PROFILE: PHONE OFFHOOK
Condition: Event: Phone Offhook
1) Profile Status: Texty Active -> Off IF %TEXTY is set
PROFILE: PHONE IDLE
Condition: Event: Phone Idle
1) Profile Status: Texty Active -> ON
PROFILE: CLEAR TEXTYSCN
Condition: Event: Variable cleared: %TEXTY
1) Variable Clear: %TEXTYSCN
Conclusion
I hope my work has helped anyone else as obsessive as I am about the meshing of their technology. I am of the school of thought that anything I do on my phone I should be able to do on my computer, and vice versa - I use Chrome to Phone, android2cloud, etc - I don't ever want to be tethered to any single device. These Tasker profiles have gotten me one step closer to realizing that dream.
CREDITS
brandall: for his excellent Tasker work! He was the inspiration for me to write this post up.
Max from the android-scripting Google group: for helping me create the markSMSread.pl script.
The developers of Texty, Tasker, GO SMS, and SL4A. Without them, there wouldn't be us.
TO DO
further testing to find edge cases, etc
CHANGELOG
Code:
v1.2:
-->fixed import bug - because System Lock action requires admin capabilities, Tasker would not import. Now requires user to manually add action.
-->restored markSMSread.pl workaround - Texter only clears SMS when you hit "close" or "reply", but the notification does not go away.
-->added more installation instructions
v1.1:
-->removed markSMSread.pl workaround - Texter now clears SMS notifications on its own.
-->added v1.1 .zip to easily import profiles.
v1.0:
-->initial release
Please hit the Thanks button if I helped you with your Texter experience!
Nice work mate!
Sent from my HTC Desire HD using XDA Premium App
Tasker profiles updated to v1.1! Texter now clears the SMS notification when you hit "Reply" or "Close" in Chrome. So I removed the SL4A workaround to clear SMS notifications for you. I am still testing for edge cases, and might bring back the workaround if the SMS doesn't clear the vast majority (or all) of the time. Also finally added profile .zip so you can just import your tasks instead of fiddling with the UI so much.
The Texty Active profile won't load into Tasker. It gives me an error.
bartimeus said:
The Texty Active profile won't load into Tasker. It gives me an error.
Click to expand...
Click to collapse
What's the error say? Details would be nice to help out on this.
Sorry about that, forgot my manners.
"Error: import of Texty_Active.prf.xml
failed: failed to import profile data."
Thank you for coming up with and supporting these.
bartimeus said:
Sorry about that, forgot my manners.
"Error: import of Texty_Active.prf.xml
failed: failed to import profile data."
Thank you for coming up with and supporting these.
Click to expand...
Click to collapse
Hmm, that's not a very illuminating error message What version of Tasker are you running, and what version of Android? The "Screen Lock" task in this profile requires Tasker to get admin capabilities; maybe Tasker does not allow one to import anything that requires root/admin capability.
Also, do you have the stock Messaging app installed? I use "Load App: Messaging" by default.
I am not at home right now but when I get home I will upload a profile that does not have the "Screen Lock" task. If that imports properly, you will have helped me close a tough bug thanks!
I am running version 1.0.17, Android 2.3(Cyanogenmod 7 Nightly 100) Phone is Inspire 4G.
I have the stock messaging app but use Handcent as my main one.
bartimeus said:
I am running version 1.0.17, Android 2.3(Cyanogenmod 7 Nightly 100) Phone is Inspire 4G.
I have the stock messaging app but use Handcent as my main one.
Click to expand...
Click to collapse
Try to import the attached profile. I removed the "System Lock" task. I have a feeling that'll let you import.
In other news, I think I will add back the markSMSread.pl SMS-clearing workaround. Without it, the popup notify is killed but the unread notification remains. Once you hit close/reply in Texter, it will mark the SMS as read - but that doesn't clear the notification. Once I get verification that the "System Lock" task is what's causing problems, I'll update to v1.2.
Okay, it let me import that file. Now I have all 6 profiles and the task imported. How do I switch the app it uses from Messaging to Handcent?
bartimeus said:
Okay, it let me import that file. Now I have all 6 profiles and the task imported. How do I switch the app it uses from Messaging to Handcent?
Click to expand...
Click to collapse
Great. In the Texty Active profile, hit "Open App" and select Handcent from it.
You'll also need to re-add the System Lock action (hit the plus sign, Display->System Lock) and put it under "Go Home" if you want the screen to dark after it receives a text message.
Thanks for verifying this bug for me. As I said, I will upload v1.2 with the markSMSread.pl workaround as soon as I can. I'll also remove the System Lock action; users will have to add them themselves.
Version 1.2 added to second post. It brings back the Perl workaround - Texter only clears the unread SMS notification when you hit "Reply" or "Close". Even though it clears the unread notification in the system, it does NOT clear the notification bar. (This is especially true if you're not using the stock Messaging app.)
Also, there was a bug (feature?) where Tasker could not import the "Texty Active" profile - this is because the "System Lock" action I use to sleep the phone requires admin capability. You must add this action yourself and allow Tasker admin privileges, if it asks.
Finally, install instructions updated to reflect the use of the Perl script and adding the "System Lock" action.
Thanks to bartimeus for helping debug!
Running into the same error as before when I try to import the Texty: Active profile....
What do we do after we make the widget? Do we have to hit it and activate the task and just leave it running all the time?
I couldn't find anything called "Perl for Android" on the market so I only installed SL4A, do I have to DO anything with this once I have it installed and the script in the correct folder?
Lastly, when I go in and add the the Lock command it asks me for code, what do I need to enter? It says "Error: Code: Please enter text"
bartimeus said:
Running into the same error as before when I try to import the Texty: Active profile....
Click to expand...
Click to collapse
crap. i'll look into what could be causing that. Did you import before installing SL4A? I wonder if the profile can't find SL4A upon import and then fails. In the meantime, I do list the exact steps you need to produce the profile on your own, so you could create the profile yourself. I'm really sorry about that - this is my first time writing profiles and sharing them with other people, so I'm sure there will be issues in the process.
What do we do after we make the widget? Do we have to hit it and activate the task and just leave it running all the time?
Click to expand...
Click to collapse
Hit the widget whenever you want to use Texty at your computer. When you're done, hit it again. I think it would only be useful to turn off the popup notify and kill the new-SMS notification if we're sitting at the computer. So yes, when you're using Texty, you should leave the task running the entire time.
I couldn't find anything called "Perl for Android" on the market so I only installed SL4A, do I have to DO anything with this once I have it installed and the script in the correct folder?
Click to expand...
Click to collapse
Check the link to Perl for Android in the first post. This is absolutely required - SL4A does not provide the script interpreters, just the API to use them
Lastly, when I go in and add the the Lock command it asks me for code, what do I need to enter? It says "Error: Code: Please enter text"
Click to expand...
Click to collapse
Note that there is a difference between "Lock" and "System Lock". You should be using the latter, not the former.
Okay, I figured out that it is a passcode that it wants. I couldn't find something called System Lock under Display but I will look again.
Nevermind. I am dumb. I found System Lock
I guess tasker hadn't updated in forever or something but I have it all working now. Perl Installed and SL4A installed. All seems well enough, just need to wait for a text now =P
Thank you.
bartimeus said:
Nevermind. I am dumb. I found System Lock
I guess tasker hadn't updated in forever or something but I have it all working now. Perl Installed and SL4A installed. All seems well enough, just need to wait for a text now =P
Thank you.
Click to expand...
Click to collapse
Haha, no worries! Non-market Tasker doesn't really remind you to update that often. I guess I should put in the OP that you need the latest version of Tasker; I can't guarantee older versions, as you just found.
I appreciate any feedback about the profile system I set up. I'm always trying to tweak it, and really I find myself playing with the numbers kind of regularly to hit the "sweet spot".
Been looking for something like this...great job....errr, I should say, just set this up, hope it works and if it does, then great job.
Now if only I could get something similar for all the other notifications I take action on on my computer (calendar appts, gchat etc.) Gmail works fine
I know this is wicked old, but the Perl Script does not work anymore... I have a 4.2.2 ROM and it won't mark them as read.

[APP][4.0+][V2.0.45]Automated Device (Rules Engine evolution)

Hi
After 2 years developing and improving Rules Engine I have created Automated Device for 4.0+ devices.
This program is rules engine that let your device behave automatically according to conditions and execute actions
Please submit any comment, error, suggestion here.
Android Market link
Direct link to APK
Automated Device is an application designed to let you automate the behaviour of your device. It is based in rules. The user can define many rules to define the device's state in different situations.
A rule is defined by:
Conditions: When every condition (AND clause) o at least one (OR clause) in a rule is satisfied then the rule is satisfied. Examples:
From Monday to Friday, between 12:00 and 05:00 (Time-Date condition)
To be inside (or outside) my home (Position condition)
Bluetooth state is ON (Hardware condition)
Battery level between 0% and 20%
Incoming phone call
Incoming SMS containing some word
Power state, battery or connected
Screen state
Other rule is matched or not
Other program is running or not
Phone state (ringing...)
Calendar appointments. This condition is matched when current date is inside of the appointment and the appointment text contain a user defined word
Brightness mode
autosync state
Network type (GPRS, HSPA, CDMA, LTE, etc)
Device connectivity state
Headphone state
Car mode
Dim state
Wifi hotspot
To be connected to a wifi network specified by its name
To receive a SMS/MMS comming from some phone number or with its text containing some word or phase
Ambient light
Ambient temperature
Pressure
Proximity sensor level
Some phone number is calling you (ringin), or is in call with you, or just called you
Mobile operator name
Actions to be executed when the rule passes from unmached to matched: Actions to be executed when every condition is satisfied. Each one can be applied once or periodically while the rule is matched Examples:
Set Bluetooth OFF
Set device volume
Launch a program
Kill a program
Apply a profile. A profile is compound by actions. So when the rule applies a profile it simply execute its associated actions.
Set different kinds of sound levels (system, notification, alarms, etc)
Set Brightness mode (automatic / manual) and bright level
Set autosync state
Play a song
Send SMS
Send Email. You can include many variables, like free memory and disk, last caller, battery statistics, sensors values (pressure, light, temperature, etc)
Car mode
Set wallpaper
Set ringtone (android ringtone or user mp3)
Screen off timeout
Dim state
Wifi hotspot
Play a system notification
Vibrate some milliseconds
Show popup message with free text and variables
Show a tob bar notification with free text and variables
Enable / Disable rules.
Sent variables (temperature, position, etc) to a web server as HTTP parameters
Open system dialogs, like 3G/2G, Tethering, etc
Actions to be executed when the rule passes from matched to unmatched. (The same ones like the above section)
The device broadcast many events, like battery level, time, etc. Those events are processed by Automated Device and the rules are evaluated.
Important: When a rule is applied then It wont be applied again until it doesn't satisfy it previously. For example, if a rule condition is "Battery level less than 15%" and the action is "Play a song" and current battery level is 10% then the song will play. But it wont play again until the rule wont be satisfied and then satisfied again. So if the battery level raises to 20% and then decreases again to 8% then it will play the song again. This avoid loops so a rule is executed many times.
Sections:
SWITCHERS: This window lets you change the state of Wifi, Bluetooth, etc. It also lets you set a time-out. When the time expires the program will set the previous state. It also lets you "lock" a profile with/without time limit. For example, if you go the cinema you could lock the profile "Silent". When Automated Device is locked it wont execute any rule
PROFILES: A profile is a set of actions. This section lets you define and apply right now a profile. For example, you could create the profile "Meeting". Its actions would be speaker to vibrate, flight mode and send a SMS. The three actions would be applied. You could establish a timeout. During this time the program WONT apply any rule. In this way the program wont apply other rule that could change the speaker state, for example. Once the timer expires then the engine will be enabled again.
NEW PROFILE: This dialog lets you choose a name and description for the new profile.
ACTIONS: Here you can choose the set of actions associated to the profile.
RULES: In this windows you can manage your rules and create new ones. If the background of the rule is RED it means the rule isn't met right now. If the background is GREEN it means the rule is met right now.
RULE INFORMATION: This screen lets you manage the name and description and shows how many conditions and actions the rule has. It lets you set the priority of the rule. If two rules match at the same time then this priority will solve conflicts. For example, if both rules are going to change the audio state. It also lets you add/edit/remote more actions/conditions.
RULE CONDITIONS: This screen lets you add / remove / edit conditions. There are several types of conditions:
WEEK DAY AND TIME: You can select some weekdays and then a begin time and end time. For example, Monday and Tuesday from 22:00 to 06:00
ENTER/EXIT A PLACE: You must choose a location and a radius. So if you choose a "Enter a place condition" then the condition will be met if you are inside. If you choose "Exit a a place condition" then the condition will be met if you are outside.
STATUS CONDITIONS: There are many conditions related with some hardware status. For example, you could use WIFI ON. This condition is matched when the WIFI state is ON
LOG: This screen shows the application log. Each log line has a category: Debug, Info, Warning and Error. Here you know what happens inside the program. You can see a rules history. And you can clear it and export it by email.
SETTINGS: Hare you configure the program.
Launch at boot time: If selected the the program will be launched at boot time.
Log level. This options lets you choose what kind of log events you want to store.
Automated Device enabled. If disabled then It wont process events.
Show icon notificacion in the top bar.
EXPERIMENTAL: Location autorefresh interval. By default Android doesnt allow location changes when the screen is off. This option try to fix it.
Log changes
V2.0.45 (2014-03-08)
Compatibility between accessibility service and OK Google
NFC tags can be detected with the program in background
V2.0.38 (2014-03-04)
Action HTTP Request uses GET instead of POST
New Variable. Last HTTP Status for action HTTP request
Flag feature action. Set value to a Variable value
Accessibility can be disabled
Bug fixing
V2.0.37 (2014-03-02)
Condition NFC. Use your NFC tags as conditions
Option to disable Accessibility service
Bug fixing
V2.0.30 (2014-02-21)
New action: Text speech. You can use free text and variables
New Flag: Last top bar notification text
New Condition: Detect a top bar notification. You can filter by program sender, text or none
With these features you can, for example, let AD read aloud the notifications coming from gmail, line, etc
New option in home windows: Export. It takes your rules and convert them into text to share it with developer and other users
V2.0.27 (2014-02-19)
Improved disable/enable lock screen
Bug fixing
V2.0.24 (2014-02-18)
Improved Sound action: Added BT call sound
Vibrate if internal error is optional
Improved Variables: time, date and flag value
Improved Bar Notification action: persistent. You decide if the user can dismiss the notification with his finger
Improved set flag action: Persistent. Choose if the flag is removed when a rule is modified and all the rules are re-evaluated
Improved set flag action: Numeric operations: You can increment or decrement a flag (if numeric)
Improved flag condition: New comparators: bigger, bigger or equals, lower, lower or equals
V2.0.43 (2014-03-07)
Flight mode switcher, condition and action enabled. Only for rooted devices with Xposed and Flight mode helper
V2.0.36 (2014-02-25)
Option backup the database
Option restore the database from a previous version
So you can do a backup, play with new rules, conditions....and restore if you are not happy with the result
Support for xlarge screens
V2.0.23 (2014-02-17)
Improved action Show notification bar. The user can select a custom icon
New action: Dismiss a notification bar. So you can, for example, display a notification bar when a rule or profile is applied and remove it when it doesnt match
Bug fixing
V2.0.21 (2014-02-15)
New action: set call forwarding status
New conditions: On booting and On shutting down
Bug fixing
V2.0.18 (2014-02-14)
Switcher to enable/disable lock screen
New action: Enable / Disable lock screen
V2.0.17 (2014-02-13)
Improved location condition
New action: Set a flag value
New condition: check a flag value
See active flags from home window menu
V2.0.22 (2014-02-16)
New action: Send Android Intent
New action: Call forwarding (international)
Bug fixing
V2.0.16 (2014-02-12)
Bug fixing
Program status condition allows to search between all the processes or only the foreground ones
V2.0.15 (2014-02-11)
New Location system: Google play services.Check settings page
Added command in home window to recreate the database
V2.0.14 (2014-02-10)
Bug fixing
Improved BT connected device. Now works with multiple devices at the same time
V2.0.11 (2014-02-09
Bug fixing
Added compatibility without telephony system, like tablets
New condition: Phone Signal Strength
New condition: Device orientation (facing up/down)
V2.0.8 (2014-02-08)
Periodic actions are executed in a background thread, solving problems related with network actions (send mail, http post)
Bug fixing
V2.0.7 (2014-02-07)
New condition: Dock state
V2.0.6 (2014-02-06)
Actions execution delay now included in Action repeat window
Changed bar notification icon (white)
New Condition: Battery temperature
V2.0.5 (2014-02-05)
New condition: Lock screen state
V2.0.4 (2014-02-04)
Bug fixing....
V2.0.3 (2014-02-03)
Fixed send email action
Bug fixing...
V2.0.2 (2014-01-27)
Back button in home page hides the GUI
Menu button in home page shows menu drawer
V2.0.1 (2014-01-26)
Fix icon bar notification
Several optimizations
V2.0 (2014-01-15)
Automated Device is ported to Android 4.x and named Automated Device to leverage android 4.x power
Fixed automated backup/restore data from/to google account
reuploaded apk to set release google maps api key
danielherrero said:
reuploaded apk to set release google maps api key
Click to expand...
Click to collapse
Added to Android Market
https://play.google.com/store/apps/details?id=com.dhr.automateddevice
Looks promising
Sent from my LG-P990 using xda app-developers app
V2.0.1 Uploaded
Fix icon bar notification
Several optimizations
Uploaded to market V2.0.2
Back button in home page hides the GUI
Menu button in home page shows menu drawer
good work :good:
Awesome
very handy & user-friendly app :good:
it is easier to use than tasker :laugh:
Thanks!!
Enviado desde mi SM-N9005 usando Tapatalk 4
Lets try it
Vamos a probarla, compadre madrileño
It is not compatible with my Nexus 7 2013 ?
Gesendet von meinem Nexus 7 mit Tapatalk
NFC-SMARTAGS said:
Can we use it with nfc
Envoyé de mon GT-S6500 en utilisant Tapatalk
Click to expand...
Click to collapse
Currently I am programming one condition and one action with nfc
Enviado desde mi SM-N9005 usando Tapatalk 4
Strange. I wonder what condition fails...
Enviado desde mi SM-N9005 usando Tapatalk 4
Hi there,
When I choose 'send email' as an action on a lost wifi connection it doesn't do anything, even though the phone switches to 3G
Hallahan said:
Hi there,
When I choose 'send email' as an action on a lost wifi connection it doesn't do anything, even though the phone switches to 3G
Click to expand...
Click to collapse
Thanks, I already know it. I use a gmail account to send mails but google is rejecting them because they are very far (Spain, USA). I am going to create web service in my web server. So the device will contact my server and this one will send the email
danielherrero said:
Thanks, I already know it. I use a gmail account to send mails but google is rejecting them because they are very far (Spain, USA). I am going to create web service in my web server. So the device will contact my server and this one will send the email
Click to expand...
Click to collapse
Isn't it just the fact that Google only accepts sending email when you, or I, log on to their smtp servers using a valid username and password? So if you are able to send the mail that way, the problem should be solved...
Great idea, nice work.
sent from public phone using coins.
Playstore says latest version not compatible with my device (HP Touchpad running CM11).
Just designed for phones?
Hallahan said:
Isn't it just the fact that Google only accepts sending email when you, or I, log on to their smtp servers using a valid username and password? So if you are able to send the mail that way, the problem should be solved...
Click to expand...
Click to collapse
See what Google sent a few minutes ago. It's no related with user and password but an Gmail account sending emails from Spain usa France etc using the same account
Hi Daniel,
Someone recently used your password to try to sign in to your Google Account [email protected]. This person was using an application such as an email client or mobile device.
We prevented the sign-in attempt in case this was a hijacker trying to access your account. Please review the details of the sign-in attempt:
Monday, February 3, 2014 12:05:14 PM UTC
IP Address: 31.20.201.179
Location: The Netherlands
If you do not recognize this sign-in attempt, someone else might be trying to access your account. You should sign in to your account and reset your password immediately.
Enviado desde mi SM-N9005 usando Tapatalk 4
Every time I try to enter the enter or exit location in rules, the app force closes. KitKat Moto g. ROM has a gps bug though. Can't get lock.

Screenshot with Proximity Sensor

Hello, I am looking for an app that will use the proximity sensor on my phone to capture a screenshot. I tried one called quickscreenshot but it didnt seem to be supported on my phone. I also have tasker if anyone knows a profile to do this. Thanks!
R_Chin said:
Hello, I am looking for an app that will use the proximity sensor on my phone to capture a screenshot. I tried one called quickscreenshot but it didnt seem to be supported on my phone. I also have tasker if anyone knows a profile to do this. Thanks!
Click to expand...
Click to collapse
You just need a profile "ProxVar" with a task that checks if the proximity sensor is active and set a variable %PROX and one profile "ProxScreen" to react to this variable so it takes a screenshot. I would recommend to include the "wait" function (the part included in the [ ] brackets) to ensure that the screenshot task will only being activated if the proximity sensor is covered for one second to avoid accidential screenshots.
Profile: ProxVar
State: Proximity
Task: SetProx
Variable / SetVariable %PROX to 1
Exit Task: ResetProx
Variable / SetVariable %PROX to 0
Profile: ProxScreen
State: Variable %PROX = 1
Task: ScreenshotProx
[Task / Wait 1 Second]
Task / If %PROX Matches *, 1,*
-> take screenshot
I take a screenshot by using the Secure Settings plugin for Tasker and chose "Actions" -> "Execute Shortcut" -> "Slim Shortcuts" -> "Screenshot"
orville87 said:
You just need a profile "ProxVar" with a task that checks if the proximity sensor is active and set a variable %PROX and one profile "ProxScreen" to react to this variable so it takes a screenshot. I would recommend to include the "wait" function (the part included in the [ ] brackets) to ensure that the screenshot task will only being activated if the proximity sensor is covered for one second to avoid accidential screenshots.
Profile: ProxVar
State: Proximity
Task: SetProx
Variable / SetVariable %PROX to 1
Exit Task: ResetProx
Variable / SetVariable %PROX to 0
Profile: ProxScreen
State: Variable %PROX = 1
Task: ScreenshotProx
[Task / Wait 1 Second]
Task / If %PROX Matches *, 1,*
-> take screenshot
I take a screenshot by using the Secure Settings plugin for Tasker and chose "Actions" -> "Execute Shortcut" -> "Slim Shortcuts" -> "Screenshot"
Click to expand...
Click to collapse
Thanks you very much. I am trying this now. The only thing I am having trouble with is the secure settings and getting it to screenshot. When I went to execute shortcut I cannot find the slim shortcuts you are talking about for the screenshot.
R_Chin said:
Thanks you very much. I am trying this now. The only thing I am having trouble with is the secure settings and getting it to screenshot. When I went to execute shortcut I cannot find the slim shortcuts you are talking about for the screenshot.
Click to expand...
Click to collapse
Hmm, maybe this is part of my Custom ROM. Otherwise you could run a command to execute the screenshot. As I have no access to my PC right now, I can't search for the corresponding command.
R_Chin said:
Thanks you very much. I am trying this now. The only thing I am having trouble with is the secure settings and getting it to screenshot. When I went to execute shortcut I cannot find the slim shortcuts you are talking about for the screenshot.
Click to expand...
Click to collapse
So, I found this plugin, which you can use to trigger a screenshot in Tasker.
R_Chin said:
Thanks you very much. I am trying this now. The only thing I am having trouble with is the secure settings and getting it to screenshot. When I went to execute shortcut I cannot find the slim shortcuts you are talking about for the screenshot.
Click to expand...
Click to collapse
Okay, if the above linked app does not work, you can set up a task that runs a shell command to take the screenshot (which would be the far more easier way as no additional app is required). The command for this is
Code:
/system/bin/screencap -p %filename
where "%filename" is a variable describing the path to the folder (plus a variable name, depending on date/time for example) where the screenshot should be stored. For me, this would be
Code:
/system/bin/screencap -p /storage/emulated/0/Pictures/Screenshots/Screenshot_%DATE%TIME.png
This method will take a screenshot, but wouldn't show you the "Screenshot captured" notification. But you can add a toast notification to indicate that the screenshot has been captured by adding Alarm -> Flash to the screenshot task and enter something like "Screenshot captured" as a toast title.
I hope that I was able to help you set up your proximity-screenshot profile for Tasker
Decided to put this instructions into one big post.
You have to set up two profiles, one for checking if the proximity sensor is currently covered and another profile to execute the task for screenshot capturing.
The first profile ProxVar uses a task called SetProx, which will set a variable %PROX to 1 if the proximity sensor is covered and an exit task ResetProx to reset %PROX to 0 if it is no longer covered. It will also abort the task ScreenshotProx for screenshot capturing, in case that the proximity sensor has been covered by accident. You might also add another state Display On to trigger this profile only when your device's screen is turned on to prevent Tasker from taking countless screenshots when your device is in your pocket.
Profile: ProxVar
State: Proximity
State: Display On
Task: SetProx
Variable / SetVariable %PROX to 1
Exit Task: ResetProx
Variable / SetVariable %PROX to 0
Task / Stopp Task ScreenshotProx
The second profile will react to the %PROX variable. In case %PROX matches 1, its corresponding task ScreenshotProx will start by waiting one second and check again, if the proximity sensor is covered by checking the %PROX variable again. If %PROX is still 1, it will run the shell command to execute the screenshot capturing and save it to the specified folder (/Pictures/Screenshots in your internal memory) with the current date and time in its name. Afterwards, it will display a short toast notification to verify that the screenshot has successfully been captured.
Profile: ProxScreen
State: Variable %PROX = 1
Task: ScreenshotProx
Task / Wait 1 Second
Task / If %PROX Matches *, 1,*
Code / Run Shell
Code:
/system/bin/screencap -p /storage/emulated/0/Pictures/Screenshots/Screenshot_%DATE%TIME.png
Alarm / Flash "Screenshot captured"
Task / End If
In case you want to change the target folder for the screenshots to be saved, you can use any file manager to determine the path of the desired folder and enter it into the above stated shell command.
orville87 said:
You just need a profile "ProxVar" with a task that checks if the proximity sensor is active and set a variable %PROX and one profile "ProxScreen" to react to this variable so it takes a screenshot. I would recommend to include the "wait" function (the part included in the [ ] brackets) to ensure that the screenshot task will only being activated if the proximity sensor is covered for one second to avoid accidential screenshots.
Profile: ProxVar
State: Proximity
Task: SetProx
Variable / SetVariable %PROX to 1
Exit Task: ResetProx
Variable / SetVariable %PROX to 0
Profile: ProxScreen
State: Variable %PROX = 1
Task: ScreenshotProx
[Task / Wait 1 Second]
Task / If %PROX Matches *, 1,*
-> take screenshot
I take a screenshot by using the Secure Settings plugin for Tasker and chose "Actions" -> "Execute Shortcut" -> "Slim Shortcuts" -> "Screenshot"
Click to expand...
Click to collapse
orville87 said:
Okay, if the above linked app does not work, you can set up a task that runs a shell command to take the screenshot (which would be the far more easier way as no additional app is required). The command for this is
Code:
/system/bin/screencap -p %filename
where "%filename" is a variable describing the path to the folder (plus a variable name, depending on date/time for example) where the screenshot should be stored. For me, this would be
Code:
/system/bin/screencap -p /storage/emulated/0/Pictures/Screenshots/Screenshot_%DATE%TIME.png
This method will take a screenshot, but wouldn't show you the "Screenshot captured" notification. But you can add a toast notification to indicate that the screenshot has been captured by adding Alarm -> Flash to the screenshot task and enter something like "Screenshot captured" as a toast title.
I hope that I was able to help you set up your proximity-screenshot profile for Tasker
Click to expand...
Click to collapse
Thank you so much. The app works great. I tried the code just to test and it didn't seem to work. Thanks so much!
orville87 said:
Okay, if the above linked app does not work, you can set up a task that runs a shell command to take the screenshot (which would be the far more easier way as no additional app is required). The command for this is
Code:
/system/bin/screencap -p %filename
where "%filename" is a variable describing the path to the folder (plus a variable name, depending on date/time for example) where the screenshot should be stored. For me, this would be
Code:
/system/bin/screencap -p /storage/emulated/0/Pictures/Screenshots/Screenshot_%DATE%TIME.png
This method will take a screenshot, but wouldn't show you the "Screenshot captured" notification. But you can add a toast notification to indicate that the screenshot has been captured by adding Alarm -> Flash to the screenshot task and enter something like "Screenshot captured" as a toast title.
I hope that I was able to help you set up your proximity-screenshot profile for Tasker
Click to expand...
Click to collapse
So the app doesn't actually work as I though. I'm gonna try the code. So I just go code and then shell command. And put it in there?
R_Chin said:
So the app doesn't actually work as I though. I'm gonna try the code. So I just go code and then shell command. And put it in there?
Click to expand...
Click to collapse
Yes, when you select the shell command you just put this command line there. Ensure that the folder Screenshots exists inside of the folder Pictures on your internal storage. Otherwise it won't work. And you need root access to execute this command, so check the "Use root" box.
orville87 said:
Okay, if the above linked app does not work, you can set up a task that runs a shell command to take the screenshot (which would be the far more easier way as no additional app is required). The command for this is
Code:
/system/bin/screencap -p %filename
where "%filename" is a variable describing the path to the folder (plus a variable name, depending on date/time for example) where the screenshot should be stored. For me, this would be
Code:
/system/bin/screencap -p /storage/emulated/0/Pictures/Screenshots/Screenshot_%DATE%TIME.png
This method will take a screenshot, but wouldn't show you the "Screenshot captured" notification. But you can add a toast notification to indicate that the screenshot has been captured by adding Alarm -> Flash to the screenshot task and enter something like "Screenshot captured" as a toast title.
I hope that I was able to help you set up your proximity-screenshot profile for Tasker
Click to expand...
Click to collapse
orville87 said:
Yes, when you select the shell command you just put this command line there. Ensure that the folder Screenshots exists inside of the folder Pictures on your internal storage. Otherwise it won't work. And you need root access to execute this command, so check the "Use root" box.
Click to expand...
Click to collapse
So I put the command in and I have root and I ran the shell with a pop-up after to make sure the shell ran all the way through which it said it did. But when I checked my photos there was nothing there and I have the folder which it should be trying to save to. Any ideas?
R_Chin said:
So I put the command in and I have root and I ran the shell with a pop-up after to make sure the shell ran all the way through which it said it did. But when I checked my photos there was nothing there and I have the folder which it should be trying to save to. Any ideas?
Click to expand...
Click to collapse
Could you check the path of the folder where you want to store the screenshots? Is it /storage/emulated/0/Pictures/Screenshots? Otherwise you have to use the path to your folder instead. For quick verification of the functionality of the task you can run the task from Tasker by clicking on the triangular symbol in the left corner when you have selected the ScreenshotProx task.
I assume you have granted super user access to Tasker via SuperSU or whatever super user app you are using.
orville87 said:
Could you check the path of the folder where you want to store the screenshots? Is it /storage/emulated/0/Pictures/Screenshots? Otherwise you have to use the path to your folder instead. For quick verification of the functionality of the task you can run the task from Tasker by clicking on the triangular symbol in the left corner when you have selected the ScreenshotProx task.
I assume you have granted super user access to Tasker via SuperSU or whatever super user app you are using.
Click to expand...
Click to collapse
Yes the file path is correct and tasker has permission. I went to run the screenshotprox and it went through everything gave the if task a green light but didn't go to the screenshot command
R_Chin said:
Yes the file path is correct and tasker has permission. I went to run the screenshotprox and it went through everything gave the if task a green light but didn't go to the screenshot command
Click to expand...
Click to collapse
I attached my setup. Please check if you have the same on your device.
The task ScreenshotCommand is the same as the ScreenshotProx.
Some German translations (IDK why Tasker had those commands in German with overall language set to English):
Shell ausführen = Run Shell
Popup-Benachrichtigung = Flash
orville87 said:
So, I found this plugin, which you can use to trigger a screenshot in Tasker.
Click to expand...
Click to collapse
orville87 said:
I attached my setup. Please check if you have the same on your device.
The task ScreenshotCommand is the same as the ScreenshotProx.
Some German translations (IDK why Tasker had those commands in German with overall language set to English):
Shell ausführen = Run Shell
Popup-Benachrichtigung = Flash
Click to expand...
Click to collapse
I just went through there were a couple things different but i changed everything to be like yours. I even went into the screenshotcommand task and played it and as my finger went over the sensor it turned the if statement to green and then back to red when removing my finger, it just doesnt take the screenshot. If i run the proxset manually then run the screenshotcommand it will go through everything and give a toast notification but then no pciture. I am going to try and change the path so it just goes in my pictures instead of a sub folder.
R_Chin said:
I just went through there were a couple things different but i changed everything to be like yours. I even went into the screenshotcommand task and played it and as my finger went over the sensor it turned the if statement to green and then back to red when removing my finger, it just doesnt take the screenshot. If i run the proxset manually then run the screenshotcommand it will go through everything and give a toast notification but then no pciture. I am going to try and change the path so it just goes in my pictures instead of a sub folder.
Click to expand...
Click to collapse
Hmm, maybe you have to cover the proximity sensor a little bit longer.
orville87 said:
Hmm, maybe you have to cover the proximity sensor a little bit longer.
Click to expand...
Click to collapse
Correction upon inspecting my files via root explorer i noticed it is taking the screenshots. It just isnt showing up in the gallery. Any idea. And also in tasker it doesnt seem to be running the SetProx task all the time. Like the profile isnt green.
R_Chin said:
Correction upon inspecting my files via root explorer i noticed it is taking the screenshots. It just isnt showing up in the gallery. Any idea. And also in tasker it doesnt seem to be running the SetProx task all the time. Like the profile isnt green.
Click to expand...
Click to collapse
Okay, so it is capturing the screenshots. Good. Maybe you have disabled the media scanner for your device or put a .noMedia file into the Screenshots folder, thus the screenshots are not shown in your gallery.
The SetProx task will only been triggered if you cover the proximity sensor due to the fact that it reacts to the state Proximity, which is only being activated when the proximity sensor is covered. Try covering the proximity sensor while in the Profile section of Tasker and you may see that the ProxVar profile's name will turn green.
R_Chin said:
Correction upon inspecting my files via root explorer i noticed it is taking the screenshots. It just isnt showing up in the gallery. Any idea. And also in tasker it doesnt seem to be running the SetProx task all the time. Like the profile isnt green.
Click to expand...
Click to collapse
if u guys need a app for this , maybe i can code one using all the useful u guys have provided in the post, would you guys be interested in such a app??
orville87 said:
Hmm, maybe you have to cover the proximity sensor a little bit longer.
Click to expand...
Click to collapse
orville87 said:
Okay, so it is capturing the screenshots. Good. Maybe you have disabled the media scanner for your device or put a .noMedia file into the Screenshots folder, thus the screenshots are not shown in your gallery.
The SetProx profile will only being triggered if you cover the proximity sensor due to the fact that it reacts to the state Proximity, which is only being activated when the proximity sensor is covered. Try covering the proximity sensor while in the Profile section of Tasker and you may see that the profile's name will turn green.
Click to expand...
Click to collapse
So how would i fix the media scanner so that it shows in my gallery. And yea i realized after i said that it was because i wasnt activating it haha. Also thank you so much for your help, you are helping me understand tasker more as i am semi new and also I hated taking screenshots with the buttons.

Categories

Resources