TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: domenicomaria on February 08, 2024, 01:30:39 PM
-
in the records section
"HKEY_CURRENT_USER"
I created a subsection named
"ODMIH"
and here are some elements of the type
REG_SZ
how can I find out
the names of the elements of the REG_SZ type
contained in "HKEY_CURRENT_USER\\ODMIH" ?
-
Have you tried the Visual LISP registry functions?
AutoCAD 2024 Help | Windows Registry and Property List File Functions Reference (AutoLISP) | Autodesk
https://help.autodesk.com/view/ACD/2024/ENU/index.html?guid=GUID-E3D3DA29-AF63-41D3-865C-39E50FF31596 (https://help.autodesk.com/view/ACD/2024/ENU/index.html?guid=GUID-E3D3DA29-AF63-41D3-865C-39E50FF31596)
-
Have you tried the Visual LISP registry functions?
yes !
-
Have you tried the Visual LISP registry functions?
yes !
The functions work for me correctly, so I cannot explain or help you without seeing your code. Check to make sure your key path and value (including uppercase and lower case characters) are correct.
The following I just pulled from my registry file at random to test it. It worked.
Command: (vl-registry-read "HKEY_CURRENT_USER\\Software\\7-Zip\\Compression\\" "Archiver")
"zip"
Command: (vl-registry-read "HKEY_CURRENT_USER\\Software\\7-Zip\\Compression\\Options\\zip" "Method")
"Deflate"
-
(vl-registry-read "HKEY_CURRENT_USER\\ODMIH") > nil
(vl-registry-read "HKEY_CURRENT_USER\\ODMIH\\") > nil
(vl-registry-descendents "HKEY_CURRENT_USER\\ODMIH") > nil
(vl-registry-descendents "HKEY_CURRENT_USER\\ODMIH\\") > nil
(vl-registry-read "HKEY_CURRENT_USER\\" "ODMIH") > nil
(vl-registry-read "HKEY_CURRENT_USER" "ODMIH") > nil
(vl-registry-descendents "HKEY_CURRENT_USER" "ODMIH") > nil
(vl-registry-descendents "HKEY_CURRENT_USER\\" "ODMIH") > nil
while i need : '("a" "aaa" "b" "EEE")
-
Have you tried targeting the key itself?
(vl
-registry
-read "HKEY_CURRENT_USER\\ODMIH" "a")
-
Have you tried targeting the key itself?
(vl
-registry
-read "HKEY_CURRENT_USER\\ODMIH" "a")
I don't need to read the REG_SZ "A"
I need to know the list of REG_SZ items
contained in this "path" :
HKEY_CURRENT_USER\\ODMIH
I need to get this one : ("a" "aaa" "b" "EEE")
-
(vl-registry-descendents "HKEY_CURRENT_USER\\ODMIH" t)
-
(vl-registry-descendents "HKEY_CURRENT_USER\\ODMIH" t)
thanks vovka ... you always know one more