抑制 Windows 中的弹出窗口
有没有一种简单的方法可以告诉 Windows 不要在无头服务器计算机上显示弹出窗口?
目前,偶尔的应用程序弹出窗口导致我的应用程序冻结,因为没有人可以在控制台上按“确定”。 只需记录到事件日志就足够了。
Is there an easy way to tell Windows not to display popups on a headless server machine?
Currently occasional application popups are causing my app to freeze because no one is available to press 'Okay' on the console. Just logging to the eventlog would be more than sufficient.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据需要处理的弹出窗口的具体情况,有几种方法。
Depending on precisely what popups need to be handled, there are a couple of approaches.
这一切都取决于弹出窗口的类型,从系统的消息框到自定义对话框。 所以我认为对此没有通用的解决方案。
如果我遇到问题,我会使用宏语言,例如 AutoHotkey(或 AutoIt),来检测弹出窗口的激活并自动单击放弃按钮。
[编辑] 找到一个现成的 AHK 弹出窗口拦截器: 新窗口(弹出窗口)拦截器
也许可以按原样使用,或者作为起点。
It all depends on the kind of popup, from system's message box to custom dialog. So I don't think there is a generic solution to this.
Should I have the problem, I would use a macro language, like AutoHotkey (or AutoIt), to detect the activation of the popup and automate the click on the discard button.
[EDIT] Found a ready to use AHK popup blocker: New window (popup) blocker
Perhaps usable as is, or as a starting point.