如何阻止 Windows 应用程序窃取焦点

发布于 2024-07-04 10:48:53 字数 1571 浏览 8 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

肩上的翅膀 2024-07-11 10:48:54

因为我认为除了 XP 之外,没有经过批准的 TweakUI 版本。 显然,在注册表中进行此更改对 Vista 也有类似的影响:

[HKEY_CURRENT_USER\ControlPanel\Desktop]

ForegroundLockTimeout = 0

但是我发现(Vista x64)虽然焦点保持在原始窗口上,但有问题的窗口仍然会占据前景 - 相当分散注意力。

Since I don't think there's an approved version of TweakUI other than for XP. Apparently making this change in the registry has a similar impact for Vista:

[HKEY_CURRENT_USER\ControlPanel\Desktop]

ForegroundLockTimeout = 0

However I found (Vista x64) that while focus on the original was maintained the offending window would still take the foreground - quite distracting.

天涯离梦残月幽梦 2024-07-11 10:48:53

作为替代方案,您可以尝试使用终端之类的东西。 它允许您在同一窗口中同时打开多个远程桌面窗口作为选项卡。 很酷。 此外,它是开源的,因此您可以根据需要更改其行为(尽管我不认为它会像普通 RDP 会话那样窃取焦点)。

终端屏幕截图

As an alternative, you could try using something like Terminals. It allows you to have multiple remote desktop windows open at once all as tabs in the same window. Quite cool. Also, it is open source so you can change its behavior if needed (although I don't believe it steals focus like a normal RDP session does).

Terminals Screenshot

云之铃。 2024-07-11 10:48:53

我使用调整 UI 来配置资源管理器,以便应用程序不会窃取重点; 您还可以配置它们在任务栏中闪烁的次数。

编辑:进入 Tweak UI 后,可以在“常规”>“常规”下找到这些选项。 重点。

编辑:@Kev,显然有 a 64位版本(未经微软批准,显然,我当然会扫描它是否有病毒),可以在 64 位版本的 XP 上成功运行。 据我了解,你下载它,然后以管理员身份在 XP 兼容模式下运行它,它就会成功。 Tweak UI 基本上是一系列注册表黑客的一个很好的包装,所以我想如果您不喜欢以这种方式运行 Tweak UI,您可以自己找到这些黑客。 希望这对你有用!

I use Tweak UI to configure explorer so that apps don't steal focus; you can also configure how many times they flash in the taskbar as well.

EDIT: Once you are within Tweak UI, these options are found under General > Focus.

EDIT: @Kev, apparently there is a 64-bit version (not MS approved, apparently, I would scan it for viruses of course) that works successfully with the 64-bit version of XP. From what I understand, you download that and then run it in XP compatibility mode as administrator and it will do the trick. Tweak UI is basically a nice wrapper around a collection of registry hacks, so I imagine you could find the hacks themselves if you didn't care for running Tweak UI in this manner. Hope that works for you!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文