Post Reply

Forums -> UltraMon™ -> Feature/Addon Request: Deny screen saver if App is running
David   2012-05-18 04:36
Windows Media Player has an option,

Allow Screen Saver during playback

I would like to do something similar but
a little more generic.

I'd like to deny the screen saver if one
or more of certain specified .exe files
are currently running.

For example, in the morning, while I am
stock trading, I don't want the screen
saver to activate at all -- my idea is if
a certain program is running (such as my
charting software program winros.exe) then
the screen saver sees that and quietly does
nothing. I'd like to specify multple .exe
files that can override the screen saver
activation if the .exe is running.

Later during the day and at night, my PC
is more general purpose (and winros.exe is
not running) so I'd like the 15 min timer
for the screen saver to be used, per normal.

Does this feature request make sense?
Is this more of an add-on?

I'm not sure where to begin or even how to
achieve this idea.

Thanks for any help you may provide.
Christian Studer   2012-05-18 07:46
It's not something I would want to add in UltraMon, but if it can be done easily it would be a good add-on, I'll look into it.

Christian Studer - www.realtimesoft.com
David   2012-05-22 11:11
Great! I keep a lookout for any follow-up.
Christian Studer   2012-05-23 04:08
I have uploaded an add-on which does this, DisableScreensaverPerApp.

Christian Studer - www.realtimesoft.com
Zom   2012-05-24 02:51
Not possible for XP or Vista?
David   2012-05-24 04:00
Thanks!

I will download and report back in the next few days.
Christian Studer   2012-05-24 08:42
Zom, I looked into this, but found no way to disable both the screen saver and powersaving (monitor standby) for Vista and earlier. On Windows 7 both can be disabled easily.

Christian Studer - www.realtimesoft.com
Christian Studer   2012-05-24 08:57
Just thought of something else I could try, will let you know if it works out.

Christian Studer - www.realtimesoft.com
David   2012-05-25 13:39
After some simple testing using calc.exe
and a 1 minute timeout for the screen
saver, it seems to work quite well.

Thanks!

I've added 4 programs to the .ini file and
put a shortcut to the .exe in my Startup
folder, per your suggestion on the Apps
page. If I find any issues, I will let
you know.

Btw, I'm using Windows 7 Ultimate and
Ultramon 3.1.0, both 64-bit.

Again, thank you for putting together
this special purpose app. It was most
unexpected but very refreshing to have
such a quick response!

Have a beer on me! If you're ever near
San Jose, California, I'll buy you one
(or many) myself!
Christian Studer   2012-05-25 22:22
You're welcome, glad to hear it's working fine.

Christian Studer - www.realtimesoft.com
Zom   2012-05-26 10:17
Thanks Christian. It must be possible. Other apps have options to prevent screenaver when running, so there must be a call somewhere, or otherwise they are faking use activity somehow.
Christian Studer   2012-06-10 08:10
I have uploaded version 1.1.0 of DisableScreensaverPerApp, this has support for Windows XP and Vista.

Christian Studer - www.realtimesoft.com
Zom   2012-06-10 12:11
Nice work Christian. I will give it a try.
Zom   2012-06-13 19:59
Christian,
Ran for a few days and then crashed.

<?xml version="1.0" encoding="UTF-16"?> <DATABASE> <EXE NAME="DisableScreensaverPerApp.exe" FILTER="GRABMI_FILTER_PRIVACY"> <MATCHING_FILE NAME="DisableScreensaverPerApp.exe" SIZE="74632" CHECKSUM="0x9D76006F" BIN_FILE_VERSION="1.1.0.0" BIN_PRODUCT_VERSION="1.1.0.0" PRODUCT_VERSION="1.1.0" FILE_DESCRIPTION="Disables the screen saver if specific applications are running" COMPANY_NAME="Realtime Soft Ltd" PRODUCT_NAME="DisableScreensaverPerApp" FILE_VERSION="1.1.0.0" ORIGINAL_FILENAME="DisableScreensaverPerApp.exe" INTERNAL_NAME="DisableScreensaverPerApp" LEGAL_COPYRIGHT="Copyright (C) 2012 by Realtime Soft Ltd" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x12587" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.1.0.0" UPTO_BIN_PRODUCT_VERSION="1.1.0.0" LINK_DATE="06/10/2012 20:04:51" UPTO_LINK_DATE="06/10/2012 20:04:51" VER_LANGUAGE="English (United States) [0x409]" /> </EXE> <EXE NAME="kernel32.dll" FILTER="GRABMI_FILTER_THISFILEONLY"> <MATCHING_FILE NAME="kernel32.dll" SIZE="989696" CHECKSUM="0x2D998938" BIN_FILE_VERSION="5.1.2600.5781" BIN_PRODUCT_VERSION="5.1.2600.5781" PRODUCT_VERSION="5.1.2600.5781" FILE_DESCRIPTION="Windows NT BASE API Client DLL" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Windows® Operating System" FILE_VERSION="5.1.2600.5781 (xpsp_sp3_gdr.090321-1317)" ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xFE572" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.2600.5781" UPTO_BIN_PRODUCT_VERSION="5.1.2600.5781" LINK_DATE="03/21/2009 14:06:58" UPTO_LINK_DATE="03/21/2009 14:06:58" VER_LANGUAGE="English (United States) [0x409]" /> </EXE> </DATABASE>

