screensaver

Interrupt an active screensaver programmatically?

谁都会走 提交于 2019-12-09 17:21:15
问题 REASON: I'm working on an emergency alert application that needs to display information on a desktop. When the client receives an alert, it pops up a window. If a screensaver is active or the monitor is in standby the alert will not be visible. I'm wondering if it's possible to wake the computer up via some sort of programatic mouse move or system call so that the alert would be visible. I think the reason a mouse move or keypress wakes it up is because of a hardware interrupt so it may not

How to check if Linux console screensaver has blanked screen

早过忘川 提交于 2019-12-09 16:19:56
问题 is there a way to check programmatically (via ioctl(), etc.) or by reading a file in /sys, /proc or /dev) whether the screen has been blanked by the Linux console screensaver? Thanks and best regards, Günter 回答1: You can parse the output of xset q with DISPLAY set, but it's not pretty. $ xset q Keyboard Control: auto repeat: on key click percent: 0 LED mask: 00000000 XKB indicators: 00: Caps Lock: off 01: Num Lock: off 02: Scroll Lock: off 03: Compose: off 04: Kana: off 05: Sleep: off 06:

How do you start the user's selected Daydream programmatically?

不问归期 提交于 2019-12-09 06:22:25
问题 On my Galaxy Nexus, I can tap this button in system preferences to start my currently selected daydream. Is there a way to reproduce this functionality in an app via Intent? I don't have a daydream service, but I would like to allow the user to start their preferred daydream. 回答1: Edit 9/22/2014: This does not work on some Samsung phones I figured out how to do this by digging through some Android source code. final Intent intent = new Intent(Intent.ACTION_MAIN); intent.setClassName("com

How can I detect if the screen is locked or screensaver is active from the Terminal in OS X 10.6?

两盒软妹~` 提交于 2019-12-08 03:18:49
问题 Due to the new limitations of Kerberos in OS X 10.6, I'm working on a script that offers similar functionality to what used to be available in 10.5. Essentially it parses the klist output to see if your ticket is expiring and displays how long until it expires. If we hit the 10 minute mark, it calls kinit to do a GUI password prompt to ask for your kerberos password. If the ticket is expired it does the same thing. The script makes sure that kinit is not running before calling it again so we

Block screensaver

戏子无情 提交于 2019-12-07 07:51:16
问题 Could you provide simple approach to block screensaver and prevent locking computer. I need this for running automation tests and I have no rights to change this on local machine due to global computer locking company policy. 回答1: here's mouseJiggler Mouse Jiggler is a very simple piece of software whose sole function is to "fake" mouse input to Windows, and jiggle the mouse pointer back and forth. Useful for avoiding screensavers or other things triggered by idle detection 回答2: a windows

Hints and tips for writing a screensaver using xscreensaver? [closed]

狂风中的少年 提交于 2019-12-07 03:14:33
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I have been doing some light OpenGL programming for a couple of months and now I want to write a screensaver using the xscreensaver library. I saw How to develop linux screen saver before asking this but I think

Stop Screensaver programmatically

不问归期 提交于 2019-12-06 05:57:26
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 off the windows screen saver if it is running using C#? and as mentioned in the thread, it doesn't seem

How to show a preview of screen saver inside WPF window

て烟熏妆下的殇ゞ 提交于 2019-12-06 05:01:25
I want to be able to show a preview of a screen saver inside WPF window. (using a container or control or ...) I know that Windows itself passes "/p" argument to the screen saver to get a preview. But how can I show that preview inside my WPF application? Should I get a handle of it and change its parent to my container o control? How? You need to use Windows.Forms interop, because screen savers expect windows handles (HWND) and in WPF, only top-level windows have them. MainWindow.xaml <Window x:Class="So18547663WpfScreenSaverPreview.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006

how to make a screen saver preview in Delphi?

会有一股神秘感。 提交于 2019-12-06 03:59:40
问题 I want my screensaver appears in the screensaver preview box? 回答1: When you make a screen saver you need to support a command line argument (/p [HWND]) that will tell you in which windows to show your screen saver. The command line will be pass to you thru the screen saver control panel. here is a link to the full spec. 回答2: You can start the screen saver, get it's window handle then change it's parent to your forms handle or panel's handle or wherever you want it. 来源: https://stackoverflow

Block screensaver

牧云@^-^@ 提交于 2019-12-05 17:17:49
Could you provide simple approach to block screensaver and prevent locking computer. I need this for running automation tests and I have no rights to change this on local machine due to global computer locking company policy. here's mouseJiggler Mouse Jiggler is a very simple piece of software whose sole function is to "fake" mouse input to Windows, and jiggle the mouse pointer back and forth. Useful for avoiding screensavers or other things triggered by idle detection a windows system? I did on Windows 2008 R2: use notepad.exe to create c:\temp\idle.vbs paste code Dim objResult Set objShell =