How to simulate widget press (tasker???) - General Questions and Answers

I have an NFC tag that I plan on pressing on my office door. I need for this tag to automatically clock me in, and then out on the second press.
I have a widget with my app I'm using for time management that does just this.
However, it isn't NFC capable, I need to setup an action in tasker that simulates this widget press.
Is there any way for tasker to do this?
Im using time recorder pro, NFC task launcher and tasker.

Check this out
https://sites.google.com/site/androidtimerecording/hints_en
Near the bottom of the page is a tasker tutorial that will help you

Related

Shortcut to taskmanager from today screen?

My eyes hurt so much searching for a solution to this. I am looking for a way to create a shortcut to the task manager from the today screen without using the stylus.
Is there anything out there that can simulate hitting the x,y coordinates for where the task manager lies? WisVol.exe solves the issue of hitting the volume wo/ the stylus. I am looking for the same solution for the task manager.
Shortcut to taskmanager
Hi there,
I can think of 2 solutions:
1- go to settings/buttons and set a button you do ont use to launch either the built in task list (tasks) which should bring up the running programs dialog or any task manager you have installed.
2- use the file "defcpl.zip". I can't remember where I got it from but it is shortcuts that link directly to the control panel options. Only problem is that I cannot find a way for them to show a real icon.
what device do you have? it's a hard button on my i780 - you hold down the OK button....
I am customizing my Sprint Plugin. I have the speaker icon simulating the volume buttom. (Stylus-less Today Screen) I would like to replace the Opera icon with the Task Manager icon and start the Task Manager as shown. I need something to simulate hitting the x,y coordinates of the upper-right most corner of the Today screen.
I think VJOkButt has a mode that simulates clicking in the top right.
Try that for now. I'll also look into a better way to simulating the clickeration.
V
vijay555 said:
I think VJOkButt has a mode that simulates clicking in the top right.
Try that for now. I'll also look into a better way to simulating the clickeration.
V
Click to expand...
Click to collapse
Thanks. If anyone can do it would be you!

How to launch a hidden activity?

