press 'Enter' key

401 views
Skip to first unread message

Marco Deppe

unread,
Dec 15, 2013, 10:14:25 AM12/15/13
to tas...@googlegroups.com
How can I program to press the enter key. Example "Text Type: some text", then press "Enter" ?

Stathis Efstathiou

unread,
Dec 15, 2013, 10:44:39 AM12/15/13
to tas...@googlegroups.com
You can try the Run Shell action with command "input tap x y"
You can get the x y coordinated by going to Settings - Developer Options and enable show pointer location. Just get the coordinates of your enter key and replace on x and y

If i'm not mistaken you need to be rooted to be able to use the Run shell command.

If there is an easier way i'm sure someone else will step up to help out.

Bob Hansen

unread,
Dec 15, 2013, 11:02:46 AM12/15/13
to tas...@googlegroups.com
Root access is required to do this. 
I use the Ctrl-V keyboard plug-in for this. This plug-in pretents to be a keyboard and types whatever you put in a Tasker variable that is named in the plug-in. It does require switching keyboards which is done using Secure Settings Helper function Input Method. You change it to Ctrl-V keyboard and then call the Ctrl-V plug-in action and then change back to your default keyboard.

Matt R

unread,
Dec 15, 2013, 1:55:17 PM12/15/13
to tas...@googlegroups.com
Clarification: root is not needed to use the run shell command, unless the command itself needs root (and thus you need to check the "use root" box). There are many shell commands you can run that do not need root.
Matt
Reply all
Reply to author
Forward
0 new messages