babalae / better-genshin-impact

📦BetterGI · 更好的原神 - 自动拾取 | 自动剧情 | 全自动钓鱼(AI) | 全自动七圣召唤 | 自动伐木 | 自动刷本 | 自动采集 - UI Automation Testing Tools For Genshin Impact
https://bgi.huiyadan.com/
GNU General Public License v3.0
5.5k stars 351 forks source link

[bug] 云原神使用第二种捕获方式弹出报错 #394

Closed lalala0312 closed 6 months ago

lalala0312 commented 6 months ago
huiyadanli commented 6 months ago

尝试使用手动选择窗口的方式

Lightczx commented 6 months ago

@huiyadanli IGraphicsCaptureItemInterop 只支持win10 18362 及以上的版本

huiyadanli commented 6 months ago

@Lightczx 系统版本的判断方法给我抄抄

image

emako commented 6 months ago

https://github.com/babalae/better-genshin-impact/blob/main/Build/MicaSetup/Helper/System/OsVersionHelper.cs

emako commented 6 months ago

new Version(10, 0, 18362);

huiyadanli commented 6 months ago

https://github.com/microsoft/Windows.UI.Composition-Win32-Samples/blob/master/dotnet/WPF/ScreenCapture/README.md

官方示例也写了

Windows 10 version 1903 or later

emako commented 6 months ago

那用IsWindows10_1903_OrGreater判断就行了,不行就提示new PlatformNotSupportedException("仅支持Windows 10 version 1903 or later").ToString()

huiyadanli commented 6 months ago

直接在这个版本之前不展示这个截图器选项了

huiyadanli commented 6 months ago

https://github.com/babalae/better-genshin-impact/releases/tag/0.30.0

huiyadanli commented 6 months ago

d72ca16219e3e31cc3bca8e2600f3cb0

snouker commented 6 months ago

image @huiyadanli 本人win11被误伤,之前用WindowsGraphicsCapture.现在没改设置,选择框内无显示内容,功能不影响(担心改完无法改回来).

huiyadanli commented 6 months ago

@emako 看样子这个方法不靠谱

emako commented 6 months ago

@huiyadanli 你逻辑写反了

huiyadanli commented 6 months ago

干,还真是