I'm looking to make a 1x1 shortcut to launch this activity: com.teslacoilsw.widgetlocker.UNLOCK
Does anyone know how I can accomplish this?
Try:
-long press on desktop
-custom shortcut
-enter label name, click on "pick your activity" button
-choose between "Activities" (adw), "Any Cut", etc, then scroll down to the activity you mentioned
Unfortunately It's not in the list, hence the "hidden" in the title
I can see the app's activities, but not this specific one.
Install and run Tasker:
Create new Task
Name it Unlock or whatnot
Add from Misc category "Action Intent"
Action: com.teslacoilsw.widgetlocker.UNLOCK
Target: Activity
(Leave the rest alone)
Click Done to finish setting the Action Intent
Tap the Icon button in the bottom to give it an Icon (to the left of the X)
Click Done to save the Task
Click Apply to save settings and exit Tasker setup
In Widgetlocker Config:
Add Shortcut
Look for the "Task" shortcut from Tasker
Find your "Unlock" task
Click Make Shortcut
Profit. Although it's faster to swipe
khaytsus said:
Install and run Tasker:
Create new Task
Name it Unlock or whatnot
Add from Misc category "Action Intent"
Action: com.teslacoilsw.widgetlocker.UNLOCK
Target: Activity
(Leave the rest alone)
Click Done to finish setting the Action Intent
Tap the Icon button in the bottom to give it an Icon (to the left of the X)
Click Done to save the Task
Click Apply to save settings and exit Tasker setup
In Widgetlocker Config:
Add Shortcut
Look for the "Task" shortcut from Tasker
Find your "Unlock" task
Click Make Shortcut
Profit. Although it's faster to swipe
Click to expand...
Click to collapse
Thanks for this.
Well, no, tapping a single 1x1 button is faster than swiping (hold and drag). But that's not the reason I'm looking to do this. Namely, I don't want to waste a 4x1 row just to unlock when I don't need or want the sliders on either side (I have other widgets that I want to put on my lock screen )
[Edit]: Tasker $$$
Paul22000 said:
Thanks for this.
Well, no, tapping a single 1x1 button is faster than swiping (hold and drag). But that's not the reason I'm looking to do this. Namely, I don't want to waste a 4x1 row just to unlock when I don't need or want the sliders on either side (I have other widgets that I want to put on my lock screen )
[Edit]: Tasker $$$
Click to expand...
Click to collapse
Yes, Tasker costs money. But Tasker can do anything.
Here's a partial list of what Tasker does for me...
Home, Work, Meeting, Sleep profiles... Based on time AND location.
Turns on speakerphone when I'm on the phone and turn it face down
Downloads a zip file of data I want for geocaching daily, unzips it so it's ready to digest
Turns up the volume and backlight when Waze (GPS Nav) is running
Backs up my dcim dir (10 minutes) using rsync, as images sometimes go poof
Pings me at 7:20 that it's time to get out the door with my kid to get her to school
Responds to specially tagged email or sms with info such as GPS location, phone number, last call in and out
Sends the same info above to a fixed number if my phone number changes (SIM gets swapped)
Reminds me if I've missed a phone call every N minutes
Gives me extra notification for important emails so I know to look right away
Uploads my current GPS coordinates to my website every 10 minutes
Backup my SD card over Wifi nightly
That's most of the list I have.. Some people have it read SMS to them while in the car, chime N number of times for the time (coo-coo clock).. Some of these (like back up the SD card) requires more stuff (fixed ssh client, generating keys, rsync, etc) but most of the above are all Tasker. Think of Tasker as a GUI interface to create programs (tasks) that run under specific circumstances (Contexts) that executes about anything in the Android API or beyond (it can use Locale plugins, including the Execute plugin etc..)
I can't imagine Android without it. And in case you're curious, what effect on battery life? None that I've ever measured. When I first started using it I monitored battery life for several days and noticed no increase in usage.
Paul22000 said:
Thanks for this.
Well, no, tapping a single 1x1 button is faster than swiping (hold and drag). But that's not the reason I'm looking to do this. Namely, I don't want to waste a 4x1 row just to unlock when I don't need or want the sliders on either side (I have other widgets that I want to put on my lock screen )
[Edit]: Tasker $$$
Click to expand...
Click to collapse
Just disable the lock sliders in Widget Locker, and enable one of the button unlocks.
EDIT: Ok, I did it. Unfortunately, my method requires "ShorterCut" from the market (paid app) but much cheaper than Tasker. There may be other ways. Here's what I did.
1. Go to WL and add shortcut
2. Select ShorterCut from the shortcut list
3. Select empty shortcut
4. Go to "Edit Intent"
5. In the first field labeled "Action" put:
Code:
com.teslacoilsw.widgetlocker.UNLOCK
6. In the second field labled "Component" type:
Code:
com.teslacoilsw.widgetlocker/com.teslacoilsw.widgetlocker.WidgetLocker
7. Press "Save intent"
8. Edit Shortcut title to whatever you want and change icon to your wishes.
9. Press "Create shortcut"
10. Done
overground said:
Just disable the lock sliders in Widget Locker, and enable one of the button unlocks.
EDIT: Ok, I did it. Unfortunately, my method requires "ShorterCut" from the market (paid app) but much cheaper than Tasker. There may be other ways. Here's what I did.
1. Go to WL and add shortcut
2. Select ShorterCut from the shortcut list
3. Select empty shortcut
4. Go to "Edit Intent"
5. In the first field labeled "Action" put:
Code:
com.teslacoilsw.widgetlocker.UNLOCK
6. In the second field labled "Component" type:
Code:
com.teslacoilsw.widgetlocker/com.teslacoilsw.widgetlocker.WidgetLocker
7. Press "Save intent"
8. Edit Shortcut title to whatever you want and change icon to your wishes.
9. Press "Create shortcut"
10. Done
Click to expand...
Click to collapse
Is it possible to do this with AnyCut?
The fields are Action / Data / Type, and I'm not sure which one to use for the "Component". I got a LauncherPro force close... Weird.
Paul22000 said:
Is it possible to do this with AnyCut?
The fields are Action / Data / Type, and I'm not sure which one to use for the "Component". I got a LauncherPro force close... Weird.
Click to expand...
Click to collapse
Don't think Anycut's that advanced.
EDIT: Just tried with Bettercut, and same thing happened to me as it did to you. Uninstalling that crap.
I might be missing what you are wanting to do, but you just want to press one button to unlock Widgetlocker correct? I have it installed and in Settings/ Buttons & Imputs there is an option to "Back Button Unlock". I have that checked and all i have to do is hit the back button and it unlocks it for me. There is also an option to unlock with the camera button and/or trackball.
ukYfan said:
I might be missing what you are wanting to do, but you just want to press one button to unlock Widgetlocker correct? I have it installed and in Settings/ Buttons & Imputs there is an option to "Back Button Unlock". I have that checked and all i have to do is hit the back button and it unlocks it for me. There is also an option to unlock with the camera button and/or trackball.
Click to expand...
Click to collapse
Yes but I don't want it to unlock accidentally, which is possible if using the "back button unlock" feature. And if you put the timer on it, then it just becomes annoying to unlock.
Paul22000 said:
Yes but I don't want it to unlock accidentally, which is possible if using the "back button unlock" feature. And if you put the timer on it, then it just becomes annoying to unlock.
Click to expand...
Click to collapse
Understandable, but I have never unlocked it accidentally
Sent from my Droid using Tapatalk
sorry to dig up an old thread but what home app are you using, if you are using a third party app like apex or nova you can just put a shortcut on your widget locker screen to launch that app. thats what i was doing for a while.

