Reads the name of a value according to its instance.
RegEnumVal ( "keyname", instance )
| keyname | The registry key to read. |
| instance | The 1-based value instance to retrieve |
| Success: | Returns the requested registry value. @EXTENDED is set to the type of the value. |
| Failure: | Returns an empty string and sets @error to: |
| 1 if unable to open requested key | |
| 2 if unable to open requested main key | |
| 3 if unable to remote connect to the registry | |
| -1 if unable to retrieve requested value name (value instance out of range) |
For $i = 1 To 100
Local $var = RegEnumVal("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", $i)
If @error <> 0 Then ExitLoop
MsgBox(4096, "Value Name #" & $i & " under in AutoIt3 key", $var)
Next