Help with 2 modules - Tasker Tips & Tricks

Could someone help me with the below 2 modules please?
Module 1 -
1 - Hardware key (volume or power button ) used to launch a particular app
2 - Once app is launched - Lock the app with an overlay with a particular dimension (for example - overlay blocks the app completely except 20 % at the bottom)
3 - Volume button press simulates screen press at a particular co-ordinate
Module 2 -
part 1 - Shortcut to make direct Whatsapp call to a particular contact
part 2 - Receiver mobile answers the Whatsapp call and places on speakerphone automatically
This will help me stay connected with my aged parents.
Kindly help !!

Mod 1
Profile: Event/Vol long button up/down, then launch the app
Task: Scene; draw your box how you want. You may need/want to lock portrait mode.
Task: Use Auto input to simulate your screen press. You can use the option to view touches from within the phone Settings/Dev Mode
Sent from my Note8

Related

Linking Button 6 to Adjust Brightnes?

As the topic is saying. Does someone know how I can link my Button 6 to adjust the backlight?? (Just like the HTC Home, Off - Low - Medium - High)
I tried google but didn't found anything :S
Help plz
thx.
Someone? Cmon
It is possible to map button 6 for Brightness
I saw your post and I made some teste on my tilt.
I was a big fan of HTC today, but I always loose my contact tab on today's screen when making few changes. Until,I found a alternative today's page. Im using SPB phone suite 4.0.
Your problem can be solve by using SPB phone suite.
If you already disable your PTT and regedited your button 6 you can ignore the step below.
1. just disable your PTT.
2. goto settings-> button -> you will see "add buttons" option.
3. click on "add buttons" to map your button6 for click/hold (two buttons).
4. on the selection you will see
[Backlight down]
[Backlight loop]
[Backlight up]
I choose Backlight down for testing and it did dimm the backlight when I click on my button 6 (PTT button).
I think for you would be "Backlight loop".
I really found Backlight on button6 is quite useless because I do need my voice command for calls and apps. Hold button6 for recording conversation.
I have mine Backlight icon on today's page, so I already have quick access.

Gear 2 Neo - Help FAQ

Home Key
Turning screen on or off
Press the home key to turn the screen on or off.
Powering on or off
Press and hold the home key to power your Gear on or off, change the sound mode, or enable Outdoor mode.
Pressing the home key
Press the home key to view the clock while the screen is on.
Double pressing the home key
Double press the home key to open your favorite application. You can change your favorite application in Settings.
Triple pressing the home key
Press the home key 3 times to enable Send help messages when you are in need. For details, go to Settings > Send help messages.
Note: The Safety Assistance option is only available on the Note 3 N9005 (International version)
Navigation
Navigating Gear
Swipe left or right to navigate between screens.
[*]Tap the screen to select an item or to open an application.
Going back
Swipe downwards from top edge of the Gear screen.
Home Screen
Adding app shortcuts
To add app shortcuts to the Gear's home screen, go to Apps on the Gear, tap and hold an app icon, then drag and drop it on the home icon at the top of the screen.
Rearranging shortcuts
Tap and hold an app icon and then drag and drop it to rearrange the app shortcuts on the Gear's home screen or in the app list.
Removing app shortcuts
Tap and hold an app icon, then drag and drop it on the remove icon at the top of the screen.
Two-Finger Interaction
Changing icon size
Tap the screen with two fingers and then swipe them in opposite directions to change the size of the icons on the home screen from small to large.
Controlling volume and brightness
Double tap any screen with two fingers to open the brightness and volume controls, and to view info, such as bluetooth status and battery status.
Viewing recently used apps
Tap and hold any screen with two fingers to view your recently used apps.
Pedometer
Counting steps
Tap Start to start using Pedometer. Your steps will be counted each day and recorded in History.
[*]Tap the screen to pause the step count. To resume, tap the screen again, then tap Resume.
[*]To view a graph of recently recorded data, tap the more button and select History.
Exercise
Exercising with coach
You can set various goals to fit your exercise plan. To set a goal, tap the more button and select Set goal.
[*]The accessory will offer coaching advice based on your measured heart rate during the exercise.
[*]Training effect helps you discover how effective your workout is. It analyses your workout and estimates its effect on your aerobic fitness. Follow the guidance on the screen and stop when you are satisfied with the result. The effects of your workouts are calculated based on your user profile, heart rate data, and difficulty of the workout. Your training effect goal changes in relation to your fitness levels, which are calculated automatically when you exercise on more than 3 different days.
[*]Swipe the screen to the left or right while exercising to change the information displayed.
[*]To view the graph of recently recorded data, tap the more button and select History.
Heart Rate
Measuring heart rate
Tap the screen to see the correct way of wearing the Gear in order to measure your heart rate.
[*]To start measuring your heart rate, tap the start button.
[*]To view a log of your heart rate measurements, tap the more button and select History. Swipe the screen to scroll through previous measurements.
Sleep
Measuring sleep duration
When you are ready to sleep, put the Gear on your wrist and tap Start. If you do not want to be disturbed while sleeping, tap the more options button and enable Blocking mode before you tap Start.
[*]Tap Stop when you wake up. You can check details of your sleep, such as sleeping time, restless sleeping time and motionless sleeping time.
[*]Tap the more options button to select History. To view your sleep duration records, tap the graph.
S Voice
Using mic button
Tap the mic button to turn on the mic.
[*]After you tap the mic button, it will turn red. Then you can say what you want.
[*]The Gear will then process and respond to what you have said.
.
.
.
Reserved for more specific updates

