Git Product home page Git Product logo

tap_recorder's Introduction

介绍

Android手机的模拟用户点击操作的脚本,基于adb实现,能够记录用户对手机屏幕的点击坐标和时间,然后自动重复刚才记录的点击操作。

可以用于各种需要用户重复点击手机的场合,比如,作为“明日方舟”外挂,自动刷本(对,我写这个就是用来完“明日方舟”的:-)

在WSL环境下测试,WSL下使用lsusb无法检测到手机,adb指令无法使用,因此改用Windows下的adb,而脚本仍然是Linux shell。

用法

  1. 保证手机开启USB调试功能,并连接电脑。
  2. 首先确保系统已经安装adb,并且可以使用,测试方法如下,如显示如下内容表示已adb已经连接手机。
$ adb devices
List of devices attached
c3440aa3        device
  1. 进行点击记录,执行以下命令,其中filename为记录坐标的文件名
$ ./tap_recorder.sh -r <filename>
  1. 读取坐标文件,模拟用户点击,执行以下命令,其中filename为刚才记录的坐标文件,time为需要重复的次数
$ ./tap_recorder.sh <filename> <time>

PS: 目前只支持横屏模式,屏幕宽度为1080像素,不同手机需要修改,竖屏需要改脚本

PPS: 坐标记录可能会漏掉,不过脚本会自动跳过无效记录

tap_recorder's People

Contributors

colourfate avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.