Jump to content
Sign in to follow this  
Kreatorul

Registry problem

Recommended Posts

Kreatorul

$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
SmOke_N

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

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.

Share this post


Link to post
Share on other sites
Kreatorul

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.