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

Win7 截图是黑屏 #145

Closed
dahuangpi opened this issue Aug 16, 2021 · 15 comments
Closed

Win7 截图是黑屏 #145

dahuangpi opened this issue Aug 16, 2021 · 15 comments
Labels
question Further information is requested

Comments

@dahuangpi
Copy link

last_screenshot

@dahuangpi
Copy link
Author

auto_derby.log

@NateScarlet
Copy link
Owner

launcher.log 发一下

@NateScarlet
Copy link
Owner

你之前有成功使用过吗 还是第一次用

@dahuangpi
Copy link
Author

launcher.log

@dahuangpi
Copy link
Author

我是第一次用的

@dahuangpi
Copy link
Author

又用adb试了一下,能截到图,但是还是操作不了,这是手机运行的
launcher.log
auto_derby.log

@NateScarlet
Copy link
Owner

分辨率必须是16:9

@NateScarlet
Copy link
Owner

不带插件能启动吗 你用了个叫 1 的插件

@NateScarlet
Copy link
Owner

你可以试试用 use_legacy_screenshot 插件看能不能截到图

这个是前台全屏截图再裁剪

@dahuangpi
Copy link
Author

试了试和别的插件无关,用了use_legacy_screenshot以后就可以了,非常感谢

@NateScarlet
Copy link
Owner

那也奇怪 按理说应该能后台截图的

可能是你 win10版本太老 你的是 14409 我的是 19041

@NateScarlet NateScarlet added the question Further information is requested label Aug 16, 2021
@dahuangpi
Copy link
Author

我这个电脑还是win7。。

@NateScarlet
Copy link
Owner

NateScarlet commented Aug 16, 2021

那就对了 后台截图用了 windows8.1 之后加的 API

# https://docs.microsoft.com/en-us/windows/win32/winprog/using-the-windows-headers
_WIN32_WINNT_WINBLUE = 0x0603
def _win_ver():
v = sys.getwindowsversion()
return v.major << 8 | v.minor
_WIN32_WINNT = _win_ver()
PW_CLIENT_ONLY = 1 << 0
# https://stackoverflow.com/a/40042587
PW_RENDERFULLCONTENT = 1 << 1 if _WIN32_WINNT >= _WIN32_WINNT_WINBLUE else 0

win7 都停止更新快 2 年了

@NateScarlet NateScarlet changed the title 截图是黑屏 Win7 截图是黑屏 Aug 16, 2021
NateScarlet added a commit that referenced this issue Aug 16, 2021
@NateScarlet
Copy link
Owner

开发分支加了对旧版 windows 自动启用 use_legacy_screenshot

@dahuangpi
Copy link
Author

对了,昨天还有个问题。一开始launch也启动不了,我自己去下载了powershell之后就没问题了,应该也是系统太旧的问题

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

No branches or pull requests

2 participants