stoyan Posted October 31, 2011 Share Posted October 31, 2011 Version 4 UUID generator not using COM Object calls: ;Version 4 UUID generator ;credits goes to mimec (http://php.net/uniqid#69164) Func uuid() Return StringFormat('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', _ Random(0, 0xffff), Random(0, 0xffff), _ Random(0, 0xffff), _ BitOR(Random(0, 0x0fff), 0x4000), _ BitOR(Random(0, 0x3fff), 0x8000), _ Random(0, 0xffff), Random(0, 0xffff), Random(0, 0xffff) _ ) EndFunc ; Opt('MustDeclareVars', 1) Link to comment Share on other sites More sharing options...
WhiteStar Posted February 27, 2012 Share Posted February 27, 2012 (edited) This is Great ! Just what I was looking for, as I wanted a V4-uuid .Also came across a couple of other UUID things.One Here: And another way as shown by PTrex in another thread on a different topic.MsgBox(0,"GUID Generator",_GenerateGUID ()) Func _GenerateGUID () $oScriptlet = ObjCreate ("Scriptlet.TypeLib") Return $oScriptlet.Guid EndFuncProgAndy gave me this one too:The WinAPIEx library contains a function called _WinAPI_CreateGUIDGeez I love the AutoIT Community !They know the answers even before the question arises ! So what's the winning Lotto Numbers EH !!!ThanksWhiteStar Edited February 27, 2012 by WhiteStar ~ WhiteStar Magic Always tuned to http://www.superbluesradio.com/ Tune in at http://87.117.217.41:8036/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now