JSThePatriot Posted May 19, 2005 Posted May 19, 2005 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.34I 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 EndFuncRegRead() 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 EndFuncPlease 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. :-PJS 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)
JSThePatriot Posted May 19, 2005 Author Posted May 19, 2005 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)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now