KXM Posted April 23, 2005 Share Posted April 23, 2005 Does any one know a quick way to call the Monitor turn-off feature of windows power saving? A DllCall or COM call will work. Hell, I'd settle for an .exe command line switch. TIA!!! Link to comment Share on other sites More sharing options...
CyberSlug Posted April 24, 2005 Share Posted April 24, 2005 I think I've seen a DllCall mentioned before on the forum, but I don't remember.You can use command line util wizmo monoff Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
KXM Posted April 24, 2005 Author Share Posted April 24, 2005 I think I've seen a DllCall mentioned before on the forum, but I don't remember.You can use command line util wizmo monoff<{POST_SNAPBACK}>THNX for that, but there is no command to turn the monitor back on. I tried searching to forum for an hour or so, and couldn't find any thing. Any key words you can offer? Link to comment Share on other sites More sharing options...
igmeou Posted April 24, 2005 Share Posted April 24, 2005 Ah long time never post. Is this what you need? $WM_SYSCOMMAND = 274 $SC_MONITORPOWER = 61808 Opt('WinTitleMatchMode', 4) $hwnd = WinGetHandle('classname=Progman') DllCall('user32.dll', 'int', 'SendMessage', 'hwnd', $hwnd, 'int', $WM_SYSCOMMAND, 'int', $SC_MONITORPOWER, 'int', 2) Do anything to your kb/mouse to turn on the monitor. [font="Arial"]Thanks[/font]If @error = me Then $sorry Else Do $clarifyMe Until $meClear EndIF MsgBox(0,"Special Message!","Special Thanks to " & $allHadReplied,$Forever) Link to comment Share on other sites More sharing options...
KXM Posted April 26, 2005 Author Share Posted April 26, 2005 That worked like a charm!!! THNX so much! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now