How to generate a unique machine ID Crossplatform
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
How to generate a unique machine ID Crossplatform
Hi,
I wonder if it is possible to generate a unique ID
per machine at runtime of a Runtime Revolution application.
I would like to generate a unique ID for Windows and Mac
machines with the same routines if possible.
Is this possible ?
How would you do that ?
Any help is welcomed.
I wonder if it is possible to generate a unique ID
per machine at runtime of a Runtime Revolution application.
I would like to generate a unique ID for Windows and Mac
machines with the same routines if possible.
Is this possible ?
How would you do that ?
Any help is welcomed.
Klaus wrote: I am sure there is a tittle VBScript that you can use, but I have no idea![]()

on Windows:
do the uVBScript of <theObject> as "vbscript"
put the result
where the uVBScript is:
Set TypeLib = CreateObject("Scriptlet.TypeLib")
result = TypeLib.Guid
---
That's assuming you want to generate a (new) UUID/GUID (in this case type 4) at any time. If you want to get a unique ID that ties in to the particular machine hardware that you're running the app on, then something like interrogating the disk volume id string in Windows WMI might be more like what you need - can we have some more information as to what you need to achieve?
I would like to get the same ID each time I run the app...
Sorry if my initial request was not clear.
I need to do that :
1. Run the software on Computer 1
2. Get a unique ID based on Computer 1 characteristics
(mac address / ram / os version or other parameter which
do not change a lot during the computer's life...)
3. Based on the ID + Final User infos I would issue a key / serial number / registration number
How would you do that ?
I plan to use Zygodact but I would like to add the Computer ID on top of Zygodact...
Hope I'm clear now.
Thanks anyway for the GUID tips on mac & PC
I need to do that :
1. Run the software on Computer 1
2. Get a unique ID based on Computer 1 characteristics
(mac address / ram / os version or other parameter which
do not change a lot during the computer's life...)
3. Based on the ID + Final User infos I would issue a key / serial number / registration number
How would you do that ?
I plan to use Zygodact but I would like to add the Computer ID on top of Zygodact...
Hope I'm clear now.
Thanks anyway for the GUID tips on mac & PC

-
- Posts: 179
- Joined: Sat Apr 08, 2006 11:08 pm
- Contact:
Ken Ray has a great cross-platform handler for getting the MAC address here:
http://www.sonsothunder.com/devres/revo ... env001.htm
For UUIDs, I'll plug my own pure revolution stack (that uses Ken Ray's handler) for generating type 1,3 and 4 UUIDs, here:
http://futsoft.futilism.com/revolutionstuff.html
Best,
Mark Smith
http://www.sonsothunder.com/devres/revo ... env001.htm
For UUIDs, I'll plug my own pure revolution stack (that uses Ken Ray's handler) for generating type 1,3 and 4 UUIDs, here:
http://futsoft.futilism.com/revolutionstuff.html
Best,
Mark Smith
titobal-
Follow up on Mark Smith's links there and I think you'll get what you want, but...
if I understand what you're doing then personally I wouldn't do that. You're tying your license to a particular set of hardware and software and creating support headaches for yourself in the process. What happens when the user upgrades some equipment? What if their computer dies and they have to replace it? You'll have to generate new license codes in that case.
Follow up on Mark Smith's links there and I think you'll get what you want, but...
if I understand what you're doing then personally I wouldn't do that. You're tying your license to a particular set of hardware and software and creating support headaches for yourself in the process. What happens when the user upgrades some equipment? What if their computer dies and they have to replace it? You'll have to generate new license codes in that case.