Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Mentor
The_Caddie
Posts: 208
Registered: ‎06-08-2010
Message 1 of 2 (137 Views)
Accepted Solution

Adding a regestry key with lisp

137 Views, 1 Replies
02-27-2012 05:16 AM

Some time ago I was able to add modyfy and remove regestry keys ussing AutoLISP Unfortunatly I have lost the information on how to do this.

 

Could someone point me in the right direction?

AutoCAD Help: Developer documentation

 

vl-registry-read

vl-registry-write

vl-registry delete

etc.

 

vl-registry-write

Creates a key in the Windows registry

(vl-registry-write reg-key [val-name val-data])
Arguments

reg-key
A string specifying a Windows registry key.

NoteYou cannot use vl-registry-write for HKEY_USERS or KEY_LOCAL_MACHINE.
val-name
A string containing the value of a registry entry.

val-data
A string containing registry data.

If val-name is not supplied or is nil,a default value for the key is written. If val-name is supplied and val-data is not specified, an empty string is stored.

Return Values

vl-registry-write returns val-data, if successful; otherwise nil.

Examples

_$ (vl-registry-write "HKEY_CURRENT_USER\\Test"
"" "test data")
"test data"
_$  (vl-registry-read
"HKEY_CURRENT_USER\\Test")
"test data"

 

http://docs.autodesk.com/ACD/2011/ENU/filesALR/WS1a9193826455f5ff1a32d8d10ebc6b7ccc-68f9.htm

Valued Mentor
Shneuph
Posts: 356
Registered: ‎11-26-2007
Message 2 of 2 (127 Views)

Re: Adding a regestry key with lisp

02-27-2012 08:19 AM in reply to: The_Caddie

AutoCAD Help: Developer documentation

 

vl-registry-read

vl-registry-write

vl-registry delete

etc.

 

vl-registry-write

Creates a key in the Windows registry

(vl-registry-write reg-key [val-name val-data])
Arguments

reg-key
A string specifying a Windows registry key.

NoteYou cannot use vl-registry-write for HKEY_USERS or KEY_LOCAL_MACHINE.
val-name
A string containing the value of a registry entry.

val-data
A string containing registry data.

If val-name is not supplied or is nil,a default value for the key is written. If val-name is supplied and val-data is not specified, an empty string is stored.

Return Values

vl-registry-write returns val-data, if successful; otherwise nil.

Examples

_$ (vl-registry-write "HKEY_CURRENT_USER\\Test"
"" "test data")
"test data"
_$  (vl-registry-read
"HKEY_CURRENT_USER\\Test")
"test data"

 

http://docs.autodesk.com/ACD/2011/ENU/filesALR/WS1a9193826455f5ff1a32d8d10ebc6b7ccc-68f9.htm

---sig---------------------------------------
'(83 104 110 101 117 112 104 64 71 109 97 105 108 46 99 111 109)
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.