×
Menu
Index

WINSETVALUE Subroutine (Windows Version Only)

 
Usage:
r = WINSETVALUE(keynum, "subkeyname", "valuename", "valuetype", "value")
 
Description:
Adds or changes a registry value. The value types allowed are SZ, EXPANDSZ, HEX, DWORD, MULTISZ, QWORD and NONE.  HEX is equivalent to the binary type.  The return value is 1 or 0 to indicate success or failure respectively.
 
Example:
sub main()
   ext("open winkey ^"^" hkcu")
   winsetvalue(0, "", "testvalue", "dword", 0x1234)
   ext("close winkey 0")
end sub