screensaver

Spawning child processes in a screensaver

耗尽温柔 提交于 2021-02-10 12:28:30
问题 I have a Screensaver written in .NET / C# that is dependent on a background process running. While the background process is added to the user's startup programs on install, it would still be nice to not require the user to reboot their machine after installing the screensaver. The process itself has to run under the current user's credentials, so using a Windows Service for this is out of the question. The best solution I've thought of for this is to detect whether the background process is

Monitoring Screensaver Events in OSX

时光毁灭记忆、已成空白 提交于 2020-08-21 04:51:13
问题 I want to monitor screensaver and lockscreen events on an OSX box. As a first pass, I'm fine with them just printing to the console. Following the advice of another's question, I wrote some Objective C to listen for Cocoa Notifications for the com.apple.screensaver.didstart , com.apple.screensaver.didstop , com.apple.screenIsLocked , and com.apple.screenIsUnlocked events. // ScreenSaverMonitor.h #import <Foundation/NSObject.h> #import <Foundation/NSNotification.h> @interface

How to programmatically prevent linux computer from sleeping or turning on screensaver?

时光怂恿深爱的人放手 提交于 2020-07-17 09:37:48
问题 While developing a small cross-platform game on C++, I got stuck with following issue: when players are playing with a USB gamepad without touching a keyboard or mouse, the computer sleeps automatically while they're playing. In Windows, it can be done easily using SetThreadExecutionState function. In OS X, I think it can be done with UpdateSystemActivity but not tested yet. But the problem is, in Linux there's nothing like a common API between DE's. I've found that in Gnome you can stop the

How to properly codesign macOS Screensaver?

隐身守侯 提交于 2020-05-28 03:34:23
问题 I'm trying to codesign my macOS screensaver project to get rid of the "unidentified developer" warning message. Both Apple's documentation and this person on Apple's forums say that you should use the "Developer ID Application" signing certificate to do it. But that doesn't appear to work for me. When I follow Apple's instructions on how to test for proper signatures the response I get is as follows: Screensaver.saver: rejected (the code is valid but does not seem to be an app) My signing

How to properly codesign macOS Screensaver?

别说谁变了你拦得住时间么 提交于 2020-05-28 03:31:11
问题 I'm trying to codesign my macOS screensaver project to get rid of the "unidentified developer" warning message. Both Apple's documentation and this person on Apple's forums say that you should use the "Developer ID Application" signing certificate to do it. But that doesn't appear to work for me. When I follow Apple's instructions on how to test for proper signatures the response I get is as follows: Screensaver.saver: rejected (the code is valid but does not seem to be an app) My signing

How to properly codesign macOS Screensaver?

风格不统一 提交于 2020-05-28 03:30:59
问题 I'm trying to codesign my macOS screensaver project to get rid of the "unidentified developer" warning message. Both Apple's documentation and this person on Apple's forums say that you should use the "Developer ID Application" signing certificate to do it. But that doesn't appear to work for me. When I follow Apple's instructions on how to test for proper signatures the response I get is as follows: Screensaver.saver: rejected (the code is valid but does not seem to be an app) My signing

LaunchAgent - Is there something like RunAtScreenSaver?

家住魔仙堡 提交于 2020-01-15 09:32:06
问题 I am looking for a way to execute my app (it's a background task) at times, where the machine is "idle". A good incident would be when the screensaver launches. I already read the manual auf launchd and already use a LaunchAgent to lauch my app at certain intervals, but I found nothing that might help me launching my app when the screensaver is active. Is there any possibility to do that? Thanks in advance! Josh 回答1: Have another process that runs in the background and listens for distributed

How to keep moving PictureBox in boundaries C# Visual Studio 2010

允我心安 提交于 2020-01-06 14:33:31
问题 I am writing a bouncing logo screensaver in Visual Studio 2010 using C#. I have never written in C# before today so I am apologizing for any ignorance in advanced. I am importing an image to the form using PictureBox. Is there a way to find the boundaries of the PictureBox so I can compare it to the boundaries of the screen (using screen.Bounds for screen boundaries)? Like I said, I've never programmed in C# before so I am not sure what other details you will need, if any. Please let me know

How does YouTube prevent the screensaver from showing up during video playback? (Windows)

爷,独闯天下 提交于 2019-12-30 06:00:31
问题 I have noticed that mi screensaver doesn't start while I'm watching videos on YouTube. I'm using Windows 7. This is the test: Set Windows screensaver to 1 minute. Browse to YouTube and play a video longer than 1 minute; ideally much longer. Note that your screensaver doesn't come up after the specified time (1 minute). I've tested using Firefox, Chrome and IE8. My Flash Player version is 10.3. (Youtube is using flash to play the videos). The same happens whether I watch the video in full

Toggle SCROLL LOCK when screensaver activates

十年热恋 提交于 2019-12-25 06:08:08
问题 I wish to make an application that runs in the background at all times in windows that toggles scroll lock when my computer's screensaver enables, then toggle it back after it disables, if possible. The reason is that I have a keyboard that lights up depending on the state of the scroll lock light. It would be cool to have the keyboard turn off the lights automatically when im not using it. I know some code in VBscript, some in Python, and lots in VB. I have tried using a code snippet from