Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3670
Number of posts: 9122

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Temporarily disabling screen dimming Posted by user-hostile on 29 Aug 2009 at 6:16 PM
Hello. I'm trying to create a Windows service (I guess that's the best solution) to allow the user to temporarily disable any screen power management dimming. You know, Windows Media Player (and probably most other standalone video playing software) is able to keep the screen active while a video plays, even if you have power management (and/or a screen saver) set to dim the screen after a few minutes.

Can anyone point me in the right direction? I remember my old Macs had a simple system-wide setting called "Never-sleep corner", where if you moved your mouse pointer to a pre-selected corner of the screen, the screen would not dim or turn off. Anyone have any ideas on how to do something like that in Windows? BTW, I write in VB (but can follow C# OK), .NET 2.0. Thanks in advance.

u-h
Report
Re: Temporarily disabling screen dimming Posted by carly on 7 Sept 2009 at 11:26 PM
Use power apis (see on http://tinyurl.com/cmhb5g, C code)
Report
Re: Temporarily disabling screen dimming Posted by user-hostile on 8 Sept 2009 at 6:43 PM
Thanks, but that link just went to a Win32 usenet group. I've already searched those. If there's a particular API function(s), please give me more info.


u-h
Report
Re: Temporarily disabling screen dimming Posted by carly on 12 Sept 2009 at 6:53 AM
You can re-repost the question on Win32 group.
(it had been answered in 90's, probably not archived...)



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.