Skip to content

Instantly share code, notes, and snippets.

@AlesRuzickaEu
Created December 4, 2017 15:22
Show Gist options
  • Save AlesRuzickaEu/1825742e1d9c104e690397f3a9877f75 to your computer and use it in GitHub Desktop.
Save AlesRuzickaEu/1825742e1d9c104e690397f3a9877f75 to your computer and use it in GitHub Desktop.
#SingleInstance force
!d::
formattime, carrotcake, , yyyy-MM-dd
send %carrotcake%
return
!t::
formattime, carrotcake, , yyyy-MM-ddTHH:mm
send %carrotcake%
return
!g::
send % CreateUUID() ;
return
!e::
send 00000000-0000-0000-0000-000000000000
return
!2::
send my@email.com
return
CreateUUID()
{
VarSetCapacity(UUID, 16, 0)
if (DllCall("rpcrt4.dll\UuidCreate", "ptr", &UUID) != 0)
return (ErrorLevel := 1) & 0
if (DllCall("rpcrt4.dll\UuidToString", "ptr", &UUID, "uint*", suuid) != 0)
return (ErrorLevel := 2) & 0
return StrGet(suuid), DllCall("rpcrt4.dll\RpcStringFree", "uint*", suuid)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment