Author Topic: REG_SZ  (Read 613 times)

0 Members and 1 Guest are viewing this topic.

domenicomaria

  • Swamp Rat
  • Posts: 725
REG_SZ
« 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" ?

PKENEWELL

  • Bull Frog
  • Posts: 319
Re: REG_SZ
« Reply #1 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
"When you are asked if you can do a job, tell 'em, 'Certainly I can!' Then get busy and find out how to do it." - Theodore Roosevelt

domenicomaria

  • Swamp Rat
  • Posts: 725
Re: REG_SZ
« Reply #2 on: February 08, 2024, 01:46:34 PM »
Have you tried the Visual LISP registry functions?
yes !

PKENEWELL

  • Bull Frog
  • Posts: 319
Re: REG_SZ
« Reply #3 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"
« Last Edit: February 08, 2024, 03:18:39 PM by PKENEWELL »
"When you are asked if you can do a job, tell 'em, 'Certainly I can!' Then get busy and find out how to do it." - Theodore Roosevelt

domenicomaria

  • Swamp Rat
  • Posts: 725
Re: REG_SZ
« Reply #4 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")

« Last Edit: February 08, 2024, 10:47:33 PM by domenicomaria »

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: REG_SZ
« Reply #5 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")

domenicomaria

  • Swamp Rat
  • Posts: 725
Re: REG_SZ
« Reply #6 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")
« Last Edit: February 09, 2024, 06:22:30 AM by domenicomaria »

VovKa

  • Water Moccasin
  • Posts: 1631
  • Ukraine
Re: REG_SZ
« Reply #7 on: February 09, 2024, 06:35:08 AM »
(vl-registry-descendents "HKEY_CURRENT_USER\\ODMIH" t)

domenicomaria

  • Swamp Rat
  • Posts: 725
Re: REG_SZ
« Reply #8 on: February 09, 2024, 09:33:56 AM »
(vl-registry-descendents "HKEY_CURRENT_USER\\ODMIH" t)

thanks vovka ... you always know one more