Sign in to follow this  
Followers 0
Kreatorul

Registry problem

3 posts in this topic

$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 :P

Share this post


Link to post
Share on other sites



$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 :P

What exactly is your question? :nuke:

[center]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.[/center]

Share this post


Link to post
Share on other sites

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 :P Nevermind...i figured it out :nuke:

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