[Project] multi-function (long press) volume buttons

Requirements:
Tasker
AutoInput (paid version)
(tested on Nexus 5x)
I never used the volume controls unless I was listening to music so I decided to get creative with tasker.
I've used this profile for a few weeks now and it works very well, there might be some misinterprets (I've had 2 in total) if the phone is lagging heavily (like when casting and playing a video),
but I only encountered this issue once in a few weeks of use (and I've had problems with tasker and lag on other profiles), anyway your mileage might vary depending on your usage.
It also controls headphone and bluetooth volume.
**What it does**:
Reprograms the volume buttons to have a short press and long press function, depending on if media is playing they have different functions (completely customizable).
By default, if media is playing it will control media volume, if it's a long press (and it's playing) it will launch apps. If nothing is playing it will simply launch apps or whatever you want it to do (so that's 4 functions per "is media playing" state).
This is very useful for portait toggle, flashlight or even notifications pull down for those awkward hand position moments to give a few ideas.
**How it works**:
On button down events, it will check if media is playing (every 1.5s at most, this info is used to determine the button action in later if statements), then it will wait for 1.5s (by default),
if the wait is not intercepted by a button up event (short press) within those 1500ms, it will be registered as a long press.
After this comes a bunch of if statements that use the above information to choose the right action (is media playing, was it a long press?).
I'd suggest taking a look at all the tasks and profiles to see how they work, I also added a profile which disables the custom keys (and re-enables the stock function) when a call is active.
These are the main components of this project to make it work if you want to get creative yourself.
manage = CONTEXT.getSystemService (audio );
%playing = manage.isMusicActive();
Click to expand...
Click to collapse
(credit goes to the internet/google)
and AutoInputs key suppress function and key up/down event profile triggers.
**How to set up**:
Import project, use the suppress task to enable key suppression (this must be done once to disable the stock key functions).
You can then tweak the vol up/down tasks to accommodate your needs.
the first set variable %longpressduration should be pretty obvious
scrolling down to the if statements you can change the actions for each event, it can be anything, even other profiles, I'd say sky's the limit but it's tasker in this case
I don't know if these things get exported, but make sure the button up events have a higher priority than then down events.
Download:
https://drive.google.com/file/d/0Byn3Aaml1wlcRENBMTB0MVFXczA/view?usp=drivesdk
Shebee said:
Requirements:
Tasker
AutoInput (paid version)
(tested on Nexus 5x)
I never used the volume controls unless I was listening to music so I decided to get creative with tasker.
I've used this profile for a few weeks now and it works very well, there might be some misinterprets (I've had 2 in total) if the phone is lagging heavily (like when casting and playing a video),
but I only encountered this issue once in a few weeks of use (and I've had problems with tasker and lag on other profiles), anyway your mileage might vary depending on your usage.
It also controls headphone and bluetooth volume.
**What it does**:
Reprograms the volume buttons to have a short press and long press function, depending on if media is playing they have different functions (completely customizable).
By default, if media is playing it will control media volume, if it's a long press (and it's playing) it will launch apps. If nothing is playing it will simply launch apps or whatever you want it to do (so that's 4 functions per "is media playing" state).
This is very useful for portait toggle, flashlight or even notifications pull down for those awkward hand position moments to give a few ideas.
**How it works**:
On button down events, it will check if media is playing (every 1.5s at most, this info is used to determine the button action in later if statements), then it will wait for 1.5s (by default),
if the wait is not intercepted by a button up event (short press) within those 1500ms, it will be registered as a long press.
After this comes a bunch of if statements that use the above information to choose the right action (is media playing, was it a long press?).
I'd suggest taking a look at all the tasks and profiles to see how they work, I also added a profile which disables the custom keys (and re-enables the stock function) when a call is active.
These are the main components of this project to make it work if you want to get creative yourself.
(credit goes to the internet/google)
and AutoInputs key suppress function and key up/down event profile triggers.
**How to set up**:
Import project, use the suppress task to enable key suppression (this must be done once to disable the stock key functions).
You can then tweak the vol up/down tasks to accommodate your needs.
the first set variable %longpressduration should be pretty obvious
scrolling down to the if statements you can change the actions for each event, it can be anything, even other profiles, I'd say sky's the limit but it's tasker in this case
I don't know if these things get exported, but make sure the button up events have a higher priority than then down events.
Download:
https://drive.google.com/file/d/0Byn3Aaml1wlcOFVFYWZUSC1DWlE/view?usp=drivesdk
Click to expand...
Click to collapse
Nice job.
Another alternative for the same functionality is this
https://play.google.com/store/apps/details?id=com.spazedog.xposed.additionsgb
vickylahkarbytes said:
Nice job.
Another alternative for the same functionality is this
https://play.google.com/store/apps/details?id=com.spazedog.xposed.additionsgb
Click to expand...
Click to collapse
I updated my link, tweaked the settings a bit.
Nice, will definitely check it out since I've got xposed installed! For those that don't, you can give this project a try.
Edit:after trying it out it seems to respond somewhat faster under certain circumstances, but it doesn't allow to check for media playback. So I guess depending on your needs you night want to use one or the other

Use Convenience Key as Mute Switch

This will allow you to use the Convenience key as Mute Switch it will mute all your sounds (notification, ringer and alarms)
Prerequisites
Sound Mode Tasker Plugin https://play.google.com/store/apps/details?id=com.nick.mowen.soundplugin
Button Mapper https://play.google.com/store/apps/details?id=flar2.homebutton
MuteAll.apk = attached to this thread (This is just a Tasker task I wrote and exported it as an app)
Steps
1) First download all the files and install them
2) Go to Settings -> Convenience Key -> Hit "Clear" , then go home
3) Open Sound Mode Plugin and click Setup Sound Profiles, be sure to copy exactly what I did (case sensitive) or else it wont work
make 2 profiles
silent
unsilent
Note: its up to you if you want to silent all 3 volumes or just a specific one just adjust the slider
4) Open Button Maper application and click Add Buttons
5) Click the + (Plus) Icon and hit the convenience key, it should now detect the convenience key
6) Customize the key, I have mine set to "Single Tap" then on top select "Applications" and look for MuteAll
7) Exit the app and try your convenience key, there might be a few seconds delay sometimes but it will work
You should see "Silent Mode" or "Normal Mode" flash on your screen when its activated / deactivated
Enjoy!
another method of use of bb keuone conveyance key as mute switch (timed)
I have shared another method of use of BB keuone conveyance key as mute switch (timed)
https://forum.xda-developers.com/bla...witch-t3899281

Identify button tags inside an app

This is my first post on here.
I make a lot of timelapses on my phone, i use the lightpainting mode (suitable for long exposures) with an autoclicker, but recently i've had issues with the autoclicker not tapping the shutter button. I've tried several non-root autoclickers with no luck.
I found out my automation app (macrodroid) has a function called UI Interaction which simulates a tap on the screen like any other autoclicker. This has the ability to press a specific place just by knowing the button tag (e.g. [id:com.huawei.camera:id/shutter_button]) and that's a great thing, it's just that when i try to register the 'stop shutter button' it's not doing anything. It's not being registred as a button. That means i have to find out the button id and write it in manually.
I'm asking if any of you have an app that lets you identify in-app button IDs?
Sent fra min CLT-L29 via Tapatalk

Categories

Resources