如何在Android中为任何应用程序模拟触摸? [英] How to simulate touch for any application in Android?

查看:146
本文介绍了如何在Android中为任何应用程序模拟触摸?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道已经问过一些类似的问题,但是我认为他们要求在自己的应用程序中模拟触摸,但是我想创建一个可以使用任何应用程序的代理。

I know some similar questions have already been asked, but I think they are asking for simulating touch in their own applications, however I want to make an agent that can "use" any application.

因此,我要实现的目标应作为一系列输入(触摸:{x1,y1},{x2,y2}等)并控制任何应用程序(

So what I want to achieve should take as a series of inputs (touch: {x1,y1}, {x2,y2}, etc) and control any application (such as Facebook) just as if a genuine user is touching that coordinate.

有没有示例或解决方法?还是对此已经存在的问题?

Is there any example, or a way for this? Or an already existing question about this?

谢谢您的帮助!

编辑:我想这是解决方案-如果有的话-可能会涉及PC。将我的真实Android设备连接到我的PC,或使用虚拟Android设备。但是,虚拟设备不支持Google Play,我需要使用Google Play中的某些应用。

I imagine that the solution -if any exists- will probably involve a PC. either connecting my real Android device to my PC, or using a Virtual Android Device. However, virtual devices do not support Google Play, and I need to use some apps from Google Play.

推荐答案

我必须搜索为此。我也在寻找这种解决方案。

I had to search a bit for this. I was also looking for this solution.

此操作无需滚动:
如果您要重复执行以下步骤填写表格,由于重做很无聊,请重复游戏步骤,您可以尝试: FREP 来自Play商店(链接)的Android应用。

NO ROOTING REQUIRED FOR THIS: If you want to repeat a sequence of steps like fill a form, repeat game steps because redoing is boring, You can try : FREP Android App from Play Store(Link).

如果要添加条件方案例如,当您使用家用Wifi玩《部落冲突》时,会自动打开数据并禁用wifi(因为印度的Airtel Wifi难以预测,可能会使您摆脱氏族战争!)使用, 宏Droid (来自Play商店)。

If you want to add conditional scenarios like, when you play Clash of Clans with home Wifi, turn data automatically and disable wifi ( Because Airtel Wifi in India is unpredictable and can make you loose the clan war!!) use, Macro Droid from Play Store.

您也可以尝试以下操作:
Mahiro
许多应用程序可用在 Tasker ,例如 自动输入 。您也许可以使用此Tasker应用程序编写代码/编写宏来制定个人解决方案。

You can try these as well: Mahiro Many apps are available based on Tasker like, Auto Input. You can maybe code/write macro to make personal solution with this Tasker App.

这篇关于如何在Android中为任何应用程序模拟触摸?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