Jump to content
Sign in to follow this  
theguy0000

_GenerateGUID

Recommended Posts

theguy0000

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

Share this post


Link to post
Share on other sites
SmOke_N

meh.

ovw.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
theguy0000

ovw.

:P:D

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

Share this post


Link to post
Share on other sites
SmOke_N

:P:D

Yep

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
theguy0000

Yep

lol

"meh" is generally used to express indifference.


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

Share this post


Link to post
Share on other sites
erifash

...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

Share this post


Link to post
Share on other sites
theguy0000

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

Hmmm... Coincidence? :P

shhh. :D

lol

yeah i changed cause us scripting guys are cool. :)


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

Share this post


Link to post
Share on other sites
McGod

This generates a random id right?

Share this post


Link to post
Share on other sites
theguy0000

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

Share this post


Link to post
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
Sign in to follow this  

×