Ok, I wrote that function and I want to share it.
Paste that code in Behavior & Scripts -> User Scripts -> Macros
or make a new script.
function GetID0: String;
begin
Result := GetManualHardwareID(0);
end;
When you compile your project, you can get GetManualHardwareID value with this javascript:
window.external.GetHEScriptCom('Macros.GetID0', '');
Enjoy