Home screen variable? - Tasker Tips & Tricks

hi every body!
Im new in Tasker, so I have a simple quesion
Is there a variable on homescreen?
Or how do I make it?
Thanks for reading

Go home
Not you
[spoil]
{
"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"
}
[/spoil]
or be more precise.

No, this is not what i want. I want a variable which avaiable when the screen stay on homescreen. Not go to home.
Sorry, my english is bad

%WIN
You need accessibility services enabled.
Sent from my SM-G928F using Tapatalk

@Mark2014
Mine too, do not worry
Make a profile:
Profile: Any Window Name (301)
Event: New Window [ Label:* Window Type:Any ]
Enter: Anon (302)
A1: Flash [ Text:%WIN Longff ]
you see how %win name your homescreen.

@frrancuz.
Tks so much.
It work like a charm :victory:
But on my phone, Flash Act doesn't work, so I replace it by a Popup, and it make me crazy to close the popup window :silly:
Now, I ready to setup a profile to lock my phone only on homescreen and on a flat place, but it will stay 5s before.

Mark2014 said:
@frrancuz.
Tks so much.
It work like a charm :victory:
But on my phone, Flash Act doesn't work, so I replace it by a Popup, and it make me crazy to close the popup window :silly:
Now, I ready to setup a profile to lock my phone only on homescreen and on a flat place, but it will stay 5s before.
Click to expand...
Click to collapse
You don't need the Popup action...but the rest
you could have a "wait for 1ms" action instead

ks123 said:
You don't need the Popup action...but the rest
you could have a "wait for 1ms" action instead
Click to expand...
Click to collapse
Tks, It's very useful

Hi guys, I have a note 8 running Android Pie and could really use some help.
I searched the net and this is the closest to the answer I could find.
I want to change the navigation bar for every app. I am currently able to do this with every app EXCEPT the home screen.
I have created a profile using Variable Set for events:
Variable
%WIN
Value
"Name of app window"
The home screen window name for Touchwiz is "Home screen, Page 1 of 2 Default page"
I have tried using; Home screen, Page 1 of 2 Default page Home, Home screen, Homescreen, Home
None of the above trigger the event / Task.
I have also tried using the application "TouchWiz" as the event trigger. However, TouchWiz is not listed in the applications selection screen. So it can not be selected.
How can I use the home screen as a trigger?

JameyS said:
Hi guys, I have a note 8 running Android Pie and could really use some help.
I searched the net and this is the closest to the answer I could find.
I want to change the navigation bar for every app. I am currently able to do this with every app EXCEPT the home screen.
I have created a profile using Variable Set for events:
Variable
%WIN
Value
"Name of app window"
The home screen window name for Touchwiz is "Home screen, Page 1 of 2 Default page"
I have tried using; Home screen, Page 1 of 2 Default page Home, Home screen, Homescreen, Home
None of the above trigger the event / Task.
I have also tried using the application "TouchWiz" as the event trigger. However, TouchWiz is not listed in the applications selection screen. So it can not be selected.
How can I use the home screen as a trigger?
Click to expand...
Click to collapse
I see you got your answer on the Tasker Google group. For continuity, I'm going to post Robert's reply that you liked from there, here.
Use the App Changed event:
Profile: Detect Home
Event: App Changed
Package: com.sec.android.app.launcher
Enter:
A1: Flash
Text: You are home
Long: Off
Click to expand...
Click to collapse

Related

[Tutorial] How to set up sms/call/email count with tasker and minimalistic text

