wmmiller Posted January 20, 2014 Posted January 20, 2014 (edited) Hello,I’m very new to Autoit and I’ve been trying to figure out how to change a registry key. Everything I find about it seems to be an old post/information and what I have found doesn’t seem to get me to a working script that actually changes the value. I’ve been trying off and on for days now and this morning I actually got it to the point where I’m not getting an error, but it doesn’t work. Below is the registry key /value I’m trying to change and the attachment is my script. It’s not that I really need to change this key as I already know how to do it with a reg file, but I’m really trying to learn from it more than anything. I am working on a Windows 8.1 Professional x64 computer. If someone might be so kind as to help me out or point to some currant information I would be most thankful.Bill To enable Windows 8/8.1 lockScreen: [HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsPersonalization]"NoLockScreen"=dword:00000000I tried to post my code per this '?do=embed' frameborder='0' data-embedContent>>, but the buttons are not clickable. I told you I was new. Lock enable.au3 Edited January 20, 2014 by wmmiller “Resist We Much”
Sori Posted January 20, 2014 Posted January 20, 2014 RegWrite("HKLM64SOFTWAREPoliciesMicrosoftWindowsPersonalization”,” NoLockScreen” ,REG_DWORD", "0x000000") You had a ) in the middle of your command that wasn't supposed to be there. If that doesn't work, try spelling out the HKEY_LOCAL_MACHINE.... If you need help with your stuff, feel free to get me on my Skype. I often get bored and enjoy helping with projects.
wmmiller Posted January 20, 2014 Author Posted January 20, 2014 Sori, Thank you so much for your reply. I tried what you said and it doesn’t work. Here’s is what I did. I think it’s what you said to try. My apologies if I’m just being stupid Bill RegWrite("HKLM64\SOFTWARE\Policies\Microsoft\Windows\Personalization”,” NoLockScreen” ,REG_DWORD", "0x000000") RegWrite("HKEY_LOCAL_MACHINE64\SOFTWARE\Policies\Microsoft\Windows\Personalization”,” NoLockScreen” ,REG_DWORD", "0x000000") “Resist We Much”
mdwerne Posted January 20, 2014 Posted January 20, 2014 (edited) @wmmiller From AutoIt Help: RegWrite ( "keyname" [, "valuename", "type", value] ) ; Write a single REG_SZ value RegWrite("HKEY_CURRENT_USER\Software\Test", "TestKey", "REG_SZ", "Hello this is a test") ; Your code would then be: RegWrite("HKLM\SOFTWARE\Policies\Microsoft\Windows\Personalization", "NoLockScreen", "REG_DWORD","0x000000") Hope this helps. P.S. Something was weird with your quotes, retyping them fixed the weirdness. P.P.S. This worked perfectly when run as an admin on my Win 8.1, 64bit, machine. Edited January 20, 2014 by mdwerne
wmmiller Posted January 20, 2014 Author Posted January 20, 2014 @ mdwerne, Thank you for your reply. Is this not exactly what you posted? I just doesn't work. I don't know why it may be, but maybe I should try it on another machine to see if it not working is related to this computer. I don't have another Windows 8 computer so I'm going to have to find some sucker (I mean person) to let me try it on their computer. RegWrite("HKLM\SOFTWARE\Policies\Microsoft\Windows\Personalization", "NoLockScreen", "REG_DWORD","0x000000") “Resist We Much”
Solution wmmiller Posted January 20, 2014 Author Solution Posted January 20, 2014 Thank you both for your help. This is solved now. I was trying to test this with the go button after saving it and have just discovered/realized that if I compile it and then run it, it works as it should. I have learned from this. Again thank you so much! Bill “Resist We Much”
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