Make home button launch S Voice?

Is there a way to change the function of long pressing the Home button from launching Google Now to launching S Voice? I already tried All in One Gestures, but that didn't do the trick.
After installing Tasker and then long pressing the home button I was asked whether to use Google Now Launcher or Tasker to complete the action. You may be able to have Tasker then launch S-Voice or whatever app you'd like.
I was thinking of doing the same but instead executing the "OK Google" equivalent.
Great idea! Thank you
tasker walk througj on s6
Hey ive been trying to do this for awhile, just got s6 and tasker on it, been trying to have my home button on long press open a google search with the keyboard popping right up, any help on how i could assign the right commands for tasker?

Open camera in Pro Mode

As we all know, the camera app opens in Auto mode by default. There's no option to select it to use Pro Mode by default. We can put a shortcut on the homescreen to open Pro Mode, but there's not way to set that shortcut on the lockscreen or activate via double-press power. Sometimes if the camera is still in memory, it'll open from the lockscreen still in Pro Mode, but not reliably. So I'm wondering what we can figure out to "hack" this a bit to make Pro Mode open automatically when the camera app opens.
1. Tasker is my first inclination. But we need the Pro Mode setting/toggle/switch/activity/whatever to be exposed for Tasker to use. It's not, as far as I can tell.
2. Actually what's weird is there are no activities within the camera app to start Pro Mode. But without that activity, how is the homescreen shortcut created?
3. Is there a macro that can be created to turn on Pro Mode when camera is launched?
4. How can we put that Pro Mode shortcut on the lockscreen?
5. Is there a way to build a very basic app that does what the Pro Mode homescreen shortcut does? Then we could set it as a lockscreen shortcut. Ideally this would not require root. Basically an app that triggers the shortcut that launches the camera in Pro Mode.
Any other ideas?
Tagging @zeroprobe since he is our most knowledgeable contributor for the S7 camera.
It would be nice if Samsung made a proper shortcut but this seems to work in a convoluted kind of way.
Okay, so we’ll need a few things to make this work.
Tasker - paid app
Tasker plugin Autoshortcut – paid app with a 7 day trial
I made a task that uses Autoshortcut to click a place on my home screen. This place is the physical location of the Pro Mode Camera shortcut I made from the camera app. The most reliable way to determine the on screen location was to turn on “Show Pointer Location” in Developer Options. With that option turned on I was able to find out the X/Y coordinates for the physical location of the Pro Mode Camera shortcut on my screen. I am aware that If I move my shortcut to another spot this whole thing will fall apart.
With the X/Y coordinates in hand I continued with the Autoinput task. Manual mode worked best for me:
--
Type: Point
Value: 1000,730 (the X/Y coordinates of the shortcut on my screen)
Nearby text: Pro (this is the name of the pro mode shortcut)
Action: Click
--
When I tested my task I found that it wasn’t reliable because the shortcut wasn’t pressed every time. To fix this I added a delay task to my task of 66 ms (I was going for 50 but got lazy).
I also thought that I needed to ensure I was at the right screen before doing all this. In my case the shortcut is placed on my “main” home screen.
My task now looks like this:
1) Go Home, page 0
2) Wait 66 ms (not sure if this step is actually needed)
3) AutoInput Action,
Type: Point
Value: 1000,730
Nearby text: Pro
Action: Click
Then I found a premade profile, "AutoInput Multi-Press", and task, "Key Press Timer", written by /u/Ratchet_Guy (a Mod on /r/tasker) that addressed the double, triple, quadruple, etc clicking of buttons. This profile and task is great and also needs the plugin AutoInput. I imported the profile and task and added my camera task with AutoInput Action at the end of the “Key Press Timer”.
https://www.reddit.com/r/tasker/comments/5hkelp/how_to_trigger_tasks_on_hardware_button/
So now when I double click the volume down button it launches my pro mode camera shortcut.
Then I thought of your requirement to add this to a shortcut on the lockscreen. I downloaded the Tasker App Factory app and generated an app from my pro camera task. I put this app on the lockscreen and it works 90 % of the time. Sometimes it gets confused and launches the regular camera.
saj222 said:
It would be nice if Samsung made a proper shortcut but this seems to work in a convoluted kind of way.
Okay, so we’ll need a few things to make this work.
Tasker - paid app
Tasker plugin Autoshortcut – paid app with a 7 day trial
I made a task that uses Autoshortcut to click a place on my home screen. This place is the physical location of the Pro Mode Camera shortcut I made from the camera app. The most reliable way to determine the on screen location was to turn on “Show Pointer Location” in Developer Options. With that option turned on I was able to find out the X/Y coordinates for the physical location of the Pro Mode Camera shortcut on my screen. I am aware that If I move my shortcut to another spot this whole thing will fall apart.
With the X/Y coordinates in hand I continued with the Autoinput task. Manual mode worked best for me:
--
Type: Point
Value: 1000,730 (the X/Y coordinates of the shortcut on my screen)
Nearby text: Pro (this is the name of the pro mode shortcut)
Action: Click
--
When I tested my task I found that it wasn’t reliable because the shortcut wasn’t pressed every time. To fix this I added a delay task to my task of 66 ms (I was going for 50 but got lazy).
I also thought that I needed to ensure I was at the right screen before doing all this. In my case the shortcut is placed on my “main” home screen.
My task now looks like this:
1) Go Home, page 0
2) Wait 66 ms (not sure if this step is actually needed)
3) AutoInput Action,
Type: Point
Value: 1000,730
Nearby text: Pro
Action: Click
Then I found a premade profile, "AutoInput Multi-Press", and task, "Key Press Timer", written by /u/Ratchet_Guy (a Mod on /r/tasker) that addressed the double, triple, quadruple, etc clicking of buttons. This profile and task is great and also needs the plugin AutoInput. I imported the profile and task and added my camera task with AutoInput Action at the end of the “Key Press Timer”.
https://www.reddit.com/r/tasker/comments/5hkelp
So now when I double click the volume down button it launches my pro mode camera shortcut.
Then I thought of your requirement to add this to a shortcut on the lockscreen. I downloaded the Tasker App Factory app and generated an app from my pro camera task. I put this app on the lockscreen and it works 90 % of the time. Sometimes it gets confused and launches the regular camera.
Click to expand...
Click to collapse
I will 250% try this on my phone. But out of curiosity, is it possible to do the same with other software? Perhaps Automate?

