setRegistry | |||||||||||||
Type | function | ||||||||||||
Dictionary | LCS | ||||||||||||
Library | LiveCode Script | ||||||||||||
Syntax |
| ||||||||||||
Summary | Sets an entry in the Windows system registry. | ||||||||||||
Introduced | 1.0 | ||||||||||||
Changes | The type parameter was added in version 2.0. In previous versions, the type information could not be set. | ||||||||||||
OS | windows | ||||||||||||
Platforms | desktop, server | ||||||||||||
Parameters |
| ||||||||||||
Example |
| ||||||||||||
Values |
| ||||||||||||
Related | Keyword: default, string Function: binaryEncode, deleteRegistry, MCISendString Glossary: file, error message, return, Windows, binary file, registry, binary, command, behavior Control Structure: function | ||||||||||||
Description | Use the setRegistry function to change the behavior of Windows. The first part of the keyPath should be one of the predefined handle values. If the keyPath ends in "\", the new setting becomes the default value. For example, if you want files ending in ".rev" to automatically launch LiveCode, use the following command :
If the key doesn't exist, the setRegistry function creates it in the registry. To delete a subkey, set the subkey's value to empty. If the type is a binary type, make sure the value is binary. (You can encode a string as binary data using the binaryEncode function.) On Mac OS and Unix systems, the setRegistry function returns "not supported".
|