Is it possible in Android Studio to use the same key for opposite actions? For example, to use [Ctrl-M, M] to collapse/expand current block in Editor.
In Visual Studio this action is called "Edit.ToggleOutliningExpansion".
Related
I would like to use my right hand softkey to run a specific application - namely PI Agenda.
I know I can use DiamonTweak to change the softkey but it only gives me certain options. Is there any way I can define the softkey to open a certain app or is there a way to add to the list of apps that DiamonTweak offers for the softkeys? Perhaps putting a shortcut to the app somewhere or by adding a registry entry?
Thanks
There's a registry entry that changes the actual softkey use, I can't think what it is offhand.
You could use Schaps Advanced Configuration Tool or Fantastic Bytes SoftKey Manager - they both do this setting better than DiamondTweak.
elziko said:
I would like to use my right hand softkey to run a specific application - namely PI Agenda.
I know I can use DiamonTweak to change the softkey but it only gives me certain options. Is there any way I can define the softkey to open a certain app or is there a way to add to the list of apps that DiamonTweak offers for the softkeys? Perhaps putting a shortcut to the app somewhere or by adding a registry entry?
Thanks
Click to expand...
Click to collapse
You can do that in the registry
[Mobile Device\HKEY_LOCAL_MACHINE\Software\HTC\Manila\HomeLSKPath] for Left key
[Mobile Device\HKEY_LOCAL_MACHINE\Software\HTC\Manila\HomeRSKPath] for Right key
Here you have to put the whole string to you application, I made one for TomTom:
(\Intern geheugen\Programmabestanden\Navigator\TomTom Navigator.exe)
Excellent, thanks!
you need to change the text too: http://www.fuzemobility.com/?p=1611
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.
In “advanced” mode (i.e., with Beginner Mode disabled), tapping the default project tab opens a menu with buttons labeled Add, Import, Rename, Set Icon, and Lock/Unlock.
The Add button lets you create a new project, which will have its own tab. The Import and Export buttons, of course, let you share your Tasker project files to others, or use files created by others. You can also assign custom icons to your project tabs.
By the way, it’s easy to protect your projects by setting a lock code; when prompted, just type your lock code in order to view and edit a project.
Not every text field is consider an input field in android. I only found a doable way for input fields thought.
Can someone help me to make tasker switch to another profile always when the keyboard is on screen? In my case it's a profile that disables immersive mode and adds cursors to the navigation bar.
There is a discussion on the challenges presented in monitoring the soft keyboard on the Tasker helprace: Add Keyboard "Is shown" and "Close" Actions page. That discussion includes a Java function that can detect the soft keyboard state, but monitoring that can be resource intensive.
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 !!