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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

API to turn off screen saver?

Status
Not open for further replies.

jsteph

Technical User
Oct 24, 2002
2,562
US
Hello,
How do I turn off a screen saver or dpms monitor-shutoff via code? Is there an api to do this? Thanks,
--jsteph
 
Hmmm
Do you want to turn of the screen-saver permenently??
If so, try the registry
 
No, I need to turn it of and show the screen via a trigger in code. I have a barcode app which sits idle for many hours. When a user swipes his card, I want the screen to show. So in the OnComm event, I want to call some api to mimmick an mouse event or kb event. I'm wary of using SendKeys(), since the cursor could be over something that I don't want whatever key to be entered in. Thanks for any info...
--Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top