Since tasker can be complicated ive tried to make this as simple as possible even though it might not seem like it. This is my first tutorial so constructive criticism and comments are appreciated!
NOTE: If you dont know what Tasker is research it and what it does otherwise you wont understand this tutorial.
1. Setting up the first profile
A. Okay first we need to start a new profile in tasker by clicking "new" on the bottom.
Name it whatever you want or leave it blank.
Your first profile should look like this once completed:
{
"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"
}
2. Setting when your context so tasker will know when its supposed to do something
A. You want your context to be "received text".
Choosing through menus go to "Event>Phone>Received Text"
3. Setting up what tasker is supposed to do when the "conditions/context" are met
A. Next we need a task, name it whatever you want or leave it blank. Add a task by clicking the plus on the bottom left. When choosing actions you want to navigate to "Variable>Variable Set"
When setting up this variable, you want it to look like this:
Make sure there are spaces between the + and 1 and "Do Maths" is checked otherwise it wont display right.
4. Setting up tasker so it will send the sms count to Minimalistic Text widget
A. Add a 2nd task by clicking the plus on the bottom left. When choosing an action navigate to "Plugin>Minimalistic Text variable settings. The settings will show up, set them up like this:
Okay so we've set up a profile to add a 1 to the count everytime you have a new text. Problem is, we have to set up another profile to reset the count to 0 after youve read your texts
5. Setting up the 2nd profile so your sms app to reset the count to 0 when closed
A. Start a new profile, name it or not, and add a context of "Application>whatever messaging app you use here". I use chompsms so for me its "Application>chompsms".
It will look like this when completed:
B. Set up the new variable like so:
This will reset the counter to zero everytime you close out of your messaging app
EDIT: its also possible to have not have the zero displayed so theres nothing there. Instead of using "variable set" use "variable clear" with the variable your using.
THANKS: ayhaadam for reminding me of this
C. Add one more variable to have Tasker display it through Minimalistic text. Its the same set up as step 4A
6. Setting up minimalistic text to display tasker variables
A. Create a new minimal text widget on your homescreen/lockscreen and choose "custom layout". Add "Locale Variable" from Misc and set up the variable name to be % MNMLMSGCOUNT
NOTE: Minimal text will not add "SMS" or "MESSAGES" in front of the count. You have to manually add it with "Static Text" under Misc
Exapmles of how i use it:
Please leave questions or comments if you have them and since i did this on my phone i will check how it looks on a computer soon
Thanks: thedesolatesoul for explaining to me how to set this up! He should post a screen of his so we'll see how his is set up
Update 2-10
Missed Call Count: call count is achieved by following the tutorial and changing "MSGCOUNT" to "MISSEDCALL" and changing the 2nd profile app to phone
Update 2-11
Unread Email Count: this works with only K-9 since its open source. Same set up for sms count just different context "K9 Email Received" and different variable "%UNREADEMAILCOUNT". The 2nd profile context to set it to zero is app "K9"
thanks for the guide! this is wayy shorter than the other variants
i think a couple images are missing though
I appreciate you posting this.. always looking for new ways to use Tasker.. I've only scratched the surface so far..
Thanks guys! Ill add more pictures too
Do you have any other cool things you've done with Tasker?
rrambo said:
Do you have any other cool things you've done with Tasker?
Click to expand...
Click to collapse
Ive only used it for sms but you can use it for weather, call count, battery, just about anything
Great TUT, thank-you very much!
giank30 said:
Great TUT, thank-you very much!
Click to expand...
Click to collapse
No problem
Hi,
Awesome, I will try !!
Edit : I succeed everything, only one. When I go in Minimalistic, I create my own, and in my homescreen there is : "SMS : " but no 0 with ..
Have you got any idea?
( I am so sorry for my bad english, I hope you understand..)
Loam1990 said:
Hi,
Awesome, I will try !!
Edit : I succeed everything, only one. When I go in Minimalistic, I create my own, and in my homescreen there is : "SMS : " but no 0 with ..
Have you got any idea?
( I am so sorry for my bad english, I hope you understand..)
Click to expand...
Click to collapse
Try going into your sms app and then hitting home or back
Nothing happens
I don't understant, I did like you said
In minimalistic, it's writing : "SMS[LOCTV]
Loam1990 said:
Nothing happens
I don't understant, I did like you said
In minimalistic, it's writing : "SMS[LOCTV]
Click to expand...
Click to collapse
Did you set LOC to %MNMLMSGCOUNT?
In "Variable Name" ? I did..
Great post!
Loam1990 said:
In "Variable Name" ? I did..
Click to expand...
Click to collapse
Hmm im not sure. With the app profile make sure your variable is set "To 0"
It is in "To 0"...
Maybe I found the problem ! Tasker says me "no profil active", is it the problem ? How can I active my profil ?
Sorry for all my questions
Loam1990 said:
It is in "To 0"...
Maybe I found the problem ! Tasker says me "no profil active", is it the problem ? How can I active my profil ?
Sorry for all my questions
Click to expand...
Click to collapse
Haha its alright. Make sure all your profiles are checked on the right and in the bottom right make sure the on is green like so:
Then hit apply and it should work fine
I don't understand, everything looks good, but nothing happens ! I don't understand
Loam1990 said:
I don't understand, everything looks good, but nothing happens ! I don't understand
Click to expand...
Click to collapse
Do you have a task killer running? Im not sure if it matters with tasker but i always set it to "ignore"
Our next option - post your screens of your tasks from the task edit menu
Sent from planet earth
Nice work akoe...i like the direction this is heading in
Loam1990,
You need to break down what actually isnt working
First find out if the context is being triggered, then find out if the task is working, then find out why the variable isnt reaching minimalistic text
...and easy way to do this is go into the tasks you made for clearing the count, and press the 'Test' button at the bottom
If it works it means your tasks are fine and your context is wrong
otherwise your context is right but your tasks/variables are wrong
anyways...just wanted to post my screenshot too

