How to get CPU serial number using HISE?
-
You can fetch the MachineGuid that Windows creates on install using powershell. Here's how you do it in HISE:
const BackgroundTask = {}; BackgroundTask.getMachineGuid = Engine.createBackgroundTask("GetMachineGUID"); inline function getMachineGuid() { local command = "reg"; local args = [ "query", "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography", "/v", "MachineGuid" ]; local logFunction = function(thread, isFinished, data) { if (!isFinished) { var id = data.substring(data.indexOf("REG_SZ")+6, data.length).trim(); Console.print(id); } }; BackgroundTask.getMachineGuid.runProcess(command, args, logFunction); } getMachineGuid();
A bit silly function naming since it won't return anything, but you get the gist.
-
@aaronventure I've created an app that displays the system ID with the Engine.getSystemID() function. I was looking for something that displayed the items in the system that were used to create the numbers.
Ultimately, it looks like there's a fix available from JUCE. Looking forward to the update