TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: domenicomaria on February 08, 2024, 01:30:39 PM

Title: REG_SZ
Post 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" ?
Title: Re: REG_SZ
Post by: PKENEWELL on February 08, 2024, 01:38:50 PM
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)
Title: Re: REG_SZ
Post by: domenicomaria on February 08, 2024, 01:46:34 PM
Have you tried the Visual LISP registry functions?
yes !
Title: Re: REG_SZ
Post by: PKENEWELL on February 08, 2024, 03:01:26 PM
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.
Code: [Select]
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"
Title: Re: REG_SZ
Post by: domenicomaria on February 08, 2024, 10:30:59 PM
(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")

Title: Re: REG_SZ
Post by: Lee Mac on February 09, 2024, 04:55:36 AM
Have you tried targeting the key itself?

Code - Auto/Visual Lisp: [Select]
  1. (vl-registry-read "HKEY_CURRENT_USER\\ODMIH" "a")
Title: Re: REG_SZ
Post by: domenicomaria on February 09, 2024, 06:02:43 AM
Have you tried targeting the key itself?

Code - Auto/Visual Lisp: [Select]
  1. (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")
Title: Re: REG_SZ
Post by: VovKa on February 09, 2024, 06:35:08 AM
(vl-registry-descendents "HKEY_CURRENT_USER\\ODMIH" t)
Title: Re: REG_SZ
Post by: domenicomaria on February 09, 2024, 09:33:56 AM
(vl-registry-descendents "HKEY_CURRENT_USER\\ODMIH" t)

thanks vovka ... you always know one more