Created
June 5, 2015 18:32
-
-
Save BGMcoder/8f8c62ac21eb9d416ed5 to your computer and use it in GitHub Desktop.
ahk info
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;push win+3 to show your autohotkey information and copy it to your clipboard so you can paste it | |
| #3::ahkinfo() | |
| ahkinfo(){ | |
| isunicode := a_isunicode ? "Unicode" : "ANSI" | |
| thisinfo:= "AutoHotkey " . a_ahkversion . " " . isunicode . " on Windows 7 Pro x64" | |
| clipboard := thisinfo | |
| alert(thisinfo) | |
| } |
Author
The alert() function is from a library I use. It was just a wrapper for msgbox because it was easier to type and I liked it from javascript. Good catch though.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool! But inside the
ahkinfo()function. You are calling toalert(thisinfo)which does not exist.Here is a slightly more modern version that asks if you want to copy the information to the clipboard.
Output example
AutoHotKey 1.1.37.00 Unicode on Windows 10.0.19045 (64-bit)