Car Installs - Triggering a Tasker Task from Keyboard - Nexus 7 General

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.

Related

Need Help with Vijay Lumos Workaround using HTC Home prog

With Kaiser not having a transreflective screen, I've really been missing the ability to map a key to toggle the screen brightness like I could with Vijay Lumos III on Hermes.
I don't use the HTC Home screen, but today I activated it and played with it some. I found that it has an app preloaded in the Launcher tab that toggles the display in 4 steps from Low to Hi and back. Using the add function I can see this application as "Adjust Backlight" along with most all of the other programs loaded on the unit.
I would like to create a shortcut link to this app and then map a hardkey to do this function, however for the life of me I can't find this program! I'm hoping that there is some kind soul that can help me locate this prog so that it can be used outside of the HTC Home Screen. I've been looking for a couple of hours and it's got me whipped.
In \Windows I found HH_Launcher Backlight.png which is the icon for the app.
Hopefully I'm not the only one who whould like to have this capability
bump.
Looking to do something like this as well.
found WkTASK (http://soft.photoracer.net/docs/wktask_en.html) which is a nice utility and is supposed to have a brightness and volume control. Everything BUT the brightness and volume control work on my tilt however.
Here's what I've done to work around this... using AE Button Plus, I've mapped the center dpad button ("enter") with standard behavior on single click, and I've mapped a press/hold to the "backlight" application. This brings up the app in settings that lets you set the brightness levels for "on battery" and "powered". Since it wakes up with the "on battery" section active, you then just have to use the "left/right" dpad buttons to turn the brightness up or down (and down/up flips between the battery and on power settings). Not quite a one-click fix, but a click of the center button, and a few of the right button will brighten your screen fairly easily.
The trick here was that AEBPlus didn't want to map directly to the backlight.exe file. When telling it to map the press/hold to an application, it simply didn't appear in the list (even thought I could see it in the directory). Perhaps it hides system files to keep you from accidentally doing something bad. So I had to make a shortcut to backlight.exe, then map AEBPlus to the shortcut.
Kind of a clunky workaround, but it works.

Butler - Using capacitive area as stroke launcher and many more features

I really enjoy this forum since it helps me a lot to increase the productivity with my HTC Touch Pro. I found many useful applications. Unfortunately, after installing a large number of them, I run into the infamous 32 processes limit of Windows Mobile. So I decided to write my own app that combines all the features that I find useful. It is implemented as a Pocket PC service, so it does not require an own process.
Here are the features:
- Better vibration for incoming calls. I found the built-in vibration function very annoying as it vibrates permanently during an incoming call. This extensions vibrates in pulses of 300 ms with a pause of one second when a call is incoming
- SIP changer depending on stylus state. If stylus is out, another soft input panel is selected as if stylus is in. Can be changed via the registry keys StylusInSIP and StylusOutSIP.
- Stroke Launcher. If the finger is stroked from one button to another, an application is launched.Four directions are possible: From home button to accept phone call button and vice versa as well as from back button to reject phone call button and vice versa. The applications can be configured via the RightUpApp, RightDownApp, LeftUpApp and LeftDownApp registry keys. The required length of the stroke can be configured via the GestureMinLen registry key. Unfortunately, the program has to poll HTC's NAV sensor directly in order to not disturb the functionality of the wheel sensor. The sleep time between two polls can be configured with the GesturePollingDelay (in ms). If you use very fast strokes and the device does not react, try to decrease this value.
- Key lock if device is face down. The key lock is activated and the device is powered off if it is turned face down. The key locked is acknowledged by two short vibrations. Key lock can be disabled depending on the foreground window or active process list. Exclude list can be specified via the ExcludedProcesses and ExcludedWindows registry keys. The tolerance for the face down detection can be configured via the FacedownTolerance registry key.
The registry settings for Buttler are stored in HKLM\Software\Butler. Each extension described above can be switched of by setting the EnableFeature registry key to 0.
As I have not much time to react on bugs or feature requests, I have also attached the source code. Fell free to modify my Butler but please publish it here so that we all can benefit from it.
The Butler service is started with the program "StartButler.exe" located in the Windows directory. I call it from a MortScript during device boot. It is important that HTC Touch Flo 3D is already loaded. For some reason, the gsensors can not be initialized if Touch Flo 3D is not loaded. Here is the code I use:
# Wait for TouchFlo3D
While(ProcExists("manila.exe")=0)
Sleep(1000)
EndWhile
# Start the butler
Run("\Windows\StartButler.exe")
Have fun!
Siggie
Change log:
V1.0:
- Initial release
V1.1:
- Reading of the NAV sensor completely rewritten. The sensor is now directly polled. This does not interfere with other programs, so the wheel sensor and the camera is working again.
- EnableFeature registry keys added for switching off each extension individually.
linuxis said:
New thread For Keyboard Slide Out Support:
http://forum.xda-developers.com/showthread.php?p=3305730#post3305730
Updated CAB is there. Happy using.
Click to expand...
Click to collapse
sounds like an excellent program, I'll try it
man, great app. it is totally replacing hbutton, and lets me start using voice commander again. two questions....can you list the other sip layout entries? i really want to use the full qwerty when the stylus is out and in. secondly, is there a way to define a diff lock such as s2u2 and then shut down. either way, the function is fine as is and really, thanks for sharing
I'm interest in Stroke Launcher more than the other apps. is there a chance you can provide a cab for just that portion of your application> I know it's contrary to your original intent (of combining apps) but that's the only one of those apps I really would want so I have the opposite- no desire to install any extra apps even if it's a single process Thanks.
about to give it a shot, sounds great
but i second the request to have s2u2 when put face down
noticed that if you delete the entries for sip, keeping the actual keys though. butler wont start. guess it still needs to check those values i was trying to get it to do nothing to my sip's and just keep full qwerty.
edit** here is the key for full qwerty {36BC8FF6-8241-4c36-ABDE-204885471FEE} and the other keys are all listed under HKCR/CLSID and look like this:
(HTC SIPs)
{198D503A-...} = Phone Keypad
{36BC8FF6-...} = Full QWERTY
{62B00599-...} = Compact QWERTY
(MS Default SIPs)
{42429667-...} = Keyboard
{42429690-...} = Letter Recognizer
{42429691-...} = Block Recognizer
{F0034DD0-...} = Transcriber
Maybe it would be easier to be able to just input the name
Sound great, I'll give it a try as well.
can you make it so that when it face down, the light turn off?
ok i figured out how to change what sip came when
and i turned off "facedown"
only problem is that the smart scroll such as zooming in opera and pics no longer works or autofocus in camera
Great app cannot go unrecognized!
so i downloaded and installed and forgot to make shortcut. A day after i just luanch it using fileexplorer with copy on storage card. Sounds like alot but considering i only reset once a week maybe... its not so bad.
After using it for a half day. I have to admit i was waiting for a way to use shortcuts with out using manilla. I am a RLtoday fan and i dont really use all of manilla features. I LOVE IT. I am considering removing Manilla all together. This has great potential for those of use that want alternatives to manilla.
This should really be placed in essentials.
Thank you.
**BTW cant get screen lock disabled, anyone have more detailed instructions for disabling face down lock?
to disable the lock i set the sensor threshold to 0
in the registry path that was said earlier in the thread
V1.1 available
I have added a new version that fixes the wheel sensor and camera problem. There are also now registry keys available to switch off each feature individually.
ok I dont know what happend but i installed this app and after a restart the keyboard pops up on the splash screen and the phone freezes.. I need a resolution fast. I really dotn want to hard reset. I have a lot of stuff i need back up.... Please help!!!
fuk it. had to hard reset.
any chance on just releasing stroke launcher as a standalone app so we don't need to install all and then disable them? Thanks
Exclude S2U2
How can I disable stroke launcher, when s2u2 is active? I tried to add S2U2(name of DWORD value=0) to ExcludedWindows and s2u2.exe to ExcludedProcesses, but stroke launcher is still active, any ideas?
Great App siggie1970,
Thanks .. I Think The most important thing to do now is to add a User Interface for the configuration..as it kinda hard to do it through the registry
thanks
Wow amazing programs are being released and 09 just started. Great name btw How are resources being used with this program? Since your combining apps perhaps you could work with the guy to incorporate his new alternative to gyrator/ screen tilt app.
bugsykoosh said:
any chance on just releasing stroke launcher as a standalone app so we don't need to install all and then disable them? Thanks
Click to expand...
Click to collapse
that is not the purpose of the program
would it be possible to turn one of the sides into scrolling up and down?
like leave the left up and down for app launching but right side scrolling that would make it pretty much perfect for me
then of course a configurator, although i got it setup but no fun having to change on each new install
It sounds like a great program, thanks! Stroke Launcher, I like that one LOL

[Q] Default action for wired headset button?

Is there a way to change the default action for when you press the button on the wired headset? I'd love to for instance start a new voice note with Catch or Evernote when pressing the button (if not in a call that is).
I've begun to get into Tasker but it seems a wee bit complicated. If anybody knows a simpler way, please post... Thanks!
Check out "headset button controller" in the market.
Instead of installing an app for this function, could we modify the value in a specific system file ?
Like this one : [MOD]disable Power or Home button screen wake

[Q] HP TouchPad Wireless Keyboard Remapping 4 ICS?

I have the Official HP TouchPad Wireless Keyboard and I'm running cm9 0.6
Some keys on the Keyboard are non functional with ICS. For example
Brightness Control
Back and Forward Music
Notification Key
Card View Key (Could be used as home button)
Virtual Keyboard Toggle Key
and some others I cant think of
My point is, how can I make these keys functional to actually work
and
Is there any way someone could probably develop a driver that can be flashed via Clockwork Mod Recovery as a ZIP?
It would be a great help to us TouchPad Users running CM9 ICS
BUMP!
Sent from my Galaxy Nexus using xda premium
I'm actually very curious about this as well, I own the HP touchpad keyboard too and I really like it, it works really well on WebOS but when it came to android, many of the buttons don't work and it would be really great if these buttons could be remapped in some form or another.
Yeah, I would be interested in this too.
Some of the keys are easily fixable by editing /system/usr/keylayout/qwerty.kl - such as the media back/forward buttons. There's a keytest app out there which will capture keystrokes and spit out the numerical codes. You can then edit these codes in together with the desired commands into the kl file.
Other keys (keyboard toggle, brightness toggle etc...), however, do not trigger numerical keycodes at all when pressed; they seem to be using some WebOS specific command, or the Android driver simply is not written to recognise these codes. It looks like the driver would need to be modified for those keys to work - but I am no expert.
I'll try and post an edited kl file with all the keys which are recognised working later.
I have no idea on Android inputs work, but in Linux/X server there was a command line command that allowed you to directly capture keystrokes/events from a keyboard. Does android use X?
Just so you know, this thread will probably get moved, but I thought I would provide a link before it does.
http://forum.xda-developers.com/showthread.php?t=1379863
I havent applied this to CM9, but I would imagine that it shouldn't be too different.
Bump
Bump
Bump
Try using this app:
External Keyboard Helper
https://play.google.com/store/apps/...id.hwkeyboardhelperdemo&feature=search_result
You can use it to remap keys into android. Please report back if it works, as I want to buy a keyboard for my tablet, but dont want to deal with useless keys
I did find this review in the UK that mentions this app does help remap and get those uesless keys working:
http://www.amazon.co.uk/product-reviews/B0058CZX70?pageNumber=2
Quote:
This high quality Bluetooth keyboard measures 28.5cm by 13cm and weighs about 360g, including the two AA batteries that are supplied with it: slightly longer than my tablet is wide, but still small and light enough to carry round.
It is solidly made, matt black metal rather than plastic, with a stylish curving shape firmly supported on rubber feet - no wobble even on slightly uneven surfaces. The slope is perfect for fast typing. The keys are low profile and short-travel, full size, responsive and quiet. No sign that any of them is likey to come loose. There is no numeric keypad, but there is a row of function keys at the top to control the tablet - search, brightness, volume, on/off etc. Battery life is claimed to be about six months as the keyboard powers down when not in use and comes back to life as soon as you press a key.
The keyboard paired with my Sony S and with my Galaxy (both Android devices) without fuss and worked immediately, although three or four key mappings needed adjusting to match the GB layout. For this the External Keyboard Helper app is highly recommended - you just press "autodetect keyboard" and everything comes right.
As other reviewers have mentioned, there is no on/off indicator. The light next to the on/off switch on the underside of the keyboard seems to show that the device is visible for pairing, rather than that it is on. Again, the External Keyboard Helper is useful here because it flashes up a discreet message when a keyboard is not detected. I only found the lack of a light a problem on one occasion - the second time I used it. The batteries supplied were flat, so nothing worked. Fortunately, before hurling it at the wall, I remembered the old principle "check the simplest explanation first".
The lack of a caps lock light I did not find a problem - this probably depends on your style of typing.
Excellent value for money.

[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

Categories

Resources