Jump to content
Sign in to follow this  
TSO

Help! Reading from registry?

Recommended Posts

TSO

I'm a nooblet and have no idea how to do this, hoping someone can help.

I'm basically trying to read a registry key, and have a text output based on the result.

For example, if the regkey data value shows 'Supported', I want to have a msgbox pop up that says "Supported".. and if the key returns any other value, I'd like the msgbox to pop up saying "Undefined". Any coding help at all, even just to get me started, would be a huge help.

Share this post


Link to post
Share on other sites
TSO

Sure.

$msg = RegRead("MyKey","MyValue")

If $msg <> "Supported" Then
    $msg = "Undefined"
EndIf

MsgBox(0,"My Program",$msg)
You kick ass Mr. 0. Thanks for the assist 8-)

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.