| AutoHotkey.com |
jaco0646 |
AutoHotkey.net |
Tidbits
Last but not least, here are a few tidbits of code I've found useful at one time or another.
UrlDownloadToFile,http://www.netikus.net/show_ip.html/,%TEMP%\ip
FileReadLine,IP,%TEMP%\ip,1
FileDelete,%TEMP%\ip
MsgBox,4160,Public IP,%ip%
WinSet,AlwaysOnTop,,ahk_class Shell_TrayWnd
DriveGet, drives, List, Fixed
Loop, Parse, drives
{
RunWait, %comspec% /c fsutil fsinfo ntfsinfo %A_LoopField%: > tmpFile,,Hide
FileRead, ntfsInfo, tmpFile
FileDelete, tmpFile
Loop, Parse, ntfsInfo, `n, `r
{
StringLeft, line, A_LoopField, 17
If line = Bytes Per Cluster
StringMid, size, A_LoopField, 35
}
var .= A_LoopField ":" A_Tab size A_Tab "Bytes per Cluster`n"
}
MsgBox, 4160, Cluster Size, %var%
For a list of the available command line utilities see the
A-Z Index. You may also want to refresh your memory or learn
more about The Command Line in Windows.
Extraneous Scripts
I also recommend these scripts, written by prominent AHK users.