Jump to content

_GenerateGUID


theguy0000
 Share

Recommended Posts

just a little function i made from something i found online...It IS theoretically possible to get the same one twice, but it's also theoretically possible for an asteroid to fall from the sky destroying us all. I don't think anyone will lose any sleep over either.

Func _GenerateGUID ()
$oScriptlet = ObjCreate ("Scriptlet.TypeLib")
Return $oScriptlet.Guid
EndFunc

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

...It IS theoretically possible to get the same one twice, but it's also theoretically possible for an asteroid to fall from the sky destroying us all. I don't think anyone will lose any sleep over either.

That looks very similar to an msdn article I was reading:

Although its theoretically possible to generate a duplicate GUID, its also theoretically possible that Bill Gates will give all his money to the Scripting Guys. We arent going to lose any sleep over either possibility.

Hmmm... Coincidence? :P
Link to comment
Share on other sites

This generates a random id right?

Link to comment
Share on other sites

This generates a random id right?

I guess so, it uses some built-in Windows formula, so it's probably the best you can get with AutoIt.

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...