Skip to content

Commit

Permalink
feat 修复不同分辨率下的找图逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
kaykie committed Apr 13, 2024
1 parent 93494f3 commit d7dedf4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
> 2. 脚本是基于图片识别与文字识别的,所以一旦在执行的过程中操作会导致脚本执行出错
## 运行到手机上
> 1. 下载release版本:[v0.1.0](https://github.com/kaykie/mengHuang/releases/tag/0.1.0)(还在迭代中)
> 1. 国内码云下载:[v0.1.0](https://gitee.com/kaykie/menghuang/releases/tag/0.1.0)(还在迭代中)
> 1. 下载release版本:[v0.2.0](https://github.com/kaykie/mengHuang/releases/tag/0.2.0)(还在迭代中)
> 1. 国内码云下载:[v0.2.0](https://gitee.com/kaykie/menghuang/releases/tag/0.2.0)(还在迭代中)
> 2. 安装到安卓手机上
> 3. 打开app
> 4. 给app授予无障碍权限与悬浮窗权限
Expand Down
7 changes: 6 additions & 1 deletion src/auto/robot/robot.fiveBen.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,14 @@ function taoHaiQu(){
}else{
log('未检测到长安城3')
}
loopFunction(function(){
var res = loopFunction(function(){
return findTextAndClick('动画',{isRepeat:true,region:'rightHalf'})
},5)
if(!res){
loopFunction(function(){
return findTextAndClick('跳过',{isRepeat:true,region:'rightHalf'})
},5)
}
var res2 = loopFunction(function(){
return findTextAndClick('普通',{region:'rightHalf'});
},5)
Expand Down

0 comments on commit d7dedf4

Please sign in to comment.