Kreatorul Posted September 7, 2006 Posted September 7, 2006 $r=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Y!M", "Y!M") If $r=1 Then MsgBox(0,"reg",$r) Else $i=InputBox("reg","write") EndIF RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Y!M", "Y!M", "REG_SZ", $i) Never worked with the registry before...i'm a noob I want to read the registry and if a value exists then continue the program else write the value and continue
Moderators SmOke_N Posted September 7, 2006 Moderators Posted September 7, 2006 $r=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Y!M", "Y!M") If $r=1 Then MsgBox(0,"reg",$r) Else $i=InputBox("reg","write") EndIF RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Y!M", "Y!M", "REG_SZ", $i) Never worked with the registry before...i'm a noob I want to read the registry and if a value exists then continue the program else write the value and continue What exactly is your question? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Kreatorul Posted September 7, 2006 Author Posted September 7, 2006 I have a program and I want so write a value to the registry if that value doesen't exist, else if that value exists continue the program Nevermind...i figured it out
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