Chimaera Posted May 15, 2015 Share Posted May 15, 2015 (edited) I have a script that makes a few setting changes but the one i cant seem to sort is dim displayI set the ones so far like thisShellExecute("powercfg.exe", '-change -monitor-timeout-ac 0') ShellExecute("powercfg.exe", '-change -standby-timeout-ac 0')Does anyone know a way to set the ac dim display to 0 ?Ive as yet not been able to find a way to do this Edited May 15, 2015 by Chimaera If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
jguinch Posted May 15, 2015 Share Posted May 15, 2015 (edited) Try with -SETDCVALUEINDEX and 17aaa29b-8b43-4b94-aafe-35f64daaf1ee inLook at the #2 answer in this topic : http://stackoverflow.com/questions/10723339/changing-power-scheme-settings-through-registry-instead-of-control-panel-in-windThese links should help you :http://stackoverflow.com/questions/10723339/changing-power-scheme-settings-through-registry-instead-of-control-panel-in-windhttps://msdn.microsoft.com/en-us/library/windows/hardware/dn613880(v=vs.85).aspxhttp://www.symantec.com/connect/articles/tweaking-windows-7-power-plans-using-powercfg-command-line-options Edited May 15, 2015 by jguinch Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
Chimaera Posted May 15, 2015 Author Share Posted May 15, 2015 (edited) With the first one i had tried ShellExecute("powercfg.exe", '-SETACVALUEINDEX 381b4222-f694-41f0-9685-ff5bb260df2e 7516b95f-f776-4464-8c53-06167f40cc99 17aaa29b-8b43-4b94-aafe-35f64daaf1ee 0')But i seem to remember it crashed the script or machine so i didnt use it againJust wondering now if i tried it on a Vista Machine maybe? ill have torun some tests and seeIll have a read thanks Edited May 15, 2015 by Chimaera If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
bernd670 Posted May 15, 2015 Share Posted May 15, 2015 (edited) Hey, try it once like that.This script first reads the active scheme, and then sets the index value.#include <constants.au3> ; powercfg -getactivescheme $PID = Run("powercfg -getactivescheme", "", @SW_HIDE, $STDOUT_CHILD) $szLines = "" While 1 $szLines &= StdoutRead($PID) If @error Then ExitLoop WEnd ; read GUID from active scheme $szGUID = StringRegExp($szLines, "(?m):\s+([[:xdigit:]\-]+)\s+", 3)[0] ConsoleWrite($szGUID & @CRLF) ;powercfg -setacvalueindex <SCHEME_GUID> <SUB_GUID> <SETTING_GUID> <SettingIndex> ShellExecute("powercfg", "-setacvalueindex " & $szGUID & " 7516b95f-f776-4464-8c53-06167f40cc99 17aaa29b-8b43-4b94-aafe-35f64daaf1ee 0", "", Default, @SW_HIDE) ShellExecute("powercfg", "-setdcvalueindex " & $szGUID & " 7516b95f-f776-4464-8c53-06167f40cc99 17aaa29b-8b43-4b94-aafe-35f64daaf1ee 0", "", Default, @SW_HIDE) Edited May 17, 2015 by bernd670 greetingsbernd I hacked 127.0.0.1 -> 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