GithubHelp home page GithubHelp logo

playjumpjumpwithmouse's Introduction

PlayJumpJumpWithMouse

用鼠标玩微信跳一跳

缘起

微信刚刚更新了一个版本,主推了一个叫跳一跳的小程序。无奈手残,于是想办法提高自己的好友排名,于是有了这个。

原理

用usb调试安卓手机,用adb截图并用鼠标测量距离,然后计算按压时间后模拟按压。

adb shell input swipe <x1> <y1> <x2> <y2> [duration(ms)] (Default: touchscreen) # 模拟长按
adb shell screencap <filename> # 保存截屏到手机
adb pull /sdcard/screen.png # 下载截屏文件到本地

使用方法

当前最新代码版本为0.0.4

  1. 在电脑上下载好adb,并安装JDK7及以上版本以及配置好java环境变量
  2. 打开安卓手机的usb调试模式并授权连接的电脑

    如果是小米手机,在USB调试下方有USB调试(安全设置)打开允许模拟点击 感谢@wotermelon

  3. 打开微信跳一跳,并点击开始
  4. 用终端打开adb,并执行一下adb shell,确认adb已经连接上手机后输入exit离开adb shell

    如果没有连接上,请通过搜索引擎查找原因

  5. 输入命令
java -jar playJumpJumpWithMouse.jar -a <your adb path>

以windows为例:

java -jar playJumpJumpWithMouse.jar -a "C:\Users\Home\Desktop\platform-tools\adb.exe"

如果想调整其他参数可以使用 java -jar playJumpJumpWithMouse.jar -h 查看更多选项

  1. 直接点击想要跳跃地点即可,跳跃完成后,需稍稍等一会儿

半自动以及全自动模式

-m 1: manual-mode , 2: semi-mode(default) , 3: auto-mode 

说明

  • 手动模式(manual-mode):弹出的窗口中先点击小人底部适当位置,然后再点想要跳的箱子的中心位置即可完成.
  • 半自动模式(semi-mode):只需要点击一次鼠标,即只需要点击终点的中心点就可以了.(默认模式)
  • 全自动模式(auto-mode):也就是挂机模式,不需要人工操作,启动后既可以自动识别算法自动帮你玩跳一跳.

一些需要注意的点

  • 有些安卓机并不能很好的使用adb exec-out,导致截屏异常,可以尝试使用老代码替换现有方法

运行截图

这是一个截图

推荐的adb下载地址

感谢

playjumpjumpwithmouse's People

Contributors

easyworld avatar kerwintangshuai avatar run-ze avatar bambootang 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.