KXM 1 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!!! Share this post Link to post Share on other sites
CyberSlug 6 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! Share this post Link to post Share on other sites
KXM 1 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? Share this post Link to post Share on other sites
igmeou 0 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) Share this post Link to post Share on other sites
KXM 1 Posted April 26, 2005 That worked like a charm!!! THNX so much! Share this post Link to post Share on other sites