Sign in to follow this  
Followers 0
TSO

Help! Reading from registry?

3 posts in this topic

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



Sure.

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

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

MsgBox(0,"My Program",$msg)

Share this post


Link to post
Share on other sites

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  
Followers 0