屏幕保护程序隐藏桌面

发布于 2024-09-06 13:45:33 字数 179 浏览 7 评论 0原文

我们希望构建一个屏幕保护程序,显示桌面和正在运行的应用程序,但通过显示登录屏幕来阻止用户输入。这个想法是构建一个没有窗口或透明窗口的 Windows 应用程序。但是,一旦屏幕保护程序被激活,桌面和所有应用程序都会从​​屏幕上隐藏。

是否可以在不隐藏桌面的情况下启动屏幕保护程序?

谢谢,

bja

we would like to build a screensaver that shows the desktop and the running applications but prevents user input by showing the login screen. The idea was to build a windows app with no window or a transparent window. However, as soon as the screensaver gets activated the desktop and all applications are hidden from the screen.

Is it possible to start the screensaver without hiding the desktop?

Thx,

bja

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

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

发布评论

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

评论(4

仅此而已 2024-09-13 13:45:33

您是否可以将其实现为屏幕保护程序之外的其他东西?我假设 Windows API 确实有一个方法可以让你知道计算机空闲了多长时间(否则,管理屏幕保护程序的东西是如何做到这一点的?),所以如果你使用它,你可以设置你的应用程序,使其作为后台进程持续运行,并会弹出一个模式对话框(或透明窗口的想法)或当计算机闲置一段时间后提示用户登录信息的内容。

Is it possible for you to implement this as something other than a screensaver? I'm assuming that the Windows API does have a method that allows you to tell how long the computer has been idle (otherwise, how does the stuff that manages screensavers do it?), so if you use that you could just set up your application such that it's continuously running as a background process, and will pop up a modal dialog box (or your idea of a transparent window) or something that prompts for the user's login info when the computer has been idle for a certain amount of time.

天煞孤星 2024-09-13 13:45:33

为什么你不能在 SS 开始时抓取屏幕图像呢?然后用它作为你的 SS 的背景。

Vista 有一个气泡屏幕保护程序,它会开始在屏幕上放置气泡。不知道他们是怎么做到的。

Why can't you just grab an image of the screen when the SS kicks off. Then use that as the backdrop of your SS.

Vista has a bubbles screen saver that just starts putting bubbles on the screen. Not sure how they do it.

冷…雨湿花 2024-09-13 13:45:33

您最好只创建一个带有透明窗口的全屏应用程序,该窗口像屏幕保护程序一样在计时器上启动。屏幕保护程序功能虽然与您正在执行的操作类似,但功能却有很大不同。

You are better off just creating a full-screen application with a transparent window that starts up on a timer like a screensaver. The screensaver functionality while similar to what you are doing, functions much differently.

不美如何 2024-09-13 13:45:33

作为替代建议,您始终可以使用服务(或后台应用程序)来收集您希望这些监视工具显示的信息,甚至只是抓取(隐藏)桌面的定期屏幕截图,然后让您的屏幕保护程序查询该应用程序获取它需要显示的数据。

这样,您就可以获得屏幕保护程序的好处(安全桌面、通常的 Windows 登录顺序等),但仍然可以显示您需要的内容。

As an alternative suggestion, you could always use a service (or background app) to gather the information you want these monitoring tools to display, or even just to grab periodic screenshots of the (hidden) desktop, and then have your screensaver query that app to get the data it needs to display.

That way, you get the benefit (the secure desktop, the usual Windows login sequence, etc.) of a screensaver, but still get to display what you need to.

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