Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

how can you prevent the screensaver from starting using a service?

Posted on 2011-10-25
7
Medium Priority
?
273 Views
Last Modified: 2012-06-21
we have a security policy which forces computers to lock themselves if left unattended for five minutes.
Unfortunately, we also have some very long winded management types who can talk for more than five minutes on a Powerpoint slide; in Windows 7, Powerpoint stops the computer from locking, however in Windows XP, the computers still lock.

I'm writing a windows service in VB.Net 3.5  to sit in the background, so if powerpoint, or any other approved software, is left running as the focussed window the mouse will move 1 pixel every 2 minutes.
The service is running, and a custom audit entry is being added to the event log every tick, but nothing appears to be happening to the mouse - does anyone know why, or of another way to stop the computer from locking if certain applications are running?
0
Comment
Question by:mr_nadger
  • 4
  • 3
7 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 37023035
>but nothing appears to be happening to the mouse - does anyone know why

Its because the service is running in a different deskop not the current user desktop.

Try running it as a winforms app and see if it works.
0
 
LVL 7

Author Comment

by:mr_nadger
ID: 37023155
the code works in a win form app, but having another app that people need to have running whenever they start a presentation isn't going to be popular (I guarantee they'll forget to start it and blame the techies!)
Ideally, whatever's persuading Windows not to lock needs to be invisible.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37023184
What user are you running the service under? Is it running under the current user?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 7

Author Comment

by:mr_nadger
ID: 37023285
currently local system with the interact with desktop ticked
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37023327
Try running under current user.
0
 
LVL 7

Author Comment

by:mr_nadger
ID: 37023563
I set it to run under my login, but still no joy.

Due to time constraints, I'm doing it as a windows form app, minimised to the tray and hidden from the user so they don't turn it off by mistake.

thanks for the help!
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37023595
Glad to help :-)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month20 days, 21 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question