Skip to content

Instantly share code, notes, and snippets.

@hoppfrosch
Created September 11, 2013 05:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoppfrosch/6519606 to your computer and use it in GitHub Desktop.
Save hoppfrosch/6519606 to your computer and use it in GitHub Desktop.
Determine version of Autohothey #ahk #script #snippet
;shows what version of ahk the user is running
; i think sinkfaze might have come up with this originally (dist. by camerb)
info := "AutoHotkey:`t" "AutoHotkey" ((A_AhkVersion < 1.1) ? " Classic ": ((A_IsDll ? "_H (DLL)":"_L")))
. "`nAHK Version:`t" A_AhkVersion
. "`nUnicode:`t`t" (A_IsUnicode ? "Yes " ((A_PtrSize=8) ? "(64-bit)" : "(32-bit)") : "No")
. "`nOperating System:`t" (!A_OSVersion ? A_OSType : A_OSVersion) " " (A_Is64bitOS ? "(64-bit)" : "(32-bit)")
. "`nAdmin Rights:`t" (A_IsAdmin ? "Yes" : "No")
MsgBox, 68, Support Information, %info%`n`nWould you like to copy this information to the Clipboard?
IfMsgBox Yes
{
Clipboard := info
ClipWait
MsgBox, The information was sent to the Clipboard.
}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment