bcording Posted May 23, 2005 Share Posted May 23, 2005 Anyone have an elegent solution to keep a computer from going into standby using autoit? Link to comment Share on other sites More sharing options...
MarkMarkMark Posted May 23, 2005 Share Posted May 23, 2005 (edited) 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 May 23, 2005 by MarkMarkMark Link to comment Share on other sites More sharing options...
Blue_Drache Posted May 23, 2005 Share Posted May 23, 2005 start > run > powercfg.cplI have the dutch version of windows... so there's a option:Systeem op stand-by: Nooiti 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\PowerCfgDefault layout has five, I believe.Create a sixth one and set HKCU\Control Panel\PowerCfg currentpowerpolicy = REG_SZ 6The real trick is that super long binary string:01000000000000000100000000000000020000000000000000000000000000002C0100003232030304000000040000000000000000000000000000002C01000000000000840300000001646464640000This 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 Link to comment Share on other sites More sharing options...
MarkMarkMark Posted May 23, 2005 Share Posted May 23, 2005 lol, your far more leet then me Link to comment Share on other sites More sharing options...
bcording Posted May 23, 2005 Author Share Posted May 23, 2005 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. Link to comment Share on other sites More sharing options...
quaizywabbit Posted May 23, 2005 Share Posted May 23, 2005 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 Link to comment Share on other sites More sharing options...
Ejoc Posted May 23, 2005 Share Posted May 23, 2005 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 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