Introduction:
So you have a Pebble and you love how you can check your emails and mute your boss's call without even looking at your phone?
It's all really cool, but if you're anything like me, that's just not enough. You want to do more with even less effort.
How can we expand the possibilities to near-infinity?
With the help of three awesome apps:
- Tasker [Paid]
- AutoPebble [Free/Paid]
- PebbleTasker [Paid]
Other apps mentioned in this guide:
- Canvas for Pebble [Free]
- Calendar for Pebble [Free]
Note: You can use the free version of AutoPebble, but Tasker is a must.
I believe most of you know how powerful tool Tasker is, so imagine all those possibilities on your wrist and let's do something practical:
The Basics of AutoPebble:
Every watchapp, that has a companion app or a settings in the Pebble app communicates through the Pebble app itself.
AutoPebble's purpose is to intercept and filter these communications right from Tasker and execute tasks accordingly.
My favorite feature is the ability to start watchapps on your Pebble.
One of my profile:
When I press button DOWN in Canvas it will load the Calendar watchapp.
1) To be able to load an app, we need to know the apps UUID (it's an id that is unique to every app):
a) start the AutoPebble app on your phone (you don't have to install the watchapp, it is for more advanced stuff) and make sure the "Automatically Detect" is ticked.
{
"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"
}
b) now start the Calendar watchapp on your Pebble, AutoPebble should recognise its UUID.
c) in AutoPebble open "Manage Other Pebble Apps" and longpress on the new entry, it is convenient to rename it to Calendar, now longpress again and Enable it
(if AutoPebble doesn't recognise an app, you have to manually type in the UUID, Calendar's one is: b41e3dcf-6162-4147-9c58-643e1091fb93)
d) now you have to do the same with Canvas (it's UUID is 654db887-5135-4b22-be8b-2e1b5c0cb49d)
(you have to do this procedure for every watchapp you'd like to interact with)
2) Open Tasker and create a new task:
a) add an action to it: Plugin->AutoPebble App
b) click on Configuration and scroll down to Other Pebble App, choose Calendar from the list
c) click on Action and choose Open
Note: now if you execute the task, the Calendar watchapp should start on your Pebble
3) Check the buttons and values we want to trigger the task:
a) open AutoPebble app on your phone
b) check Log other Apps
c) go to Log Listing
d) press the button on your Pebble while in Canvas (Canvas' button's are 200 and values are CL_S1 for UP, CL_S2 for SELECT and CL_S3 for DOWN)
4) Open Tasker and create a new profile:
a) choose State->Plugin->AutoPebble Other App
b) click on Configuration
c) App: Canvas
d) Direction: Watch To Phone
e) Key Filter: 200
f) Value Filter: CL_S3
Important: to make this work, uncheck every watchface in the Canvas app, except the active one
Now if you press the DOWN button while in Canvas, Tasker will catch the command and launch the Calendar watchapp.
Additional notes: This only works with watchfaces that actually send commands to the phone and sadly the BACK button cannot be intercepted.
PebbleTasker:
PebbleTasker is a handy watchface, that lets you execute any Tasker task on your phone. I'm no Tasker guru, but I use it to mute my phone, turn on/off tethering, and launch more watchfaces.
If you launch the PebbleTasker app on your phone, you can assign 3 Tasker task to the three button and one-one to longpress UP/DOWN.
If you click on "More..." and "Select Tasks for menu" you can assign another 20 tasks to the list which comes up if you longpress SELECT.
Tip: If you create an AutoPebble App task with a "Key filter: 0" you can start Canvas (or anything) on a button press in PebbleTasker while the task is being executed on your phone.
Outro:
This guide only covers the very basics of these awesome apps, but if you grasp these concepts you can do pretty much anything Tasker can do without taking out your phone and make app switching on your Pebble more dynamic.
I hope you appreciate my guide and find it useful. :fingers-crossed:
Not so bright... I have the calendar on Pebble but can't do anything with it. This step:
d) press the button on your Pebble (Canvas' button's are 200 and values are CL_S1 for UP, CL_S2 for SELECT and CL_S3 for DOWN)
WHICH button on my Pebble?
@rogerperk:
The one you want to use to start calendar. It can be any one of the UP, SELECT, DOWN.
This step's reason is to see what commands the buttons in different watchapps send to the phone (or to check if they send any).
Erovia said:
@rogerperk:
The one you want to use to start calendar. It can be any one of the UP, SELECT, DOWN.
This step's reason is to see what commands the buttons in different watchapps send to the phone (or to check if they send any).
Click to expand...
Click to collapse
Yeah, that's what I thought. Can't seem to get it to work though. Let me try again... Can't get it to pull up though. I lose it at setp 4 - Create Another State.
@rogerperk: I've just realised I've made a few mistakes and corrected them.
Erovia said:
@rogerperk: I've just realised I've made a few mistakes and corrected them.
Click to expand...
Click to collapse
Well I must be doing something wrong because I get to step 3 (check buttons) and it doesn't work.
You have Canvas and Calendar in AutoPebble's "Manage Other Pebble Apps" list?
Are they enabled?
Is "Log other Apps" turned on?
Is there any info in the "Log listing"?
erovia said:
you have canvas and calendar in autopebble's "manage other pebble apps" list?
are they enabled?
is "log other apps" turned on?
is there any info in the "log listing"?
Click to expand...
Click to collapse
yes
yes
yes
yes. A bunch of in app licence success notifications.
@rogerperk: You have to be in Canvas to catch its button values.
Erovia said:
@rogerperk: You have to be in Canvas to catch its button values.
Click to expand...
Click to collapse
Maybe I"m missing something. I now have calendar and weather on my up and down buttons. But I thought they would open those programs from my main watchface, which is a Canvas face. Instead I have to go into PebbleTasker, through the menu, on my watch and activate them. Is that right??
PebbleTasker simply starts Tasker tasks on your phone. To be able to use the buttons we have to use AutoPebble.
Also, Canvas have to be installed as a watchapp, because watchfaces can't send commands to your phone.
Related
Dear All,
is there anyway we can make the ok button to close the applications instead of minimizing it.
Go to "settings">"system">"task manager">"button" and make your choice.
prubin said:
Go to "settings">"system">"task manager">"button" and make your choice.
Click to expand...
Click to collapse
sorry i was not clear, i mean the hardware button, not the one with the task manager.
I'd like this, too.
If you tap the X on the screen with your finger or stylus, it closes the app. If you press the OK button (much easier), the app keeps running
If you don't have it, AE Button Plus is a must have app. You can assign multi functions to every button. I have OK set to close, Plus double tap and tripple tap options to launch some apps.
I use AE button plus, and like it. But if all you need to do is close an app, you can do it with the phone completely stock just by clicking the end call button.
gwassef said:
sorry i was not clear, i mean the hardware button, not the one with the task manager.
Click to expand...
Click to collapse
You could try VJOkButt ,the author used to be very active on these boards, mapped to buton 4. I have not tried this on my Kaiser. It worked well on my Wizard but eventually got replaced by SmartsKey.
dscline said:
...if all you need to do is close an app, you can do it with the phone completely stock just by clicking the end call button.
Click to expand...
Click to collapse
You sure about that? I have a stock Tilt and that doesn't work. Task Manager shows the app is still running in the background.
KCMatt said:
...doesn't work. Task Manager shows the app is still running in the background.
Click to expand...
Click to collapse
I'm sorry, you're right. I had used that a few times before I loaded AE button, and my recollection was that it closed them. I see now that it just brings you back to the home screen. In that case, AE button is a good choice to accomplish what you want. And you can keep the stock functionality of the ok button, and put close on a double-click, or click-hold if you like.
Thanks alot for all your contributions, i will give it a try.
I wrote a MortScript that uses the MouseClick command to click in the upper right-hand corner, and then used AEBPlus to map the OK button to it. I had to map it to one of AE's virtual buttons first and then make the change in the standard Settings | Buttons.
greenbep said:
I wrote a MortScript that uses the MouseClick command to click in the upper right-hand corner, and then used AEBPlus to map the OK button to it. I had to map it to one of AE's virtual buttons first and then make the change in the standard Settings | Buttons.
Click to expand...
Click to collapse
If you already have AEBPlus, you don't have to do all that. It has a "close active application" command built in. You simply map whatever you want to that. I have it mapped to a press-hold of the OK button.
dscline said:
If you already have AEBPlus, you don't have to do all that. It has a "close active application" command built in. You simply map whatever you want to that. I have it mapped to a press-hold of the OK button.
Click to expand...
Click to collapse
That is the best solution. AEBPlus is a must have application.
dscline said:
I have it mapped to a press-hold of the OK button.
Click to expand...
Click to collapse
How have you done that?
dscline said:
If you already have AEBPlus, you don't have to do all that. It has a "close active application" command built in. You simply map whatever you want to that. I have it mapped to a press-hold of the OK button.
Click to expand...
Click to collapse
True, but I also use the script for other context-sensitive commands depending on the program (I use the same side OK button for "back" in PIE). Call me crazy.
athanaso77 said:
How have you done that?
Click to expand...
Click to collapse
If you have AEBPlus installed, you simply run it, select the button you want to change (in this case, button 4 is the OK button), click in the box down below the button selection, then in the first drop-down you tell it you want that button handled by AEBPlus, and in the second drop-down you select what type of keypress you want to assign (in this case, single press), and in the third drop-down, you select what you want a single press to do (in this case, "OK/Close", then go back to the second drop down and select "long press", and then back to the thrid drop-down and tell it what you want to do for a long press (in this case, "close active application"). Then just exit AEBPlus.
Thank you both (dscline & panosha) for the info !
Dinarsoft HandySwitcher
http://www.dinarsoft.com/handyswitcher/
The mother of Task Manager software & Button3.
Task Manager
Pretty.
Clean.
Don't show big options item menu.
Can add some addition item menu or none.
Click [x] button to really exit application.
Show real icon from running application.
Hardware button (Button3) can really exit application.
[ok] is ok.
[x] is really exit application.
I can sleep tight now after reaserch 8 hrs. and reading many articles here.
{
"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"
}
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
Android 5.0 Lollipop added the ability to keep your device unlocked so long as you stay connected to a trusted bluetooth device. Dubbed "Smart Lock", the feature is quite useful if you own a smart wearable that you keep on you at all times. However, Smart Lock is unavailable for devices that connect to your phone via Bluetooth Low Energy. Some manufacturers offer the ability to simulate Smart Lock through keeping their app on in the background (such as Xiaomi's Mi Band and the Mi Fit app), but others do not.
If you, for instance, own a basic Fitbit or one of the new Honor Z1 bands among others, then you'll be able to keep your phone unlocked so long as your wearable is in range of your phone by following this Tasker guide.
Prerequisites
Secure Settings plug-in
Bluetooth 4.0 LE enabled device
A Bluetooth LE Scanner app
Instructions
Ensure that Secure Settings is set as a Device Administrator by opening the app and going to the Preferences screen. This is so the plugin has the ability to enable/disable the lockscreen.
Bring your phone and your device close together. Open the BLE Scanner app you downloaded above, and press SCAN.
Write down the MAC ID of the device that shows up at the top of the list. This should be the address of the Fitbit or other wearable, in case the name doesn't properly populate.
Click + to create a new Profile and name it "Watch Near" or anything else you want.
Select the State context, then select "BT Near" under "Net."
Once you're in the BT Near setting, type in the Bluetooth Address that you wrote down earlier under "Address." Additionally, select "Low-Energy (LE) Devices" and "Unpaired Devices". Leave everything else unchecked and/or default.
Press the back key to save and exit the context setup.
Tasker will now ask you to set up a new task associated with this context. Click on "New Task" and optionally give the task a name. Before we move on, here's a picture of what the context screen should look like.
{
"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"
}
Now that you've got the context set-up, we're going to make a simple entry and exit task to correspond to when your phone connects/disconnects to your smart wearable.
Plugin --> Secure Settings. Under the Dev Admin Actions dropdown, select Password/Pin. Make sure that the box is set as "DISABLED" and that Device Admin Enabled is checked. Press the save icon up top to exit, then press the back key once you're back in Tasker.
Press back once more to exit the task creation. Now expand the Profile you just created by tapping on its name. Long-press on the Task that launches, the select "Add Exit Task."
Within this new task, you're going to do the opposite of what you did above. Plugin --> Secure Settings. Select Password/Pin under Dev Admin Actions again, but this time change the box to "ENABLED" and set up the password or pin code that you desire. Exit out all the way after you're done.
That's it! Your phone should now automatically disable the pin/password when your bluetooth device is in range, otherwise it will re-enabled it. You can expand the power of this task by adding some alerts for when your device and phone disconnects, the choice is up to you!
Does it work only with bt le?
Enviado do meu Mi 4i
mclaudio77 said:
Does it work only with bt le?
Enviado do meu Mi 4i
Click to expand...
Click to collapse
Smart Lock already works with regular bluetooth devices out of the box, so I wouldn't recommend using Tasker for that. But yes, if you put in the Bluetooth MAC ID into Tasker it will work the same way.
Does not work with my meizu pro5 and Xiaomi mi band 1s (Android 5.1.1)
Still I need to put my finger on finger scanner or putting the pin code to unlock the device
Will it break the device protection and the encryption
This is great thanks, I am using this with a cheap Bluetooth tracker keyring I got from eBay for 99p.
Edit
I need to test this a little more with the tag. The tag seems to power its self off which means it doesn't then trigger BT Near.
Where is the Secure Settings plug-in? There is an app of that name, by intangibleObject - is that what you mean?
fjuniper said:
Where is the Secure Settings plug-in? There is an app of that name, by intangibleObject - is that what you mean?
Click to expand...
Click to collapse
The Secure Settings Plugin is in an app called "Tasker".
However, having setup this instructions it seems to me that Secure Settings or TAsker never triggers a lockscreen/password protection to be active. What is your default state ? OS Version ? Do you have any initial password options enabled ?
deepsync said:
The Secure Settings Plugin is in an app called "Tasker".
Click to expand...
Click to collapse
Ah, thanks - I have Tasker, but didn't realise what the OP meant.
deepsync said:
However, having setup this instructions it seems to me that Secure Settings or TAsker never triggers a lockscreen/password protection to be active. What is your default state ? OS Version ? Do you have any initial password options enabled ?
Click to expand...
Click to collapse
I haven't had time to try it yet - I am on Marshmallow and have a BT LE step counter to test it with, when I have a chance.
Please Do. It works but somehow Timing of tasker to Check connection is not really good
This can be accomplished using the delayed lock app in conjunction with the Tasker plugin without having to use secure settings
Sent from my Nexus 5 using Tapatalk
Hi,
Kindly help me to automate this task using Tasker.
I am using Oneplus 3 with CM14.1. I have already created a task which automatically enables Wifi whenever I am near to home or office (using Cella near). That is working fine.
In my office, whenever we connect to WiFi, it is showing a notification asking to enter username and password. I have to enter the username and password every time when I disconnect and reconnect.
How can I automate this authentication process using Tasker?
These are the screenshots :-
{
"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"
}
Regards,
Vidya Sagar
nagurvidyasagar said:
Hi,
Kindly help me to automate this task using Tasker.
I am using Oneplus 3 with CM14.1. I have already created a task which automatically enables Wifi whenever I am near to home or office (using Cella near). That is working fine.
In my office, whenever we connect to WiFi, it is showing a notification asking to enter username and password. I have to enter the username and password every time when I disconnect and reconnect.
How can I automate this authentication process using Tasker?
Regards,
Vidya Sagar
Click to expand...
Click to collapse
I guess AutoInput can do this. Save your user name and password to a file on your phone. Let Tasker pull this information and AutoInput put it in there. That is what I would try to do.
Sent from my ONEPLUS A3003 using Tapatalk
Hi,
I am using Skype for business on mobile phone. If there is no activity for few minutes, status changing to "Away - Mobile". Can someone help me to create a profile which will refresh Skype for business app every 30 seconds. If I keep it active (navigating / taping), status is "available".
Please help me with step by step procedure for creating profile and task to achieve thks.
Regards,
Vidya Sagar
download autoinput.
click.
loogielv said:
download autoinput.
click.
Click to expand...
Click to collapse
Downloaded and tried. Not able to create tasks as required. I am looking for steps by step instructions.
I can't get AutoInput to work either.
But if you are rooted you can use just tasker. Then you dont have to install an extra app.
To do so create a task and add a Run Shell.
Check the button Use Root and under command you add:
Code:
input tap x y
input text login-name
input tap x y
input text login-password
input tap x y
With x and y being the coordinates of the fields where you tap. If you need to figure out these you can turn on pointer position under developer options.
That should work.
But remember that your password will be readable by anybody with access to your phone. Maybe you should lock tasker with a pin code, although that adds just a tiny bit of security.
hahamuntz said:
I can't get AutoInput to work either.
But if you are rooted you can use just tasker. Then you dont have to install an extra app.
To do so create a task and add a Run Shell.
Check the button Use Root and under command you add:
With x and y being the coordinates of the fields where you tap. If you need to figure out these you can turn on pointer position under developer options.
That should work.
But remember that your password will be readable by anybody with access to your phone. Maybe you should lock tasker with a pin code, although that adds just a tiny bit of security.
Click to expand...
Click to collapse
Thanks for reply. I guess, it works. I would like to know how to open web login page as soon as I connect to wireless network. Usually a notification appears as soon as I connect to wifi then I have to open the web login page from notification bar. How do I automate this as well?
Maybe AutoInput can help you. When the notification arrived AutoInput tap it and open the browser for you.
Sent from my ONEPLUS A3003 using Tapatalk
nagurvidyasagar said:
Thanks for reply. I guess, it works. I would like to know how to open web login page as soon as I connect to wireless network. Usually a notification appears as soon as I connect to wifi then I have to open the web login page from notification bar. How do I automate this as well?
Click to expand...
Click to collapse
Sorry kinda thought there would appear a popup window.
If you click on the notification and it opens in the browser, is there a link you could enter manually?
If so you could add another action to open the link. Use Net-> Browse URL to open the link and then do as I said before.
If there is no link you could add Display->Status Bar and select expanded. This will open your notification drawer and with another input tap you could select the notification. But that is getting kinda complicated , if the notification isn't always in the same place...
Kinda hard to figure out a good way, without being able to test it so maybe you have to tweak it a little.
R4V3N-2010 said:
Maybe AutoInput can help you. When the notification arrived AutoInput tap it and open the browser for you.
Click to expand...
Click to collapse
Will it perform the same action as a shell command or will it just open the link, without the need to emulate the swipe and click?
I am not sure how she'll comands works. I never used it. AutoInput will simulate the klick. Swiping are only available at Android 7 when I remember right. But the Klick on the notification opens the browser right? If so then you can have the login information stored in a file and copy and past it with AutoInput in. Then Klick login with AutoInput and you are done.
Sent from my ONEPLUS A3003 using Tapatalk
R4V3N-2010 said:
I am not sure how she'll comands works. I never used it. AutoInput will simulate the klick. Swiping are only available at Android 7 when I remember right. But the Klick on the notification opens the browser right? If so then you can have the login information stored in a file and copy and past it with AutoInput in. Then Klick login with AutoInput and you are done.
Sent from my ONEPLUS A3003 using Tapatalk
Click to expand...
Click to collapse
The shell just pretends that the user tapped at the given coordinates, so the display has to be on and you can watch your device doing things. So I would guess AutoInput does the same, but without the need for root...
hahamuntz said:
The shell just pretends that the user tapped at the given coordinates, so the display has to be on and you can watch your device doing things. So I would guess AutoInput does the same, but without the need for root...
Click to expand...
Click to collapse
Yes exactly.
Sent from my ONEPLUS A3003 using Tapatalk
can this be done with HTTP GET or POST?
Hi, I have created an alert on tasker that pops up and ask me if I want to turn the mobile data off.
When I press the button on the notification I created (the one I have marked on the image below) it turns the 4g off, but the notification stays there, while I want it to disappear after i clicked the action.
Can someone help me?
{
"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"
}
I'm not sure what action you're showing, but there is a "Notify Cancel" action. I've used the "Notify" action with "Notify Cancel".
alluringreality said:
I'm not sure what action you're showing, but there is a "Notify Cancel" action. I've used the "Notify" action with "Notify Cancel".
Click to expand...
Click to collapse
The action is called "Alert" (its the first action you see in the menu).
Inside it there is "Vibrate alert" which i used for show the notification with the button.
I even tried to concatenate the "alert cancel" action, but it doesnt work....did i miss something? can you show me how to do that?
biondo_92 said:
The action is called "Alert" (its the first action you see in the menu).
Inside it there is "Vibrate alert" which i used for show the notification with the button.
I even tried to concatenate the "alert cancel" action, but it doesnt work....did i miss something? can you show me how to do that?
Click to expand...
Click to collapse
You can try this:
create a task, which has:
1. notify cancel: notification title
2. turn off data command
than have your button on the notification point to that task.
you can also try this indirect route:
create a profile, triggered by mobile network state
in the task of that profile, do the notify cancel.
alienyd said:
You can try this:
create a task, which has:
1. notify cancel: notification title
2. turn off data command
than have your button on the notification point to that task.
you can also try this indirect route:
create a profile, triggered by mobile network state
in the task of that profile, do the notify cancel.
Click to expand...
Click to collapse
I'll try the first route.
In the image I posted, which is the title of the notification? 4g off? Tasker? thanks
alienyd said:
You can try this:
create a task, which has:
1. notify cancel: notification title
2. turn off data command
than have your button on the notification point to that task.
you can also try this indirect route:
create a profile, triggered by mobile network state
in the task of that profile, do the notify cancel.
Click to expand...
Click to collapse
I tried, you cant link custom actions to the alert button...so if i press it, it turns 4g off, nothing more any other solution?
if I understand correctly, for the notification, you have something like:
notify:
Title: 4g off
Text: Spegnere 4g?
...
Actions:
SPECGNI 4G: Turn mobile data off
So instead of turning mobile data off, assign a Perform Task to that button, and point it to this task with the following:
1. notify cancel: notification title (4g off)
2. turn off data command
I hope that helps
alienyd said:
if I understand correctly, for the notification, you have something like:
notify:
Title: 4g off
Text: Spegnere 4g?
...
Actions:
SPECGNI 4G: Turn mobile data off
So instead of turning mobile data off, assign a Perform Task to that button, and point it to this task with the following:
1. notify cancel: notification title (4g off)
2. turn off data command
I hope that helps
Click to expand...
Click to collapse
How do I assign a "Perform Task" to the button? I can only see how to assign simple default actions, not custom :/
biondo_92 said:
How do I assign a "Perform Task" to the button? I can only see how to assign simple default actions, not custom :/
Click to expand...
Click to collapse
what I wrote above was on the interface of the notify action. Right where you assign the action for the button, choose Task/ Perform task instead.
Or are you using something else to create the notification?
alienyd said:
what I wrote above was on the interface of the notify action. Right where you assign the action for the button, choose Task/ Perform task instead.
Or are you using something else to create the notification?
Click to expand...
Click to collapse
If I press the button where you can assign the action for the button, I see this menu:
Which one is the button you said?
Many thanks, I cant figure it out...
biondo_92 said:
If I press the button where you can assign the action for the button, I see this menu:
Which one is the button you said?
Many thanks, I cant figure it out...
Click to expand...
Click to collapse
exactly, you choose Tasker, then Perform task
alienyd said:
exactly, you choose Tasker, then Perform task
Click to expand...
Click to collapse
If I choose Tasker, I see this menu, which doesnt show any "perform task", maybe traslations are bad.
Can you tell me which button it is?
Thanks...
oh no, I'm sorry, that's the sub menu of 'Tasker'. Please go into the 'Task", and you can find the perform task in the middle of the 3rd row
Seleziona Azione Task, I guess.
sorry again for the confusion.
alienyd said:
oh no, I'm sorry, that's the sub menu of 'Tasker'. Please go into the 'Task", and you can find the perform task in the middle of the 3rd row
Seleziona Azione Task, I guess.
sorry again for the confusion.
Click to expand...
Click to collapse
I just can't see what you are talking about...
I tried the "Activity" submenu (it can be a traslation for "Task") but it doesn't let me choose a task i created.
Can you post a screenshot of where you press, or edit the one I posted?
That would be helpful, thanks.
biondo_92 said:
I just can't see what you are talking about...
I tried the "Activity" submenu (it can be a traslation for "Task") but it doesn't let me choose a task i created.
Can you post a screenshot of where you press, or edit the one I posted?
That would be helpful, thanks.
Click to expand...
Click to collapse
there you go
alienyd said:
there you go
Click to expand...
Click to collapse
Ok i figured it out! Traslations changed from "task" to "activity" and got me confused.
Now i got it, many thanks!