Comments (8)
复现步骤是怎么样的,你是横屏状态启动程序,然后竖屏运行?
目前所有点都是基于图像的,只要图像正确读取了,后续坐标就没问题。你可以用https://github.com/Jinnrry/RobotHelper/blob/master/Android/app/src/main/java/cn/xjiangwei/RobotHelper/Tools/ScreenCaptureUtil.java#L21 这个方法看一下图像是否正确获取了
from robothelper.
我运行的是阴阳师,从运行的时候就是横屏,获取图像之后是横屏的图像,然后识别图像给出的坐标也是按照横屏的坐标给的,我不确定是不是机型的问题,在执行点击command line的时候,我的机器始终是按照竖屏的屏幕坐标来触发的
from robothelper.
然后在tap方法里面,我发现我的手机获取到的点击事件的顺序和你写的不太一样,所以我自己做了调整,应该是不同的机型的问题
from robothelper.
额。你是用的root方式提权吗?root方式底层是直接操作的硬件指令,这个确实没有处理屏幕方向问题。你可以试试xposed方式,这种方式应该是没问题的。
root方式因为是操作的底层硬件,很容易出现机型问题,但是这方面我没条件也没精力去适配
from robothelper.
嗯,是的,我是用ROOT方式提取的,xposed框架对我手机上其他的app可能会有检测影响所以我没有尝试,不过没关系,各个机型可能会有不同的适配问题,手动解决也不复杂,有一定android开发基础就很容易定位问题解决
from robothelper.
然后现在的问题是在于我还没找到简单的办法停止脚本,每一次我都是要在app设置里强制结束,如果框架能够后续更新出暂停或者停止脚本那就挺完善的了
from robothelper.
项目的运行原理是点击开始后新起一个线程,在新线程中运行自定义脚本,因此你可以在这里向线程发送中断指令,你程序里面响应中断指令退出就行了
from robothelper.
嗯,我稍微做了一下修改,把Main改成实现Runnable,然后再RunTime class里实现了停止和重启脚本功能
from robothelper.
Related Issues (20)
- opencv 安装问题 HOT 1
- 图片匹配报错 HOT 5
- 图片模板匹配 HOT 8
- 尝试使用回收的位图错误如何解决? HOT 5
- 请问一下一些脚本的功能 HOT 1
- 交流 HOT 1
- 二值化找图 HOT 12
- 我见你的博客里面提到 不使用opencv,自己用Java实现模板匹配,后来怎么又安装opencv模块了 HOT 1
- e7root HOT 2
- 这个框架还可以正常运行吗? HOT 1
- 取色工具 HOT 5
- 可以适配安卓11吗? HOT 1
- 没连接usb进行模拟点击会导致手机卡主 HOT 2
- 雷电模拟器中不定时闪退 HOT 8
- root模式下,点击次数的限制 HOT 3
- getScreenCapHorizontal 中的 bitmapCacheVertical.isRecycled() 错误 HOT 3
- 不会配置环境 HOT 1
- input往输入框输入文字留的有接口,有计划实现吗 HOT 6
- 截图有些文字颜色有问题 HOT 3
- 大佬的网站打不开了 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robothelper.