Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

三星Note9无法识别能量小手 #58

Open
scenix007 opened this issue Nov 8, 2018 · 4 comments
Open

三星Note9无法识别能量小手 #58

scenix007 opened this issue Nov 8, 2018 · 4 comments

Comments

@scenix007
Copy link

如题,三星Note9分辨率2960*1440,自己截图制作了take.png后,仍然不能识别小手,翻页翻到底部后就自动返回了。系统默认截图格式是jpg,试过jpg和png都识别不了。
take
take
附上我自己制作的take图片。

@e1399579
Copy link
Owner

运行一下这个

log(device.width, device.height);

我估计是识别的分辨率与实际的不符。可以把分辨率调成上面的结果,再做截图

@scenix007
Copy link
Author

确认了的确是这个问题,手机分辨率1440x2960,识别出来是1080x2220,用AutoJs截图出来也是1080x2220的分辨率,然而Click的api还是1440x2960,有点难受。

@SuperMonster003
Copy link

如果尝试在脚本中加入类似setScreenMetrics(1080, 1920);的代码呢
或者自己把所有带有坐标的数值做一下坐标转换
比如你的分辨率是1440x2960 脚本分辨率是1080×1920
function cX = num => num * 1440 / 1080;
function cY = num => num * 2960 / 1920;
然后比如脚本中出现了坐标(234 ,567);
你可以用(cX(234), cY(567));
类似这样的思路可以尝试一下

@ghost
Copy link

ghost commented Jan 30, 2019

请问这个问题解决了 我的三星S8P也是这个分别率 小手也识别不了 @scenix007

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants