Functions to read/write values from the Windows registry.
Properties
subKey |
For security, all variables are stored in a special DX Studio key, but you can specify any string as a sub key. To be absolutely sure that your application doesn't interfere with another, you can use your document's GUID as a subkey. |
Methods
readValue(name) |
Reads an entry from the registry called 'name'. The returned type will match that of the variable used to write the value. |
writeValue(name,value) |
Makes an entry in the registry called 'name' and sets it to 'value'. Values can be strings or numbers. |
Examples
function onInit()
{
system.registry.writeValue("testval",11.73);
var test=system.registry.readValue("testval");
print("Value read from registry: "+test);
}
Remarks
The full registry key to your document values is...
HKEY_LOCAL_MACHINE\SOFTWARE\Worldweaver\DX Studio\DocVars\[subKey]
See Also