[HOW TO] Enable quick launch on Droid 4 (Android 4)

1. Launch the app by opening Terminal and running:
am start -a android.intent.action.MAIN -n com.android.settings/.quicklaunch.QuickLaunchSettings
2. Or download and install Manual Intent Shortcuts in market which can create the shortcut as follows:
Action: android.intent.action.MAIN
Component Package: com.android.settings
Component Class FQN: com.android.settings.quicklaunch.QuickLaunchSettings (not Settin gs =>Settings )
{
"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"
}
Sent from my DROID4 using xda app-developers app
Really neat stuff. works perfectly!
I was wondering if it is possible to completely disable quick launch in a similar way? I have a droid 4 with a physical keyboard that is running jellybean so the regular quick launch menu isn't available to disable it. I followed your directions and I am able to open quick launch with the terminal, but I can't set the preset shortcuts to nothing, I can only select another app. Any help would be greatly appreciated.
Tanzior said:
1. Launch the app by opening Terminal and running:
am start -a android.intent.action.MAIN -n com.android.settings/.quicklaunch.QuickLaunchSettings
2. Or download and install Manual Intent Shortcuts in market which can create the shortcut as follows:
Action: android.intent.action.MAIN
Component Package: com.android.settings
Component Class FQN: com.android.settings.quicklaunch.QuickLaunchSettings (not Settin gs =>Settings )
View attachment 1804512
Sent from my DROID4 using xda app-developers app
Click to expand...
Click to collapse
Foxgirl17 said:
I was wondering if it is possible to completely disable quick launch in a similar way? I have a droid 4 with a physical keyboard that is running jellybean so the regular quick launch menu isn't available to disable it. I followed your directions and I am able to open quick launch with the terminal, but I can't set the preset shortcuts to nothing, I can only select another app. Any help would be greatly appreciated.
Click to expand...
Click to collapse
can't find any way to deselect things, sorry.
wanted to add though that another way of accessing quick launch is using nova launcher, some other launchers would allow it too. long-press on home screen > short cuts > activities > expand "settings" > QuickLaunchSettings
keflexxx said:
can't find any way to deselect things, sorry.
wanted to add though that another way of accessing quick launch is using nova launcher, some other launchers would allow it too. long-press on home screen > short cuts > activities > expand "settings" > QuickLaunchSettings
Click to expand...
Click to collapse
Ok, thanks a lot. The problem I was having was that while texting with the physical keyboard it would randomly open up the phone app and start typing whatever I was typing into the contact search and subsequently calling people before I realized what was happening. I assumed this was a problem with the quick launch selecting the contacts app and causing problems for me. I really don't know how the quick launch was being activated in the first place though as the only "search" button I have that activates the quick search is located on the face of the phone and I know I am not pressing it. Do you know of any other methods of activating quick launch which a physical keyboard or if there is a glitch with a phone that was upgraded from ICS to Jellybean?
Thanks again,
Foxgirl17
Try rebooting your phone
Foxgirl17 said:
Ok, thanks a lot. The problem I was having was that while texting with the physical keyboard it would randomly open up the phone app and start typing whatever I was typing into the contact search and subsequently calling people before I realized what was happening. I assumed this was a problem with the quick launch selecting the contacts app and causing problems for me. I really don't know how the quick launch was being activated in the first place though as the only "search" button I have that activates the quick search is located on the face of the phone and I know I am not pressing it. Do you know of any other methods of activating quick launch which a physical keyboard or if there is a glitch with a phone that was upgraded from ICS to Jellybean?
Thanks again,
Foxgirl17
Click to expand...
Click to collapse
I used to have the same problem when I was running the stock ROM. Occasionally while using the physical keyboard, the phone would start jumping to random programs. The problem wasn't consistent, but was easily solved by rebooting the phone. I haven't had the issue since switching to AVATAR ROM. Must have been a bug in the stock software.

