Page 1 of 1

[Activator] | Volume Button based Shortcuts

Posted: 30 Dec 2019 15:09
by Yam
Hi there!

Updated 11th Feb 2020
Feedback is appreciated!


Introduction:
Inspired by a iPhone Jailbreak tweak which gives users the ability to map custom volume presses to a command.

Build a volume button command > Assign certain apps different commands, or execute it globally.

For example:
Press both volume keys on lockscreen = torch.
Press both volume keys on youtube = Toggle rotation lock.


Features:
• Create & Delete Volume button shortcuts directly from the quick notification centre.

• Customize Timing, Hold times, and key responsiveness.

• Record, Build and save Shortcuts with the record menu.

• Assign shortcuts to only work in specific applications.

• Have a custom shortcut perform different commands in different applications!


How to install:
1.) Download Here
2.) Enable flows marked [ON] and execute.
3.) Restart your device if the flow doesn't register your volume keys.
(Only restarting fixes this bug)
4.) Use the Quicktoggles shortcut to build your first shortcut!
5.) Customize & Enjoy!
6.) Please leave feedback!


Recording Guide:
Holds up to 8 keypress commands. Any variation of the keys below.

Volume Up:
• Up = U
• Up Hold = UH
• Up Long Hold = UL

Volume Down:
• Down = D
• Down Hold = DH
• Down Long Hold = DLH

Both keys simultaneously:
• Both Up and Down together = B
• Both Up and Down Together Hold = BH
• Both Up and Down Together Long Hold = BL



Pictures / Extras:
Run Options
Notifications
Button Recorder
Main Menu
Adjust Timing

Small gif showing the possibilities of volume based app shortcuts
ezgif-7-49fe6863ac0d.gif
ezgif-7-49fe6863ac0d.gif (1.01 MiB) Viewed 27252 times

Prebuilt shortcuts:
Here is a collection of prebuilt flows you can use.
Example Flows Include:
- Caffine (keep screen on)
- Flashlight
- Ringer
- Rotation
- Full Brightness


Trouble Shooting:
Please leave feedback on any bugs.


Hope you enjoy my flow!
Concept Inspired by Desmanto

Re: Volume Button Shortcuts

Posted: 26 Jan 2020 17:39
by akhileshg1988
Hi there!
Downloaded the flow. Tried figuring out what it's meant for and how to use it. Clueless.
Any help would be appreciated.

Re: Volume Button Shortcuts

Posted: 27 Jan 2020 12:41
by Yam
Sure!

Lets say your shortcut is "Volume Up, Volume Up, Volume Up"

You then assign each app that shortcut!

So Volume Up 3x on chrome:
- Toggle Rotation


AND Volume Up 3x On your lockscreen:
- Turns on flashlight.

The GIF should show you the UP UP DOWN DOWN executing different flows in different apps!

Re: Volume Button Shortcuts

Posted: 27 Jan 2020 14:00
by akhileshg1988
I just tried it, bro!
Nothing happened.
Please guide.

Re: Volume Button Shortcuts

Posted: 27 Jan 2020 14:06
by akhileshg1988
Irrespective of how many times I press the volume key, first, the trigger detects it, then the flow control moves to the condition and from there, the flow control always takes the 'exception' arrow route and terminates at the last action i.e. Script (//sleep(10);).

Re: Volume Button Shortcuts

Posted: 27 Jan 2020 15:26
by Yam
That's a bummer! Im running samsung s9.

My only guess is the key codes are different for every device.

I'm half way through a complete rebuild. V2 will be a little less code chaotic and way less dynamic.. But It will give users the option to build shortcuts and ignore any shortcuts that don't exist :)

Right now it was kinda a proof of concept ~ 😅 which doesn't seem to work for other people hahaha

V2 Will also introduce the "Long hold" variant.

Re: Volume Button Shortcuts

Posted: 28 Jan 2020 02:28
by akhileshg1988
No worries, bro!
I'll impatiently wait for version 2 of your flow.

Thanks a lot.

Re: [V2] Activator | Volume Button Shortcuts Beta

Posted: 30 Jan 2020 10:43
by Yam
Hopefully this version works for you!

Re: [Activator] | Volume Button based Shortcuts

Posted: 10 Feb 2020 21:55
by Yam
Updated to include:
- application specific commands
- global variable creation
- Global trigger