Have Tasker Control Touchpad Cursor and Simulate Screen Tap?

5,055 views
Skip to first unread message

smalis

unread,
Jun 17, 2013, 11:30:21 AM6/17/13
to tas...@googlegroups.com
I have an app I am trying to automate with Tasker, and I need Tasker to move the touchpad cursor and then simulate a left click and/or simply simulate a finger tap on the screen.

Details:  The app is the Boston Globe reader, which is a localized version of Press Reader.  The app only downloads new issues when it is opened (the "background update" feature is not working for me), and this takes a few minutes, so I am trying to use Tasker to open the app at 5 AM and take a few steps to get the download started.  (The download is supposed to start when the app is opened, but this also is not working for me).

Problem is that after a few steps, I get to a screen where I have to touch (or click with the touchpad and cursor) a particular Boston Globe icon.  I have been unable to get Tasker to simulate either of those actions.

Strangely enough, if I tap [I]anywhere [/I]on the screen, I can then use the cursor keys to select the Globe icon and then press the "Enter" key, but this does not work without the initial "triggering" screen tap with my finger, which I cannot get Tasker to simulate.

All suggestions are appreciated!  TIA!

smalis

unread,
Jun 17, 2013, 11:31:32 AM6/17/13
to tas...@googlegroups.com
Forgot to state that the device is an Asus TF700 Infinity Transformer, with the dock.

Wes Stacey

unread,
Jun 17, 2013, 12:56:42 PM6/17/13
to tas...@googlegroups.com
Under "Input" action category there are several actions that will probably do what you want. Only issue being that most of them require the device to be rooted. If it isn't they will show up as red and give you aa "This action is not available on your device" error message when you click on them.

-Wes

smalis

unread,
Jun 17, 2013, 12:59:37 PM6/17/13
to tas...@googlegroups.com
Thanks, Wes, my device is rooted, and I have tried the Button and DPad Input actions, without success.

Wes Stacey

unread,
Jun 17, 2013, 1:08:41 PM6/17/13
to tas...@googlegroups.com
Ok, you can try the "Run shell" action with the command "input tap 564 1856" where the numbers are the x and y coordinates of the tap location.


in order to get the correct coordinates, on your device go to Settings -> dev options and turn on "show pointer location" then you can go into your app and tap on the correct location and it will display the x/y coordinates of the tap which you can input on that script.

see if that works for you.

-Wes

Stuart Malis

unread,
Jun 17, 2013, 1:26:17 PM6/17/13
to tas...@googlegroups.com
Perfect!  Never used that command before.  Thank you very much!!


--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/BHiFfDq2wGA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

FeuStElme

unread,
Sep 2, 2013, 4:11:50 AM9/2/13
to tas...@googlegroups.com

I have set up a profil with autovoice in order to send text and l need to have tasker automatically long press on the mic icon (i am using swiftkey) in order to record my message before sending it ...
is it possible to set a long press? thanks 

joaomgcd

unread,
Sep 3, 2013, 5:53:36 AM9/3/13
to tas...@googlegroups.com
You can use the AutoInput plugin to do this. It's still in beta stages, but it's mostly working.


Then get the AutoInput beta plugin here: https://play.google.com/apps/testing/com.joaomgcd.autoinput

FeuStElme

unread,
Sep 3, 2013, 5:56:35 AM9/3/13
to tas...@googlegroups.com
Thanks for your answer. I will join this community. But the link to Google play you provided doesn't seem to be valid...

João Dias

unread,
Sep 3, 2013, 6:09:25 AM9/3/13
to tas...@googlegroups.com
It's only valide after  you join the community I think :)


On Tue, Sep 3, 2013 at 10:56 AM, FeuStElme <tristan....@gmail.com> wrote:
Thanks for your answer. I will join this community. But the link to Google play you provided doesn't seem to be valid...

Yan Lin

unread,
Sep 5, 2013, 11:54:40 PM9/5/13
to tas...@googlegroups.com
It is weird.. I can't use the input tap from run shell. Something need to be done?
I am using rooted xperia p with unlocked bl.
I simply made an action with opening calculator then wait 2 sec, run shell input tap 215 500 to press 5. The action will load calculator just fine. But it won't press 5.
Desperately need your advice...

Matt R

unread,
Sep 6, 2013, 6:24:35 PM9/6/13
to tas...@googlegroups.com
Try the command in a terminal emulator app.

Matt

Rich D

unread,
Sep 6, 2013, 7:10:19 PM9/6/13
to tas...@googlegroups.com

> I am using rooted xperia p with unlocked bl.

The input tap is not supported for pre- ICS
Not sure what you are running....

Yan Lin

unread,
Sep 6, 2013, 8:41:10 PM9/6/13
to tas...@googlegroups.com
I'm using 4.1.2 android...

Yan Lin

unread,
Sep 6, 2013, 8:52:52 PM9/6/13
to tas...@googlegroups.com
It is working under terminal emulator. How come it won't work with tasker?

Matt R

unread,
Sep 7, 2013, 2:17:34 AM9/7/13
to tas...@googlegroups.com
Checked "use root" in Tasker?

Matt

Yan Lin

unread,
Sep 7, 2013, 2:40:02 AM9/7/13
to tas...@googlegroups.com
Yes I did...

Matt R

unread,
Sep 7, 2013, 3:03:03 AM9/7/13
to tas...@googlegroups.com
Does Tasker perhaps not think you're rooted? I've heard other people with this problem. Can you try some Tasker root functions, like the dpad actions?

Matt

Yan Lin

unread,
Sep 7, 2013, 3:38:51 AM9/7/13
to tas...@googlegroups.com
Matt, dpad action is working fine. I have copied whatsapp location action that stimulate dpad action and running just fine on my phone.
Yes, I fund in weird though...
Thank you
Message has been deleted

David Wang

unread,
Sep 9, 2013, 3:59:10 AM9/9/13
to tas...@googlegroups.com

R Nepil

unread,
Oct 16, 2013, 11:36:06 AM10/16/13
to tas...@googlegroups.com
Thanks for this. Due to am unfortunate choice of coordinates, I've created the first self-deleting task   :-)

Yan Lin

unread,
Oct 27, 2013, 12:51:22 AM10/27/13
to tas...@googlegroups.com
Update... After I reviews the other action... I found capital letter is the problem. I use Input instead of input. And it worked.
Message has been deleted

Stuart Malis

unread,
Oct 31, 2013, 12:47:56 PM10/31/13
to tas...@googlegroups.com

That is not a Tasker action, it is in the device settings, in developer settings

On Oct 31, 2013 11:56 AM, "Tom Pham" <tomd...@gmail.com> wrote:
I don't see the option to turn on "show pointer location" anywhere.  Did Tasker remove it in an update?

--
Reply all
Reply to author
Forward
0 new messages