Jump to content
Sign in to follow this  
bcording

Keep computer from going into standby

Recommended Posts

start > run > powercfg.cpl

I have the dutch version of windows... so there's a option:

Systeem op stand-by: Nooit

i think its something like sytem on stand-by: Never (in english)

edit:

Run("control.exe powercfg.cpl")

then controlclick it or something...

Edited by MarkMarkMark

Share this post


Link to post
Share on other sites

start > run > powercfg.cpl

I have the dutch version of windows... so there's a option:

Systeem op stand-by: Nooit

i think its something like sytem on stand-by: Never (in english)

edit:

Run("control.exe powercfg.cpl")

then controlclick it or something...

<{POST_SNAPBACK}>

There has to be a registry setting for the power options somewhere. That would be much more elegant than running a program and kludging through it....

Ah, here it is. HKCU\Control Panel\PowerCfg

Default layout has five, I believe.

Create a sixth one and set HKCU\Control Panel\PowerCfg currentpowerpolicy = REG_SZ 6

The real trick is that super long binary string:

01000000000000000100000000000000020000000000000000000000000000002C0100003232030304000000040000000000

000000000000000000002C01000000000000840300000001646464640000

This binary string shuts off all power conservation options.

As usual, the devil is in the details. I leave the details to you.


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

You guys are missing the mark...or maybe I didn't explain fully explain what I wanted. I am looking for a way to ensure that when a rather lengthy script is run that the computer does not go into standby. I am not looking to edit the power profiles. Power profiles can easily be modified through the use of powercfg.exe. So something that would keep the screen saver from going active (not necessarily) and standby.

Share this post


Link to post
Share on other sites

put a timer on the mouse..say one minute after last mouse move it moves the mouse from its starting position out to a specified distance, then moves it back.....


[u]Do more with pre-existing apps![/u]ANYGUIv2.8

Share this post


Link to post
Share on other sites

put a timer on the mouse..say one minute after last mouse move it moves the mouse from its starting position out to a specified distance, then moves it back.....

<{POST_SNAPBACK}>

AdlibEnable("_NoSaver",60000)
Func _NoSaver()
    Local $loc = MouseGetPos()
    MouseMove($loc[0]+1,$loc[1]+1)
    MouseMove($loc[0],$loc[1])
EndFunc

Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...