screensaver

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

Receive screensaver notification

蹲街弑〆低调 提交于 2019-12-11 09:22:52
问题 I want to receive a notification in my C++ application when a screensaver is about to start. I tried listening to WM_SYSCOMMAND messages with wParam == SC_SCREENSAVE which some people think should do the trick. That didn't work. Spy++ even showed that my window didn't receive any WM_SYSCOMMAND message. Interesting thing is when I turned off the monitor I did receive the message with wParam == SC_MONITORPOWER . Am I understanding it wrong? Or did I just miss something? Edit: For testing I used

Detecting inactivity (no user interaction) in iOS for showing separate Screen like an Overlay

怎甘沉沦 提交于 2019-12-11 06:34:08
问题 How to detect inactivity or no user interaction in iOS App. For showing separate Screen like an Overlay or something like a screensaver. With the following link link that used to present screen overlay when the app became inactive I'm able to show the screen saver in the app. But with normal dismiss view controller code not being able to dismiss the presented view controller. we are presenting the custom overlay using // The callback for when the timeout was fired. func applicationDidTimout

How to detect when daydream starts/ends

守給你的承諾、 提交于 2019-12-11 03:38:36
问题 In jellybeam mr2 daydream replaced display sleep. An application was able to know when the sleep starts or ends by registering broadcast receiver for action ACTION_SCREEN_ON, ACTION_SCREEN_OFF. Is there any way to do the same against daydream? Just to be clear, I'm not trying to add a new daydream service, but just want to be informed of (any) daydream-related events. 回答1: register for Intent.ACTION_DREAMING_STARTED and Intent.ACTION_DREAMING_STOPPED 来源: https://stackoverflow.com/questions

Create child Window of another process's HWND? (e.g. screensaver preview)

霸气de小男生 提交于 2019-12-11 02:39:10
问题 I'm writing a screensaver in Java. It's primarily for Windows, though I'd prefer it to be as portable as practical. According to http://support.microsoft.com/kb/182383, when a screensaver is invoked with command line args /p HWND , the screensaver should "Preview Screen Saver as child of window ." Presumably this is how screensavers should their little preview in the Screen Saver Settings dialog. So how, in Java, do you create a JFrame or JComponent that's a child of a window that belongs to

Configure *.scr file from C#

我怕爱的太早我们不能终老 提交于 2019-12-10 21:34:37
问题 I am creating a program in C#.Net, one of the features allows a user to select a screensaver from a list and either preview or configure it. After doing some research I found that by calling the *.scr file with the "/c" argument will display the configuration dialog. Using this argument from the command line works fine ("C:\Windows\System32>PhotoScreensaver.scr /c") but calling this from C# will always result in the screensaver being simply displayed as though the argument is just being

screensaver does not restart after it launches an external process

折月煮酒 提交于 2019-12-10 12:05:08
问题 I'm implementing a screensaver to restart a background application. My need is to restart firefox to reset the home page in a windows kiosk. I would like to do this with a Screen Saver. The language I use is C#. The code is not so complex and is a sort of copy and paste from http://msdn.microsoft.com/en-us/library/windows/desktop/ms686421(v=vs.85).aspx and http://www.harding.edu/fmccown/screensaver/screensaver.html It should work in this manner: the screensaver starts, then after 10 sec.

How does one run screensaver within Windows Form as background for it?

我只是一个虾纸丫 提交于 2019-12-10 11:43:59
问题 How does one run screensaver within Windows Form as background for it? User also can interact with form controls while screensaver running. [Why this?] We have a case which we need to run Windows Bubbles screensaver while user can continue interacting with form controls? 回答1: You can use the following code : private void ShowScreenSaver(Control displayControl) { using (RegistryKey desktopKey = Registry.CurrentUser.OpenSubKey(@"Control Panel\Desktop")) { if (desktopKey != null) { string

Stop Screensaver programmatically

走远了吗. 提交于 2019-12-10 10:38:07
问题 How can I stop the screensaver while it's running? without moving the mouse or pressing a key on the keyboard. My applications input is from a card reader, if the screen saver is running my application is still working fine but the screen saver doesn't stop when an input is received on the card reader. I've tried this http://www.codeproject.com/Articles/17067/Controlling-The-Screen-Saver-With-C , doesn't seem to work for me. I tried faking a mouse movement like on this thread How do I turn