Custom key generator (script issues)

moisesbr

New member
Hi

I am not getting reply for my e-mail. Please reply here or e-mail me.

I would like to get sample script to control hardware-locked keys.

eg:

In the menu > Security > Advanced options > Use a costum script (advanced users only),

I would like to have a sample of script to get CPU and ID info so I can study and modify it to get a shorter registration key.

Also, as many users confuse l and 1, I need to have the software ignore this characters.

For these and other reasons, I really need a sample of the script.

Moises
 
Create a text file and insert HEScript code in it similar to this:
Code:
function GenerateUserCode(name, data1, data2, pubid, systid: String): String;
begin
 Result := "KEYHERE";
end;
Your ebook (and HTML Executable) will compile this code, and call the GenerateUserCode function. Feel free to modify it.
systid contains the system ID or blank (if hardware-keys are not enabled in the publication).
 
Try:
Code:
function GenerateUserCode(name, data1, data2, pubid, systid: String): String;
var
 S1: String;
begin
 SA := MD5OfAString(name + data1 + data2 + pubid + systid);
 Result := Copy(SA, 4, 4); // Replace 4 by the number of characters you want.
end;
 
gdgsupport said:
function GenerateUserCode(name, data1, data2, pubid, systid: String): String;
var
S1: String;
begin
SA := MD5OfAString(name + data1 + data2 + pubid + systid);
Result := Copy(SA, 4, 4); // Replace 4 by the number of characters you want.
end;
Ok. No error while saving the script, but while compiling the software I have the error message below.

Unknown method or routine. “costumeruniqueID”
Source position 355,33

Could you please test this code in your software ?

Also, it would be good if I could have the full sintaxe library of this language.
 
Last edited:
Please help.

I still waiting for this solution and a really need it.

d918c78699b89e44.jpg
 
Last edited:
Unfortunately, there was a confusion. The custom script is only for generating custom system IDs. In other words, there is no way to have a custom key generator in the current release.
We’ll add this feature to next release.
 
Back
Top