windows-screensaver

How to refresh logon screensaver parameter changes?

让人想犯罪 __ 提交于 2019-12-24 05:32:22
问题 I have a Windows service that may change the timeout on the logon screensaver in Windows (as described here.) To do that I change the following registry key to the timeout in seconds: HKEY_USERS\.DEFAULT\Control Panel\Desktop\ScreenSaveTimeOut The issue is that how do I make OS "read" or refresh the actual screensaver timeout after a change in the registry key above? My practice shows that it is refreshed (for sure) only when I reboot the system, but in my case I need it to be applied without

How to refresh logon screensaver parameter changes?

…衆ロ難τιáo~ 提交于 2019-12-24 05:31:24
问题 I have a Windows service that may change the timeout on the logon screensaver in Windows (as described here.) To do that I change the following registry key to the timeout in seconds: HKEY_USERS\.DEFAULT\Control Panel\Desktop\ScreenSaveTimeOut The issue is that how do I make OS "read" or refresh the actual screensaver timeout after a change in the registry key above? My practice shows that it is refreshed (for sure) only when I reboot the system, but in my case I need it to be applied without

Windows screensaver multiple instance

邮差的信 提交于 2019-12-13 18:26:55
问题 So, a windows screensaver is just an exe that is passed one of 3 parameters. /c for config screen /s for fullscreen /p <hwnd> for the little preview window. I have everything working peachy except I have multiple processing running (this is the problem). When you have the windows screensaver picker window open and select my screensaver, it launches it with /p so that it can show a preview. If you click the settings button, it will call my sreensaver again with /c. Now I there are two

How to interrupt Screen-saver under windows 8

情到浓时终转凉″ 提交于 2019-12-13 10:45:45
问题 I would like know how to interrupt Screen-saver under the Windows 8(Embedded version) or Windows 10, Because a window(C#) of my project only run under the normal status, otherwise it will be error if run under Screen-saver. so I want to interrupt the Screen-saver before this window pop-up. I have researched some solution and idea that included as below, a. Move mouse(used the user32's mouse_event api) b. Send keys(also used the user32's api) c. Kill screen-saver process. Both of a & b are

Allow a Windows screensaver to write to a file in Program Files

吃可爱长大的小学妹 提交于 2019-12-13 04:09:44
问题 I ran into a problem after creating a screensaver that requires writing to a file located in Program Files. When the screensaver becomes active it can successfully read a file from there but fails to write to a file. I noticed that when I use and elevated command prompt to run the screensaver, with /s, the screensaver successfully writes the file. So I assumed this was a permission problem. To see if it was a permission problem I went in and changed Program Files and the subfolders

Screensaver in /p preview mode keeps running after desk.cpl is closed

谁都会走 提交于 2019-12-13 03:10:46
问题 Context: I'm developing a screensaver in C# with VS2010 .NET 4.0 on Windows 8.1. It's quite "busy", accessing a database on initial load and doing some image processing before displaying to multi-monitors. Issue: In most cases the process shuts down cleanly either a) on mouse/keyboard movement in /s mode or when desk.cpl is closed in /p mode. A problem arises thought when I run in /p mode (desk.cpl open) and then I instigate either "settings" (/c mode) or "Preview" (/s mode). Once these new

Why won't the screen saver control panel kill my form when it dies?

强颜欢笑 提交于 2019-12-13 00:19:31
问题 Using code I found on CodeProject, I've created a screen saver. The following form is the tiny little form that I show in the Control Panel when the user chooses my screen saver. Everything seems to work fine; the form correctly resizes and draws (it's blank) in the correct place in the control panel, moves with the CP, etc. But when the Control Panel closes (or replaces my form with another screen saver's mini-preview), my app does not die. It just hangs out in memory. My form gets no form

Windows event id 4802 and 4803 triggered at the same time (invoke & dismissal of screen saver)

走远了吗. 提交于 2019-12-02 15:25:41
问题 Event id 4803 (Dismissal of a screen saver) is triggered immediately after Event id 4802 (Invoking a screen saver). Note that screen saver is actually still on till user interaction is detected. I am using windows 8.1. On windows 7 Event id 4803 is emitted correctly i.e. after screen saver turns off triggered by user interaction. Why is Event id 4803 triggered right after 4802? Update: I've been testing out the screen saver invoke/dismissal mechanism by windows 7 and it seems that if youtube

Windows event id 4802 and 4803 triggered at the same time (invoke & dismissal of screen saver)

China☆狼群 提交于 2019-12-02 12:26:23
Event id 4803 (Dismissal of a screen saver) is triggered immediately after Event id 4802 (Invoking a screen saver). Note that screen saver is actually still on till user interaction is detected. I am using windows 8.1. On windows 7 Event id 4803 is emitted correctly i.e. after screen saver turns off triggered by user interaction. Why is Event id 4803 triggered right after 4802? Update: I've been testing out the screen saver invoke/dismissal mechanism by windows 7 and it seems that if youtube is enabled same thing occurs. 来源: https://stackoverflow.com/questions/36941113/windows-event-id-4802

How do I change the screensaver programmatically?

て烟熏妆下的殇ゞ 提交于 2019-12-01 16:11:38
I'd like to change the current Screensaver for a custom one (which I previously loaded as a resource in Visual Studio) using C#. How could that be done? I've looked for it on Google and SO, but it all talks about "How to create a Screensaver", not "How to change a Screensaver". If possible, it should work on WinXP, Vista and 7. I'll answer my question with the piece of code that worked to me: public sealed class Screensaver { Screensaver() { } const int SPI_SETSCREENSAVEACTIVE = 0x0011; [DllImport("user32", CharSet=CharSet.Auto)] unsafe public static extern short SystemParametersInfo (int