Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent Screen saver from running

Status
Not open for further replies.

tedi1

Technical User
Aug 25, 2002
87
0
0
IL
Hi,
I need to create a program that all it does is to prevent the screen saver from getting started. The problem is that the user computer this software is designed for has no Permissions to enable or disable the screen saver.
I have tried to create a program that will move the mouse pointer but no luck there either (the pointer moves but doesn't prevent the screen saver from running.
Are there any other suggestions?
The program will run on XP.
Thax in advance
 
You could try opening Notepad in the background and sending keys to it on a timer.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
TomThumbKP thank you for the quick response,

I need to have minimum disturbance to the running program. There for playing with the mouse pointer was a good idea. I thing opening a Notepad will be too much
 
just send keys to your program...

such as left, right...

you already have the handle to it... Me.Hwnd

Have Fun, Be Young... Code BASIC
-Josh

cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top