yucatan Posted March 28, 2008 Posted March 28, 2008 RegWrite("HKEY_CURRENT_USER\Control Panel\PowerCfg\GlobalPowerPolicy", "Policies", "REG_BINARY", "01,00,00,00,00,00,00,00,03,00,00,00,10,00,00,00,00,00,00,00,03,\ 00,00,00,10,00,00,00,00,00,00,00,03,00,00,00,00,00,00,80,00,00,00,00,03,00,\ 00,00,00,00,00,80,00,00,00,00,01,00,00,00,00,00,00,80,00,00,00,00,01,00,00,\ 00,00,00,00,80,01,00,00,00,05,00,00,00,02,00,00,00,04,00,00,c0,01,00,00,00,\ 04,00,00,00,01,00,00,00,0a,00,00,00,00,00,00,00,03,00,00,00,01,00,01,00,01,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,00,\ 00,16,00,00,00")
PumpkinJuice Posted March 28, 2008 Posted March 28, 2008 Instead of \ try _ My name is Leilani Swaey! :)
Developers Jos Posted March 28, 2008 Developers Posted March 28, 2008 Is this coded on 1 line ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
yucatan Posted March 28, 2008 Author Posted March 28, 2008 (edited) i dont know the register export looks like this [HKEY_CURRENT_USER\Control Panel\PowerCfg\GlobalPowerPolicy] "Policies"=hex:01,00,00,00,00,00,00,00,03,00,00,00,10,00,00,00,00,00,00,00,03,\ 00,00,00,10,00,00,00,00,00,00,00,03,00,00,00,00,00,00,80,00,00,00,00,03,00,\ 00,00,00,00,00,80,00,00,00,00,01,00,00,00,00,00,00,80,00,00,00,00,01,00,00,\ 00,00,00,00,80,01,00,00,00,05,00,00,00,02,00,00,00,04,00,00,c0,01,00,00,00,\ 04,00,00,00,01,00,00,00,0a,00,00,00,00,00,00,00,03,00,00,00,01,00,01,00,01,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,00,\ 00,16,00,00,00 autoit needs to do this.. what did i wrong then in my code Edited March 28, 2008 by yucatan
Swift Posted March 28, 2008 Posted March 28, 2008 Take Leilani's suggestion...shes right...instead of \, you need to use a line feed...so use _
yucatan Posted March 28, 2008 Author Posted March 28, 2008 i did still same error RegWrite("HKEY_CURRENT_USER\Control Panel\PowerCfg\GlobalPowerPolicy", "Policies", "REG_BINARY", "01,00,00,00,00,00,00,00,03,00,00,00,10,00,00,00,00,00,00,00,03_ 00,00,00,10,00,00,00,00,00,00,00,03,00,00,00,00,00,00,80,00,00,00,00,03,00_ 00,00,00,00,00,80,00,00,00,00,01,00,00,00,00,00,00,80,00,00,00,00,01,00,00_ 00,00,00,00,80,01,00,00,00,05,00,00,00,02,00,00,00,04,00,00,c0,01,00,00,00_ 04,00,00,00,01,00,00,00,0a,00,00,00,00,00,00,00,03,00,00,00,01,00,01,00,01_ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00_ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,00_ 00,16,00,00,00")
weaponx Posted March 28, 2008 Posted March 28, 2008 (edited) RegWrite("HKEY_CURRENT_USER\Control Panel\PowerCfg\GlobalPowerPolicy", "Policies", "REG_BINARY", _ "01,00,00,00,00,00,00,00,03,00,00,00,10,00,00,00,00,00,00,00,03," & _ "00,00,00,10,00,00,00,00,00,00,00,03,00,00,00,00,00,00,80,00,00,00,00,03,00," & _ "00,00,00,00,00,80,00,00,00,00,01,00,00,00,00,00,00,80,00,00,00,00,01,00,00," & _ "00,00,00,00,80,01,00,00,00,05,00,00,00,02,00,00,00,04,00,00,c0,01,00,00,00," & _ "04,00,00,00,01,00,00,00,0a,00,00,00,00,00,00,00,03,00,00,00,01,00,01,00,01," & _ "00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00," & _ "00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,00," & _ "00,16,00,00,00") Edited March 28, 2008 by weaponx
yucatan Posted March 28, 2008 Author Posted March 28, 2008 i did same errors RegWrite("HKEY_CURRENT_USER\Control Panel\PowerCfg\GlobalPowerPolicy", "Policies", "REG_BINARY", "01,00,00,00,00,00,00,00,03,00,00,00,10,00,00,00,00,00,00,00,03 _ 00,00,00,10,00,00,00,00,00,00,00,03,00,00,00,00,00,00,80,00,00,00,00,03,00 _ 00,00,00,00,00,80,00,00,00,00,01,00,00,00,00,00,00,80,00,00,00,00,01,00,00 _ 00,00,00,00,80,01,00,00,00,05,00,00,00,02,00,00,00,04,00,00,c0,01,00,00,00 _ 04,00,00,00,01,00,00,00,0a,00,00,00,00,00,00,00,03,00,00,00,01,00,01,00,01 _ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00 _ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,00 _ 00,16,00,00,00")
yucatan Posted March 28, 2008 Author Posted March 28, 2008 (edited) thx it works now Edited March 28, 2008 by yucatan
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