Jump to content

Access Windows Power Saving


KXM
 Share

Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...