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

雷电模拟器横屏运行不正常 #2

Closed
czy-moyu opened this issue Jan 30, 2023 · 5 comments
Closed

雷电模拟器横屏运行不正常 #2

czy-moyu opened this issue Jan 30, 2023 · 5 comments
Labels

Comments

@czy-moyu
Copy link

雷电模拟器版本:9.0.27
Autox.js版本:6.3.6
我自己debug了一下,发现是gmlkit.ocr接口返回的坐标不对,不知为何。

@Zebartin
Copy link
Owner

Zebartin commented Jan 30, 2023

我恰好刚搞了个雷电9在尝试,出现这个问题是因为截屏时会按照竖屏方式(取决于调用requestScreenCapture时的屏幕状态……)截取,图片上下有大量空白区域
取消模拟器设置里的“强制横屏”应该能解决这个问题,具体怎么修改脚本我再想想……
除了这个问题以外还有另一个问题,device返回的width和height是相反的,我看看怎么改……
image

@Zebartin
Copy link
Owner

目前按以下设置后似乎可以正常运行:

  • 分辨率:手机版900*1600
  • 关闭自动旋转屏幕
  • 关闭强制横屏

@czy-moyu
Copy link
Author

目前按以下设置后似乎可以正常运行:

  • 分辨率:手机版900*1600
  • 关闭自动旋转屏幕
  • 关闭强制横屏

原来如此,明白了。

@Zebartin
Copy link
Owner

这两天应该能做到兼容“强制横屏”

@Zebartin
Copy link
Owner

Zebartin commented Feb 1, 2023

横屏的UI变动有点超出意料,特别是咨询页面,暂时放弃适配了,目前必须竖屏(横边短竖边长)运行

@Zebartin Zebartin closed this as completed Feb 1, 2023
@Zebartin Zebartin reopened this Feb 1, 2023
@Zebartin Zebartin added the 未来可期 TODO label Feb 1, 2023
@Zebartin Zebartin changed the title 雷电模拟器运行不正常 雷电模拟器横屏运行不正常 Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants