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

如何取消LiveCaptions窗口隐藏?我尝试重启系统,但是LiveCaptions依然隐藏 #6

Open
Misakago opened this issue Dec 9, 2024 · 7 comments

Comments

@Misakago
Copy link

Misakago commented Dec 9, 2024

image
image
我想切换监听语言,如果没有LiveCaptions窗口,我将无法做到这一点。期待您的回复,感激不尽😊

@SakiRinn
Copy link
Owner

SakiRinn commented Dec 9, 2024

Setting里有个LiveCaptions Setting按钮,点一下可以直接呼出这个菜单
不过隐藏为啥解除不了我还没找到原因,等之后修修吧 :-)

@Misakago
Copy link
Author

Setting里有个LiveCaptions Setting按钮,点一下可以直接呼出这个菜单 不过隐藏为啥解除不了我还没找到原因,等之后修修吧 :-)

感谢您的回复,我尝试询问GPT,但还是没有解决,是有点奇怪。详细对话如下:https://chatgpt.com/share/67580c2e-1eb4-800f-938b-066e1273c7a6

@Misakago
Copy link
Author

Misakago commented Dec 10, 2024

在GPT的帮助下,窗口已正常显示,总结一下是由于隐藏窗口代码ShowWindow(hWnd, SW_MINIMIZE)会使得Windows 操作系统会将其坐标设置为特殊的值,例如 (-32000, 0)。而LiveCaptions启动会默认使用上一次的坐标位置导致窗口位置"不可见",希望对您有帮助。这个项目非常精致有用,感谢您的开发。

@SakiRinn
Copy link
Owner

在GPT的帮助下,窗口已正常显示,总结一下是由于隐藏窗口代码ShowWindow(hWnd, SW_MINIMIZE)会使得Windows 操作系统会将其坐标设置为特殊的值,例如 (-32000, 0)。而LiveCaptions启动会默认使用上一次的坐标位置导致窗口位置"不可见",希望对您有帮助。这个项目非常精致有用,感谢您的开发。

谢谢你的帮助!我尝试修复一下

@Misakago
Copy link
Author

image
这是我个人修复的方案,通过添加一个隐藏显示按钮来控制是否显示LiveCaptions窗口,这样就去掉了LiveCaptions Setting按钮,同时原先代码中关闭窗口会直接kill掉LiveCaptions进程,这会导致windows控制中心状态不能同步更新,如图
image
即使关闭了LiveCaptionsTranslator仍然显示开启且按钮失效,我的方案是关闭LiveCaptionsTranslator窗口是不用关闭LiveCaptions同时将窗口复位,这样不影响系统的LiveCaptions单独使用,希望对您有帮助😊

@SakiRinn
Copy link
Owner

SakiRinn commented Dec 11, 2024

image 这是我个人修复的方案,通过添加一个隐藏显示按钮来控制是否显示LiveCaptions窗口,这样就去掉了LiveCaptions Setting按钮,同时原先代码中关闭窗口会直接kill掉LiveCaptions进程,这会导致windows控制中心状态不能同步更新,如图 image 即使关闭了LiveCaptionsTranslator仍然显示开启且按钮失效,我的方案是关闭LiveCaptionsTranslator窗口是不用关闭LiveCaptions同时将窗口复位,这样不影响系统的LiveCaptions单独使用,希望对您有帮助😊

辛苦了,但我个人觉得这样损失了一定的易用性。
我想可以折中一下,在退出Translator的时候取消live captions的隐藏,然后通过模拟点击(而不是kill)把live captions关闭。这样也许能解决控制中心的问题。
再次感谢您的帮助!

@ConstantinopleMayor
Copy link

Setting里有个LiveCaptions Setting按钮,点一下可以直接呼出这个菜单 不过隐藏为啥解除不了我还没找到原因,等之后修修吧 :-)

屏幕截图 2024-12-14 162302
屏幕截图 2024-12-14 162421
24H2版本的LiveCaptions界面变了,在LiveCaptions Translator 的LiveCaptions Setting菜单中更改不了语言,所以才要调出LiveCaptions更改语言。

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