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.
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.
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):
procedure ReadRegistry;
var
S: String;
begin
S := ReadRegStr(HKEY_CURRENT_USER, "Software\My Key", "Identifier", "");
SetGlobalVar("mykey", S, False);
end;
This topic was automatically closed after 24 hours. New replies are no longer allowed.