Writing and reading to/from Windows Registry in an ebook

Status
Not open for further replies.

delhipro

New member
I need examples of HEscript for writing to registry and reading from registry, please provide some examples.

I also need to pass key and value to the registry which will be through a variable.

please provide some examples.
 
Last edited:
from http://www.htmlexe.com/help/scriptreference.htm, use these two HEScript macros:
function ReadRegStr(Root: Integer; Key,Ident,Default: String): String;
procedure WriteRegStr(Root: Integer; Key,Ident,Value: String);

For instance, to read a value and store it in a global variable (whose name is mykey):
Code:
procedure ReadRegistry;
var
 S: String;
begin
 S := ReadRegStr(HKEY_CURRENT_USER, "Software\My Key", "Identifier", "");
 SetGlobalVar("mykey", S, False);
end;
 
Last edited:
Status
Not open for further replies.
Back
Top