Re: Input > Screen Touch, Is it possible?

1,635 views
Skip to first unread message

Pent

unread,
Jul 12, 2012, 3:13:07 AM7/12/12
to Tasker
In theory I think it's possible with sendevent via shell commands, but
not actually possible right now in Tasker and I don't have time to
look at it.

Pent

Oon-Ee Ng

unread,
Jul 12, 2012, 3:41:04 AM7/12/12
to tas...@googlegroups.com
Yes it is, I actually tried it for an application but ended up dumping
the profile. You can use getevent to monitor your touches as I recall,
and then use sendevent to replicate them. Some manual assembly
required, of course (and good luck trying to replicate swipes or
anything more complicated than single touches).

Lieutenant

unread,
Jul 12, 2012, 11:31:18 AM7/12/12
to tas...@googlegroups.com
Thanks guys. I'm pretty new at this, so is there a page or information on how to set up scripts and sendevent/getevents?

Oon-Ee Ng

unread,
Jul 12, 2012, 10:09:53 PM7/12/12
to tas...@googlegroups.com
On Thu, Jul 12, 2012 at 11:31 PM, Lieutenant <lieu...@gmail.com> wrote:
> Thanks guys. I'm pretty new at this, so is there a page or information on
> how to set up scripts and sendevent/getevents?

Search this group, some others have posted about it before. Basically
you can adb into your phone to observe what happens with getevent and
then replicate that with sendevent.

bpdgu

unread,
Aug 30, 2012, 2:36:27 PM8/30/12
to tas...@googlegroups.com
I have tried but find it all too complicated for me. What's the simplest way to send touch input at specified coordinates? Using Android 2.3.5 on HTC Wildfire S if that makes any difference.

Matt R

unread,
Aug 30, 2012, 4:23:07 PM8/30/12
to tas...@googlegroups.com
As of now, that is the ONLY known way to do what you want.  Someone else on this forum had an idea a while back to try contacting the developers of USB/BT Joystick Center (and their Joystick2Touch add-on) to see if they would make a Tasker plugin, but I don't think that went anywhere.
 
Matt

Vladimir Oz

unread,
Aug 31, 2012, 2:36:46 AM8/31/12
to tas...@googlegroups.com
Ok. once again and again and again. What You find as complicated as binomial theorem?

1. run getevent ini adb shell
2. copy/paste it's output to file on PC
3. run script which contents one line cat $1 | gawk --non-decimal-data '{print $1, ("0x"$2)+0, ("0x"$3)+0, ("0x"$4)+0}' | sed 's/://g;s/^/sendevent /g' as convert.sh file.in > file out
4. put file.out on SD-card
5. Source it with Run Shell action


Let's search, research, and try DIY before giving up....
Reply all
Reply to author
Forward
0 new messages