[Guide][Difficulty: Intermediate] Dynamic pop-up menu for any number of items

What is this
This is a menu in which the height is dynamically adjusted to fit the number of items. It is also semi-transparent. For the full effect, see the sample screenshots below.
If there are too many items in your menu to fit on the screen, then you can scroll through the menu.
In portrait view it shows only one column. In landscape view, it shows only one column if it can fit all the items in one column, otherwise it divides all the items equally between two columns, so you can end up with two columns that can each be scrolled through.
Portrait view
{
"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"
}
Landscape view, if items can fit in a single column
Landscape view, if items cannot fit in a single column
How to use this
Import the attached profile into Tasker.
To use this, run the attached task and send a list of your keywords separated by three commas ,,, as parameter 1, and set any custom variable as the return variable. In my task in the screenshots, I use %selected_item as the return variable in my sample screenshots. Having three commas as the separator allows you to make menu entries that contain a comma in them, such as the mobile network selection menu in one of my screenshots.
You can optionally send a single ignored keyword as parameter 2. If you tap on something that matches parameter 2, then the menu will not close and will only flash an alert message asking you to select something else. This is useful for making separators in the menu, like the ---------- in my screenshots below.
A 'Cancel' button is automatically added to the top of the list.
If you press the Back button, then "Back" (without quotes) is returned by the task. This is useful if you decide to nest a number of menus within each other. You can then use an if condition to check whether the returned variable matches "Back", and if it does, you can use a Goto to send the task to a higher level menu's starting point.
Screenshots to help you set this up
Full album - http://imgur.com/a/3znC7 or see the screenshots individually below.
Example shot of parameters, return variable, and label. The next screenshot shows it coming back to this action if the user presses the Back button.
If-Else example, and nesting one menu inside another
More samples of what it looks like
Sample shot 1, %par2 being ignored as input
Sample shot 2
Sample shot 3
and finally, here's where I launch it from: Tasker drop down menu.
For bugs, etc, go ahead and whine in this thread.

Tasker and Google Maps, action Tap, Done button ?

