Function Reference

RegEnumVal

Reads the name of a value according to it's instance.

RegEnumVal ( "keyname", instance )

 

Parameters

keyname The registry key to read.
instance The 1-based value instance to retrieve

 

Return Value

Success: Returns the requested value name..
Failure: Returns "" and sets the @error flag:
1 if unable to open requested key
-1 if unable to retrieve requested value name (value instance out of range)

 

Remarks

A registry key must start with "HKEY_LOCAL_MACHINE" ("HKLM") or "HKEY_USERS" ("HKU") or "HKEY_CURRENT_USER" ("HKCU") or "HKEY_CLASSES_ROOT" ("HKCR") or "HKEY_CURRENT_CONFIG" ("HKCC").

 

Related

RegEnumKey, RegDelete, RegWrite, StringSplit

 

Example


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