[Ask] Create or add volume keys on navigation bar ? - Tasker Tips & Tricks

hello
I want to add volume buttons on navigation bar for my handy daughter.
for ex:
volume (-) on left
classic navbar buttons (on center)
volume (+) on right
(She have a Teclast T30 with Android 9)
I try custom navigation bar app but it have some issues (buttons disappearing when rotate)
I try systemui tuner but no navigation bar entries
So for now, i want to try with tasker but i'm a noob
Can somebody help me to create this profil ?
thx for all

Nobody to help me ?

Let me start by saying that if you have zero experience with Tasker, please help yourself by working through some beginner tutorials found in excess online.
You will need to decide what type of profile should trigger the task containing the following actions. Maybe when specific apps are launched (video, music, ...). Or maybe you want them displayed always which means an "on boot" event. Or something else
This is straightforward using the built in "settings -> custom setting" action. If the device is not rooted, you will need to give write secure settings permissions to tasker through ADB.
Reference the "Using Shell Commands" section (scroll down pretty far) of How to Add Left/Right Keyboard Cursors to the Nav Bar during Text Input post.
It's very similar except instead of using the keycodes for left and right cursor movement (21, 22), we're using the keycodes for volume up and volume down (24,25).
We are also using volume up/down icons instead of left/right. The link to the website to get the icons is on that same page, in the same section. The links to the pages containing the 64x64 icons I used are: Volume Up and Volume Down.
And most importantly, instead of using a run shell command action, we're taking advantage of the relatively new custom setting action. As described above, you don't need a rooted device for this as long as you give the permissions through ADB.
I created a folder under the Tasker folder called "NavIcons" to hold icons for tasks like this. You may need to try different icon sizes to find a size that suits your device.
There is a nice summary of keycodes here.
add volume +/- buttons
Code:
A1: Custom Setting [
Type: Secure
Name: sysui_nav_bar
Value: key(25:file:///storage/emulated/0/Tasker/NavIcons/volume-down-64.png),back;home;key(24:file:///storage/emulated/0/Tasker/NavIcons/volume-up-64.png)
Use Root: Off
Read Setting To:
remove volume +/- buttons (without recent button)
Code:
A1: Custom Setting [
Type: Secure
Name:sysui_nav_bar
Value: space,back;home;menu_ime
Use Root: Off
Read Setting To:
remove volume +/- buttons (with recent button)
Code:
A1: Custom Setting [
Type: Secure
Name: sysui_nav_bar
Value: space,back;home;recent,menu_ime
Use Root: Off
Read Setting To:

Thanks for all !!
I understood how to and it work !
I launch this task on event "home launcher" because on "on start" don't work
Many thx !!

Related

"esc" key

Does anyone know how to emulate the "esc" key on a wizard?
I have a DOS based legacy app at work, and while I have been able to get logmein to work fine on my 8125 to control everything else I need to be able to use this one program and I cannot unless I can use "esc" to go backwards. Any ideas?
maybe u can assign a hard button to the esc with this one?
http://ae.inc.ru/aekmaplayout.php
Here's the solution...
PQzII -- http://nicque.com/pqz/PQzII.htm
Under settings go to the "Code" tab, allows you to set IN code whatever you want and set OUT code to be ESC.
I'm a big fan of this FREEWARE! Also allows setting a key for CTL and/or ALT, better caps/num lock indicator (off, on, lock), not to mention key launch of apps, settings, phone numbers, task bar, symbol window ...
NOTE: be sure to install the Wizard-specific version! Read the install directions!
if you're using pocket quake, just use "recorder" key (press it long)
vladimyr, pqzii is not pocket quake...if that is what u meant...
wgary said:
PQzII -- http://nicque.com/pqz/PQzII.htm
Under settings go to the "Code" tab, allows you to set IN code whatever you want and set OUT code to be ESC.
I'm a big fan of this FREEWARE! Also allows setting a key for CTL and/or ALT, better caps/num lock indicator (off, on, lock), not to mention key launch of apps, settings, phone numbers, task bar, symbol window ...
NOTE: be sure to install the Wizard-specific version! Read the install directions!
Click to expand...
Click to collapse
Wow! Thanks for the tip. that is a great program. I just started playing with it but it seems that it could replace Smartskey. Of course, even though there is a GUI the documentation is a little sketchy so it took me a little trial and error but I got it to do what I needed...
I would highly recommend this to anyone that likes customizing their phone.
I have two questions that I could not seem to resolve on their web site
1. Where do you find the .bmp files it looks for to use as an icon? I am getting a white square which works okay since I will only use it now and again.
2. In the program they reference a CTRL and ALT keys that I am pretty sure are hard keys on the keyboard since you can assign them but I am not sure which actual keys they are. Any ideas?

[APP+DRV] [Keys remapper] Raphael Keyboard Controller GSM/CDMA v1.4

This is what many touch pro/fuze owners want to have - ability to get full control over their keyboards.
This is for Raphael only! Do not try to install this on other devices!
Do not ask me to make a version for other device since my remappers are driver dependent and this can be very and very complicated without real device (if possible at all).
So, what is it ? It's a modified keyboard driver with configurator application for keys setup. Any key (yeah, i mean ANY, including Home and Back keys) can be reassigned to perform desired actions. Keys on a QWERTY keyboard are not an exception, they might be remapped too.
If any key has an action configured and is defined to be processed by my driver extension, it wouldn't go into the system. That is to say no one program even like AEButton will see key events processed by my driver.
Driver extension also can vibrate on any key press.
Modified drivers were tested on many ROMs based on different OEMs, so they would work in most cases.
Thanks dcd1182 for CDMA version testing.
Features:
Different event types supported: single, double and triple clicks, long presses
Two modes of key mapping: three actions per key or direct key mapping
Key repeats in direct key mapping mode
Actions sequence repeats in actions mode
Key combinations using FN modifier
Default key behaviour action - you won't loose key's default behaviour if you just want to add double click or long press to it
Different key behaviour depending on foreground process/window class/window text
Multiple rules for each key to provide different behaviour for each application you want
Multiple actions for each event
Different predefined actions:
Run program
Key press emulation
Send symbol/text to active window
Close active window
Switch to window by class/text
Terminate data connection
Wi-Fi toggle
BT toggle
Screen rotation
Power management (screen power toggle, suspend, reset)
Exceptions lists which are used to deny key remapping depending on foreground process/window class/window text
Configurable long press and double click duration
Configuration import/export in configurator
Changelog is located here.
Configurator UI localization support information is located here.
Requirements:
- .NET CF 2.0 (for configurator app)
- WM 6.1/6.5 compatible
Usage:
- Install SdkCerts.cab
- Install RaphKbdControl_XXX.cab
- Soft reset
- Check if keyboard works by pressing hardware buttons and seeing if they do their work, if not - uninstall cab, this wouldn't work on your current ROM
- If it works - go to the control panel and find "Keyboard Config" on a System page
How to define key processing:
- Run configurator (Control Panel -> System -> Keyboard Config)
- Press Menu -> Add key
- When dialog asking you to press key appears press and release desired key
- Set up needed options in key setup dialog and press OK (left softkey)
- In configurator's main window press left softkey "Update settings" to let new configuration take place (reboot is not needed, coz new settings will work immediately after saving)
What to do if keyboard doesn't work after uninstallation of this software:
- in any way stop device "KBD1:"
- for example, you can use Dotfred's TaskManager - navigate to Devices tab and find the KBD1: string, then press Stop
- delete files \Windows\keypad.dll and \Windows\kbdcntrl.dll
- soft reset
How to add new button to Buttons applet and get it working:
- add or copy existing key [HKLM\Software\Microsoft\Shell\Keys\40CX], where X is 1-6
- under this key add next values:
* Name - display name of the button in list (doesn't matter what you write here, it's only for you)
* Icon - path to icon for this button
- goto configurator and define an 'emulate key press' action for any button you want and set these values here: key code - 'App X' and check 'Win' checkbox - only in this case button will work
- save settings and enjoy newly created button
TODO:
- optimization
- Shift+?? key combinations support (if there would be requests on this)
- more actions
- other useful things
- your suggestions ?
Backup before installing of modified driver is strongly recommended.
Be careful when downloading the cab, make sure you choose the correct version suitable for your device.
Also, here is small collection of AltTab programs attached.
You can use any of them assigned as 'run program' action to desired key to switch between running programs.
well im going to try this right now, thanks
tested and works great.
side note: under the todo list adding different key behaviours depending on active window would be great
thanks
Push!
What a great app ! Couold you try to add something like multi-pressd ?
Glad to see something like this come along.
Curious, any plans to integrate with the Buttons applet found in Settings?
Cheers,
Again, excellent work!
luciusz said:
Couold you try to add something like multi-pressd ?
Click to expand...
Click to collapse
Do you mean key combinations ? I will think about it.
hilaireg said:
Curious, any plans to integrate with the Buttons applet found in Settings?
Click to expand...
Click to collapse
No. Although buttons applet and my extension do similar work, they work in different ways, so it's not possible to integrate them at this moment.
It is very cool program.
But it is not work with russian keyboard on official Rom
Or it's my mistake?
after uninstall app and soft reset do not work hardware keyboard,
and keys: on/off device (on the top side) and loudness (on left side)
What can I do?
Cool tool!!! If you implement to configure different behaviour for different programs that would be really nice!
Wow; this really does sound like the tool I was hoping for. (The hardware keyboard and the home/back etc keys? Perfect!)
Sadly, seems like the rom I am using (MightyROM5, for CDMA and Sprint) wasn't one of them... oh, well. If anyone else with CDMA has a ROM and tries this successfully, though, I'd love to know so I can try a different one.
For me, the hardware keys worked again after an uninstall and soft reset. (To turn the screen back on after it fell asleep while I was doing this, I had to hold the power key down as if I was going to force it to turn off, only longer than normal -- just a FYI if someone else has the same issue.)
ldrn said:
Sadly, seems like the rom I am using (MightyROM5, for CDMA and Sprint) wasn't one of them... oh, well.
Click to expand...
Click to collapse
Could you send me keypad.dll (hope CDMA version has the same name as for GSM) file from your ROM ?
is there a way to make a tab key ? i really would like one . i hate having to touch the screen to change entry feilds on the internet ,usually when i log into xda or myspace or anywhere that has a forums ..... i use it tons on my computer and thats pretty much my only complaint about the fuze keyboard ...NO TAB !
tarkim said:
Could you send me keypad.dll (hope CDMA version has the same name as for GSM) file from your ROM ?
Click to expand...
Click to collapse
This is the keypad.dll from MightyRom 4.16 (CDMA):
Two requests:
1.
Please let me execute .lnk files also, not only .exe files
2.
I cannot use arguments when calling exe files. Please support arguments when calling exe files in the next version.
Thanks for listening!
Oliver
gmanfuzing said:
is there a way to make a tab key ? i really would like one . ....
Click to expand...
Click to collapse
owilsky said:
Two requests:
1. Please let me execute .lnk files also, not only .exe files
2. I cannot use arguments when calling exe files. Please support arguments when calling exe files in the next version.
Click to expand...
Click to collapse
All these would be implemented in new version which I'm currently working on. Wait a few days and you'll get it
mcw
tnx for driver, will se what I can do
Nice!
Will this app let me remap the Volume Up/Down to Scroll Up/Down?
tarkim said:
mcw
tnx for driver, will se what I can do
Click to expand...
Click to collapse
Wow, thank you for taking a look at this! (And thanks Mcw for posting it.)
kusbainian said:
Will this app let me remap the Volume Up/Down to Scroll Up/Down?
Click to expand...
Click to collapse
yes
ldrn
i've analyzed CDMA keypad driver that mcw posted here, it's 90% similar to GSM version
i will patch it in a free time like my one, but i haven't a CDMA device to test it so you will need to test patched driver
Amazing app, exactly what I dream about, thanks!
I would also like to propose some more functions than just running app with keypress, like for example closing window, closing app, opening start menu, etc...
And, if anybody knows standalone symbols keypad replacement, with your superb program we can get rid of this problem: http://forum.xda-developers.com/showthread.php?p=3911050
I have an issue with this app, dunno why but only my storage card is available to search exe from, I'm unable to search exe from main memory, how comes?
Thanks

Car Installs - Triggering a Tasker Task from Keyboard

Hi,
I am having difficulty getting something I would think easy to work on my Nexus for my car install.
I was wondering how people are getting tasker tasks to be triggered off keyboard hotkeys when using either their Joycon or a standard external keyboard.
It seems from research the way to do this used to be quick launch shortcuts (assigning search key + a letter) to an app or shortcut but it seems these do not work for me in android 4.4?
External keyboard helper lets you launch applications from hotkeys, but seems to give no way of launching tasker tasks.
This is really doing my head in! From youtube it looks like others have no issues doing this. Any help would be greatly appreciated!
Well, the only thing I can think of right now is to use a Tasker Scene with a focused textbox to detect the keys. You will have to run this scene as a dialog, and deal with all the complications with that... (touch disabled outside of dialog, etc) but here's another idea.
You could use a mobile bluetooth keyboard (or any keyboard that has volume/brightness keys) and have a Tasker profile pick up a change in the ringer volume variable, this would give you 2 or 3 hotkeys (vol up, down, or mute). If you don't have a keyboard like that you could edit the Android keymappings under /system/usr/keylayout/General.kl to incorporate volume changes under some key.
Sent from my SCH-I605 using xda app-developers app
Good idea with detecting the variable changes! I'm using an Arduino Micro which emulates a keyboard so I will have no problem emulating them via buttons & changing the keyboard layout kl if nessesary. Thanks
I am currently working on the same topic: Here is my workaround for trigger a task with an external bluetooth keyboard.
create a task in Tasker
create an app of this task with Tasker App Factory
remap a key of the keyboard to the new app with External Keyboard Helper
Finish
Maybe this is helpful
Thomas
What are you trying to accomplish?
Lokifish Marz said:
What are you trying to accomplish?
Click to expand...
Click to collapse
1. With a bluetooth remote (Satechi BT MediaRemote) i want to switch between the homescreen by pushing a key. (launcher nova and tasker secure settings are necessary)
2. a tasker scenes (dialog) with different options should open by pushing another key. Navigation in the scene should do also with the Bluetooth remote (not yet finish).
The goal is an intuitive handling of the tablet ui in the car with less touch-input on the screen. Something like Audi MMI or BMW idrive.
In my opinion to find icon on the homescreen while driving is difficult.
Here is my current set up.
Nexus 7 (In dash)
Center console mounted volume dial with push to mute (Tablet>dial>amp)
(Not shown in the screencap is that the media widget is also in the Navbar and accessed via a softkey in the navbar)
The console dial was initially a USB 5 button mouse with key remapping but required the amp gain be cranked up which caused issues.
Now for full control you need the following;
(Some of these things can be eliminated with voice controls)
Media Control (Previous, Play/Pause, Next, Playlist, etc.)
Directional controls (Up, Down, Left, Right)
Action Controls (Select, Home, Back, Recent, Menu)
Phone Control (Answer, Hangup, Dialpad)
SMS Control (Full KB or voice to text using a noise canceling mic)
If you skip voice control and you don't count the dialpad or KB, you need 15 buttons or adaptive input based on what app is running but still need at least 5-6 buttons. I am not sure how involved implementation of adaptive input would be as I gave up after days of trying to get it just right.
With the Satechi BT MediaRemote, you can cover most of this by key remapping but have to remember what keys are what. The advantage of proper key remapping is that it removes the need for additional apps to get it to work.
Seeing that I'm not sure how complete of a setup you are trying to get, it's hard to offer anymore advice.

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

Use of Convenience key as Mute Switch / button / key timed

Experience sharing on another way (Timed) of using Convenience key as Mute Switch
Prerequisites
(i) Button Mapper https://play.google.com/store/apps/details?id=flar2.homebutton
(ii) SilentTime apk (attached)
(iii) Convenience Key is free from configurations (if not free Go to Settings > Convenience Key > tap Clear)
(Iv) Blackberry ketone with Android v7.1.1 (method may work on other versions)
1) Installed SilentTime app , now opened Silent Time Setter (It forms two icons at the app drawer SilentTime and Silent Time Setter) and set the required duration (30 min or 1 hr or 2 hr etc) to keep the phone in silence once it got activated, select vibrate or silent mode , finally click on Set
2) Opened Button Mapper application > Add Buttons > tap / touch the + (Plus) Icon > press the convenience key, it will detect the convenience key and provide entry as PP_SHORT_TOUCH 284
(accessibility option enabled for Button Mapper, Settings > accessibility > Button mapper > enable)
3) Touch / tap on PP_SHORT_TOUCH 284 to Customize the key> set "Long press" > Now from the top selected option "Applications" > further selected SilentTimeā€ from list of applications
[Post requisites: ( I have done but may not be required)
(I) Do not disturb override permissions at Notification access given to both Button mapper and SilentTime (Settings > Notification > Do not disturb override enable for both these apps)
(II) Automatic start permissions given to both Button mapper and SilentTime
(App drawer > Power Center >manage automatic apps > enable both these apps)
(IiI) exemption from power optimization given to both Button mapper and SilentTime (App drawer > Power Center > turn on battery optimisationall apps > enable for both these apps)l]
Now press power button and conveyance button simultaneously to mute to timed duration or unmute alternatively even while the phone in deep sleep.
Note: Convenience Key can also be configured to open the SilentTime from built in facility but it is unable to act without unlocking the phone , however if we unlock, we have many options, no longer convenience key is required.
Acknowledgement: This was my long back idea but it got a realization as got introduced to Button Mapper App from writing of Mr Glen L- Thanks.
Caution: This is only experience sharing, without any responsibility, user has to take care that the convenience key is not long pressed unintentionally while phone is in wake up state or simultaneous pressing of power key and conveyance key while the phone is in deep sleep , otherwise it may lead to not responding to a phone communication during the set period and its relevant consequences. Further one more limitation with this app is that if the phone is restarted in mute condition it shall not unmute even after expiry of set duration.
My idea is that Blackberry should have provided a configurable timed mute key / button in a recession so that it cannot be pressed unintentionally in future phones (many of apple / oneplus one users forget slide back the switch to unmute)
New finding on 12.02.19 : the same can be achieved differently by with the conveyance button's built in configuration method (Settings > conveyance key > shortcuts >open app > SilentTime ) . However we have to press first power key, then conveyance key to enable timed mute or unmute alternatively (but we have to disable customise option of Button Mapper App (Button Mapper > Add button > PP_SHORT_TOUCH 284 > put off customise) or uninstall Button Mapper

Categories

Resources