See also:
image 1
image 2
David   2012-06-14 07:25
Yeah, I noticed yesterday my screen saver
activated when it shouldn't have.

I, too, have found crashes in my event log.

Here is the event log General tab:

--begin--
Faulting application name: DisableScreensaverPerApp.exe, version: 1.0.0.0, time stamp: 0x4fbd1393
Faulting module name: DisableScreensaverPerApp.exe, version: 1.0.0.0, time stamp: 0x4fbd1393
Exception code: 0xc0000005
Fault offset: 0x0000225e
Faulting process id: 0xc94
Faulting application start time: 0x01cd4a30043dba71
Faulting application path: C:\Utilities\Ultramon\Apps\DisableScreensaverPerApp.exe
Faulting module path: C:\Utilities\Ultramon\Apps\DisableScreensaverPerApp.exe
Report Id: 1ac29799-b624-11e1-942b-f46d04e3a07f
--end--

Here is the event log Details tab XML:

--begin--
Log Name: Application Source: Application Error Date: 6/14/2012 6:23:19 AM Event ID: 1000 Task Category: (100) Level: Error Keywords: Classic User: N/A Computer: Tradezilla Description: Faulting application name: DisableScreensaverPerApp.exe, version: 1.0.0.0, time stamp: 0x4fbd1393 Faulting module name: DisableScreensaverPerApp.exe, version: 1.0.0.0, time stamp: 0x4fbd1393 Exception code: 0xc0000005 Fault offset: 0x0000225e Faulting process id: 0xc94 Faulting application start time: 0x01cd4a30043dba71 Faulting application path: C:\Utilities\Ultramon\Apps\DisableScreensaverPerApp.exe Faulting module path: C:\Utilities\Ultramon\Apps\DisableScreensaverPerApp.exe Report Id: 1ac29799-b624-11e1-942b-f46d04e3a07f Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="Application Error" /> <EventID Qualifiers="0">1000</EventID> <Level>2</Level> <Task>100</Task> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2012-06-14T13:23:19.000000000Z" /> <EventRecordID>7095</EventRecordID> <Channel>Application</Channel> <Computer>Tradezilla</Computer> <Security /> </System> <EventData> <Data>DisableScreensaverPerApp.exe</Data> <Data>1.0.0.0</Data> <Data>4fbd1393</Data> <Data>DisableScreensaverPerApp.exe</Data> <Data>1.0.0.0</Data> <Data>4fbd1393</Data> <Data>c0000005</Data> <Data>0000225e</Data> <Data>c94</Data> <Data>01cd4a30043dba71</Data> <Data>C:\Utilities\Ultramon\Apps\DisableScreensaverPerApp.exe</Data> <Data>C:\Utilities\Ultramon\Apps\DisableScreensaverPerApp.exe</Data> <Data>1ac29799-b624-11e1-942b-f46d04e3a07f</Data> </EventData> </Event>
--end--
Christian Studer   2012-06-14 10:15
Zom, please check if you have a file user.dmp in folder C:\Documents and Settings\All Users\Application Data\Microsoft\Dr Watson, this would be the crash dump file for the most recent application crash.

If you have the file, contact me by e-mail at support@realtimesoft.com and I'll send you a link to upload it to our server.

I don't think Windows 7 saves a crash dump automatically.

Christian Studer - www.realtimesoft.com
Christian Studer   2012-06-15 09:46
Thanks for the crash dump, happened if DisableScreensaverPerApp couldn't get the name of one of the running processes. I have uploaded version 1.1.1 of the application which fixes this issue.

Christian Studer - www.realtimesoft.com
Zom   2012-06-15 16:12
Thanks Cristian. Now running 1.1.1. Will let you know if I get any more unexpecteds.
Forums -> UltraMon™ -> Feature/Addon Request: Deny screen saver if App is running

Post Reply