Sign in to follow this  
Followers 0
JSThePatriot

Registry/AutoIt Trouble.

2 posts in this topic

I have tried to read registry values to no avail. They have only been returning empty strings. I dont know what is going on here. This used to work.

I am using AutoIt v3.1.1.34

I have tried my own code then out of curiosity I have tried the code from the helpfile. Here is the code from the helpfile.

RegEnumVal()

$var = RegEnumVal("HKEY_LOCAL_MACHINE\SOFTWARE\HiddenSoft\AutoIt3", 1)
MsgBox(4096, "First Value Name under in AutoIt3 key", $var)
$var = RegEnumVal("HKEY_LOCAL_MACHINE\SOFTWARE\HiddenSoft\AutoIt3", 2)
MsgBox(4096, "Second Value Name under in AutoIt3 key: ", $var)

This is what I have tried with the RegEnumVal()

MsgBox(0, "Test VNC Password", _GetVNCPass())
Func _GetVNCPass()
    Local $s_Encrypted, $s_Decrypted
    $s_Encrypted = RegEnumVal("HKLM\Software\ORL\WinVNC\Default", 16)
    Return $s_Encrypted
EndFunc

RegRead() from the helpfile works, but when I try the following code it doesnt.

MsgBox(0, "Test VNC Password", _GetVNCPass())
Func _GetVNCPass()
    Local $s_Encrypted, $s_Decrypted
    $s_Encrypted = RegRead("HKLM\Software\ORL\WinVNC\Default", "Password")
    Return $s_Encrypted
EndFunc

Please show me my error as I would bet it is between me and the keyboard.

I really hope this isnt an id10t error on my part. :-P

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites



Okay figured it out. I was missing a 3...

RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default", "Password")

Thanks,

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

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