Giter Club home page Giter Club logo

robothelper's Introduction

issues forks stars lincense Codacy grade

RobotHelper

这是做什么的?

一个安卓自动化脚本的框架。包含了自动化辅助开发常用的点击,找点,文字识别等功能。具体开发说明参见 wiki

该框架主要是方便Android游戏、爬虫项目的快速开发。比按键精灵等商业软件扩展性强,比AutoJS等更轻量,更适合二次开发。

支持无缝切换使用无障碍、Root、xposed三种方式提权实现点击等模拟操作。

Demo

更多使用参见 cn.xjiangwei.RobotHelper.GamePackage.Main类代码和Wiki说明

Point point = Image.findPointByMulColor(ScreenCaptureUtil.getScreenCap(), "434FD7,65|0|414DDB,90|55|46CDFF,5|86|5FA119");
Robot.tap(point);

以上代码将会在屏幕中查找 图标,然后点击这个图标(你直接运行这段代码可能不会成功,因为你的手机屏幕尺寸跟我不一样)

String s = TessactOcr.img2string(ScreenCaptureUtil.getScreenCap(0,0,200,30), "chi_sim", "", "");
MLog.info("文字识别结果:" + s);

以上代码将输出(0,0)到(200,30)这个矩形区域内的文字。

chi_sim表示语言为简体中文,默认语言包只有chi_sim和eng(英语)

你可以自己引入TessactOcr所支持的任意语言。语言包下载

未来规划

  • 1.添加Root权限实现底层点击操作

Thanks

Thanks for all these great works that make this project better.

robothelper's People

Contributors

jinnrry avatar zx900930 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.