Hello guys. When google maps completes a trip it displays a completed trip splash screen where one has to click Done in order to continue. I do lots of trips and would like to automate this with tasker.
I would like to schedule a task that will execute click of Done at the end of the trip so maps can go to their default screen of showing your location. I do lots of trips and i find this splash screen unnecessary.
Most of the tutorials i found use time as variable but time will change all the time so can not use time and need to use some other variable. Not sure how to set this up especially the variables.
Anyone can help me out what actions to setup in Tasker in order to execute this after each trip completes? Thank you in advance.
Get AutoInput Tasker Plugin. Then create a Profile-->event-->Plugin-->AutoInput-->UI Update. Set it up using guides/tutorials to monitor Google Maps for that "Done" button to appear. Then for the task, use AutoInput to automatically tap the "Done" button for you.
Watch a bunch of tutorials about AutoInput....it is the key here.
Stupifier said:
Get AutoInput Tasker Plugin. Then create a Profile-->event-->Plugin-->AutoInput-->UI Update. Set it up using guides/tutorials to monitor Google Maps for that "Done" button to appear. Then for the task, use AutoInput to automatically tap the "Done" button for you.
Watch a bunch of tutorials about AutoInput....it is the key here.
Click to expand...
Click to collapse
Hi @Stupifier Thank you for that. I think i'm getting there but have last hurdle. One thing i'm uncertain now.
Do i choose for text YOU HAVE MADE or DONE ?
Should i check only clickable and "DONE" text and ONLY visable "YOU HAVE MADE IT" text ?
Anything for Variables ? After i create Profile and set all of that it won't let me complete without setting tasks. It want's to delete unfinished profile as no tasks have been set.
Here is the task / splash screen what i need to auto task / auto input. The automation of click "auto click" needs to be executed on Done button.
{
"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"
}
What to put in for Text. Do i choose for text YOU HAVE MADE or DONE ?
Should i check only clickable and "DONE" text and ONLY visable "YOU HAVE MADE IT" text ?
Tasker won't let me complete it without tasks setup. I thought autoinput would set this up based on what i inputed into fields in screenshot above. I guess tasks are still missing? Thoughts?

About to give up - Galaxy S21 / Always use Temporary Mute

Can anyone please help me out here
- I would greatly appreciate it as I am about to give up after trying to make this work for absolute ages.
Profile: Set Temporary Mute (2)
Restore: no
State: Custom Setting [ Type:Global Name:mode_ringer Value:0 ]
Enter: Anon (7)
A1: Custom Setting [ Type:Global Name:mode_ringer_time_on Value:1 Use Root:Off Read Setting To: ]
A2: Custom Setting [ Type:Global Name:mode_ringer_time Value:3 Use Root:Off Read Setting To: ]
So what I am trying to achieve is a Profile that runs every time I set my phone to Mute, and sets the setting "Temporary Mute" for 3 minutes.
I have used the Find functionality within Tasker and so I now 100% positively that my settings are identical to how they are set when I do it manually via the GUI.
Still the outcome is different, and i cannot for the life of me figure out why.
When setting it manually, a countdown starts (see screenshot, "Remaining time: [counting down]).
When I do it via Tasker I get a "Null" value in the place where the countdown should have started (see screenshot).
I am pretty new to Tasker so I am hoping someone experienced out there can make some suggestions as to why this would happen.
{
"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"
}
this might not help you out but just for a guideline ....
TASK ( use If statement )
Action 1
Conditions : if %VOLR >1
OR
Conditions : if %VOLN >1
Action 2
set you ringing volume to "0"
set you notification volume to "0"
Action 3
wait 3 minutes
Action 4
restore ringing volume to normal
restore notification volume to normal
Assign an icon for this task.
Close down completely the Tasker Apps.
Go to your desktop & please widget of this task on desktop.
So that each time you press this icon it will work all above action and count 3 mins then automatically restore all tones back to normal.
Thank you very much.
edmond.
eeeemc said:
this might not help you out but just for a guideline ....
TASK ( use If statement )
Action 1
Conditions : if %VOLR >1
OR
Conditions : if %VOLN >1
Action 2
set you ringing volume to "0"
set you notification volume to "0"
Action 3
wait 3 minutes
Action 4
restore ringing volume to normal
restore notification volume to normal
Assign an icon for this task.
Close down completely the Tasker Apps.
Go to your desktop & please widget of this task on desktop.
So that each time you press this icon it will work all above action and count 3 mins then automatically restore all tones back to normal.
Thank you very much.
edmond.
Click to expand...
Click to collapse
Thank you, that's a workaround that will work I believe.
I kind of got stuck in being annoyed about not getting why the way in the original question wouldn't work
dBqtjPxBDLHy2BA said:
Thank you, that's a workaround that will work I believe.
I kind of got stuck in being annoyed about not getting why the way in the original question wouldn't work
Click to expand...
Click to collapse
If my suggestion is working for you .... don't struggle with why the original method is not working....
( honestly , I faced the same in the past as you mentioned and somewhat I see solution little later from other places )
Thank you very much.
edmond

Categories

Resources