Sign in to follow this  
Followers 0
yucatan

register

9 posts in this topic

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")

Share this post


Link to post
Share on other sites



Instead of \ try _


My name is Leilani Swaey! :)

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by yucatan

Share this post


Link to post
Share on other sites

Take Leilani's suggestion...shes right...instead of \, you need to use a line feed...so use

_

Share this post


Link to post
Share on other sites

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")

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by weaponx

Share this post


Link to post
Share on other sites

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")

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

thx it works now

Edited by yucatan

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  
Followers 0