暂停所有桌面活动,例如截图工具
我想知道 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它实际上并不“暂停”活动 - 它只是捕获屏幕截图并将其冻结,直到您做出选择。您可以使用 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).