暂停所有桌面活动,例如截图工具

发布于 2024-12-28 14:59:19 字数 140 浏览 3 评论 0原文

我想知道 Windows 上的截图工具软件如何能够暂停桌面活动。我的意思是,如果我正在玩带有移动物体的游戏或 YouTube 上的视频,它们就会停止移动。就好像视频已暂停,尽管事实并非如此。

我正在寻找一种方法来复制这种效果,最好是在 Java 中。

I'm wondering how the snipping tool software on Windows is able to suspend the desktop activity. By this I mean that if I'm playing a game with moving objects or a video on youtube, they stop moving. It's like the video is paused even though it isn't.

I'm looking for a way to duplicate this effect, preferably in Java.

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

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

发布评论

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

评论(1

手长情犹 2025-01-04 14:59:19

它实际上并不“暂停”活动 - 它只是捕获屏幕截图并将其冻结,直到您做出选择。您可以使用 Robot.createScreenCapture 方法来捕获屏幕并在全屏窗口中显示此图像(请参阅Frame.setUndecorated)。

It doesn't actually "suspend" activity - it simply captures a screenshot and freezes it until you make a selection. You can do a similar thing in Java by using the Robot.createScreenCapture method to capture the screen and display this image in a full-screen window (see Frame.setUndecorated).

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