Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
# RobotHelper | ||
Automated script for Android games | ||
|
||
## 这是做什么的? | ||
|
||
一个安卓手游脚本的框架。包含了游戏辅助开发常用的点击,找点,文字识别等功能。具体开发说明参见 | ||
[wiki](https://github.com/Jinnrry/RobotHelper/wiki) | ||
|
||
|
||
## Demo | ||
|
||
``` | ||
Point point = Image.findPointByMulColor(ScreenCaptureUtil.getScreenCap(), "434FD7,65|0|414DDB,90|55|46CDFF,5|86|5FA119"); | ||
Robot.tap(point); | ||
``` | ||
|
||
以上代码将会在屏幕中查找![chrome](./docs/chrome.png)图标,然后点击这个图标(你直接运行这段代码可能不会成功,因为你的手机屏幕尺寸跟我不一样) | ||
|
||
|
||
``` | ||
String s = OcrApi.multLineOcr(ScreenCaptureUtil.getScreenCap(), 0, 0, 200, 30); | ||
MLog.info(s); | ||
``` | ||
以上代码将输出(0,0)到(200,30)这个矩形区域内的文字。 |