Question Issues configuring power save routine

S22 Ultra, UK, with latest updates. I wish to create a routine (activated with a one-click widget on the home screen) that;
- turns off Bluetooth
- turns on airplane mode
- turns on power saving mode
This is straightforward to set up. The issue is that I cannot add the widget to the power-saving home screen.
This would allow me to turn this routine off with one click. It takes me multiple clicks to get out of that screen and then another one to turn off the routine. I see I can customize the icons on the power save home screen, but don't seem to be able to add my routine widget.
You can probably see that my desire to easily put the phone in and out of a low power mode. Anyone offer any suggestions or advice to achieve this? Back in the day I had a phone with a simple physical slide switch that would do just this task. Very handy!
What do you mean by 'power-saving home screen'?
The Modes and Routines app provides 2 types of widgets, and both can be added to your home screen.
Hi. When I select the 'Power Saving' option from the pull-down menu the phone switches to a simplified 'power-saving' home screen. That has a clock and 8 app icons. That is what I mean.
nickb99NZ said:
Hi. When I select the 'Power Saving' option from the pull-down menu the phone switches to a simplified 'power-saving' home screen. That has a clock and 8 app icons. That is what I mean.
Click to expand...
Click to collapse
I have created a routine called Sleeping that does exactly what you want. Check it out.
Thanks for your efforts but unfortunately this is not really what I need.
- your phone is not seen to switch to a different home screen when power saving is activated. Mine does not.
- you have created a mode accessed via a shortcut from the standard home page but I run Nova launcher
I was able to figure out a two-click solution.
1. Modes and Routines>settings>Show Modes and Routines in the Apps screen to ON
2. This allowed me to add a shortcut to Modes and Routines (unfortunately not directly to the routine) to the Power Save home screen.
3. I configured a single widget routine for my Nova home page to turn the power save routine on.
4. When activated, this flips me to my power save home screen. But now I can select Modes and Routines from the icon list there (1st click) and then this takes me right to the Modes and Routines screen where I can deactivate the routine (2nd click).
nickb99NZ said:
I wish to create a routine (activated with a one-click widget on the home screen) that;
- turns off Bluetooth
- turns on airplane mode
- turns on power saving mode
Click to expand...
Click to collapse
This was your requirement. The routine I created does exactly that. I use Nova Launcher too and the widget on the home screen is a direct shortcut to the routine itself. With one click I can turn it ON, and with a single click I can turn it OFF too.
The only thing it doesn't do is change the home screen. I don't know what the purpose of that is, and if that is supported in Modes and Routines, you can add that too.
>>"This is straightforward to set up. The issue is that I cannot add the widget to the power-saving home screen."
This was my requirement.
With further research, the change to a limited power save home page was an activated option in Power Saving settings. If I turn this option off then it does not switch home pages and the standard widget works one click on and off.
nickb99NZ said:
>>"This is straightforward to set up. The issue is that I cannot add the widget to the power-saving home screen."
This was my requirement.
With further research, the change to a limited power save home page was an activated option in Power Saving settings. If I turn this option off then it does not switch home pages and the standard widget works one click on and off.
Click to expand...
Click to collapse
So is this resolved for you now?
I never played with that option in Power Saving settings, because once you turn on airplane mode and turn off wifi and bluetooth, there is no additional power savings to be gained with it.
I guess you keep your WiFi ON in that mode so your selected apps can still function with minimal power draw.

Categories

Resources