标准库

整理人: amnesiac 最近更新时间: 20101112

感谢 Tuncay, 和此标准库所包含函数的作者们(他们的名字出现在所写函数的说明页面).

标准库是提供许多有用功能的库函数集合, 这个库帮助提取自 Tuncay 收集整理的 AutoHotkey 标准库集合(文件名 ahkstdlib.zip, 当前版本: 201009181732), 发布此帮助是为了方便大家使用标准库, 但不对此标准库提供任何形式的担保, 其包括但不限于, 它在商业适售性以及特定用途的适用性方面的隐含担保.

随同此帮助一起获取的应该有 AutoHotkey 标准库集合. 如果没有, 请从 http://www.autohotkey.com/forum/viewtopic.php?p=335088 下载. 关于此标准库的进一步开发或其他相关话题, 也请关注此主题.

注: 由于此标准库帮助主要由脚本生成, 因此其中可能存在一些错误. 欢迎大家到 AutoHotkey 中文论坛(网址: ahk.5d6d.com)或 AHKCN QQ 群(群号: 58806956)发表意见和建议, 我会关注, 但不一定(及时)回复.

库函数列表

点击函数(集)名称获取详情.

函数 说明
A_* True Binary Arrays
Affinity_* Sets the CPU to be used in Dual/Quad/Multi core processors / Effectively.
AHKHID_* An AHK implementation of the HID functions
AHKsock_* A simple AHK implementation of Winsock (TCP/IP)
Align() Aligns controls inside the parent.
Anchor() Control Anchoring for resizing windows.
argp_* Argument Options Parser
baseConvert() Number System Converter
CColor() Set text and background color for some Gui controls.
cdomessage() CDO COM - Email Delivery
CMDret_* runReturn return output from console progs
CMDret_stream() stream return output from console progs
com_* COM Standard Library
ConnectedToInternet() How to find Internet Connection Status
ConsoleApp_* Retrieve standard output (StdOut) of a program
Crypt_* File Standard Library Crypt
DamerauLevenshteinDistance() Fuzzy string searching
DateParse() Convert any date format to YYYYMMDDHH24MISS.
Delay() High Resolution Delay
difference() Super Fast and Accurate string distance algorithm
Dlg_* Common Operating System Dialogs
DLL_* Resource-Only DLL for Dummies
Dock_* Dock desired top level windows (dock clients) to any top level window (dock host).
DockA() Dock AHK windows
Edit_* Update/Control any Edit control
EmptyMem() Run AHK scripts with less (half or even less) memory usage.
Eval_* Evaluate math expressions in strings
Exec() Executes AutoHotkeys internal commands from within a given string. (Execute AHK code dynamically!)
File_* File Standard Library
FileExtract_* Complementary and extended FileInstall
FileGetVersionInfo() Extracts and returns version information ( any one at a time ) from an executable file.
fileIsBinary() Check if file is a binary or text format.
Font_* Creates font or sets applies to control.
ftp_* Basic FTP Functions
Functions() A wrapper set of functions for commands which have an output variable.
Gdip_* GDI+ standard library
GetAvailableFileName_* Get next/free Available File Name
GetCommonPath() Get path to standard system folder.
grep() grep - global regular expression match
HLink_* HyperLink control
Hotstrings() RegEx Powered Dynamic Hotstrings
HtmDlg() HTML DialogBox
httpQuery() httpQuery GET and POST requests
HttpQueryInfo() HttpQueryInfo - Get HTTP headers
ILButton() Image buttons with text, states, alignment
ini_* Basic Ini String Library
InternetFileRead_* InternetFileRead aka UrlDownLoadToVar
IsFullScreen() Checks if a window is in fullscreen mode
json() Read/write JSON parser
LetUserSelectRect() Select a portion of the screen
mci_* MCI Play/Control media files
MCode() Machine code functions: Bit Wizardry
md5_* Computes and returns MD5 hash for a variable or a File
mg_* Mouse gestures
MI_* Provides a set of functions for implementing icons in menus.
Mount_* Mount any path as a drive
msTill() Get milliseconds until time
Notify() Multiple easy tray area notifications
pgArray_* A solution for Manipulating AHK's Arrays v2
ping_* Ping() function without PING.EXE
PixPut() Bitmap Static Control
ProcessInfo_* Function library to retrieve various application process informations.
QPX() Wrapper for QueryPerformanceCounter()
Rand() A wrapper to Ahks internal Random command.
RandomUniqNum() Generating unique random integers
Rebar_* Rebar control
regionGetColor_* Average color a window
RemoteBuf_* RemoteBuffer - Read and write process memory
RichEdit_* RichEdit control
RPath_* Calculates a path by comparing two pathes, FROM and TO.
SB_* Creates and controls a progressbar placed atop the last known AHK Gui's Statusbar control.
sc_* Screen Capture utility
ShellFileOperation() A shell function that can be called to Copy / Move / Delete / Rename File(s).
ShowMenu_* Show menu from the text
Splitter_* Splitter control
st_* Stack Library
StdoutToVar_* Redirects the output of a command or application into one of the script's variables.
StrPut() / StrGet() Copies a string to or from a memory address, optionally converting it between code pages.
strTail_* Return the last lines of string
StrX() Auto-Parser for XML / HTML
sXMLget() Simple solution that get information out of xml and html.
TaskButton_* Extract Informations about TaskBar
TF_* Text file & Variables/String Library
ThousandsSep() Add Thousands Separator
Toolbar_* Toolbar control
ToolTip_* Advanced ToolTip features
TrayIcon_* Extract Informations about TrayIcons
TVX_* TreeViewX - Tree View eXtension
type_* Type Functions
UnHTM() Remove HTML formatting from a String
USBD_* Safely Remove USB Flash Drive.
uuid() Generates a time-based Universally Unique Identifier based on random clock and node IDs.
VA_* Vista Audio Control Functions
WaitPixelColor() Waits until pixel is a certain color.
WatchDirectory() Watch folders for changes
Win_* Set of window functions.
WinServ_* Start, Stop or Query a windows service (WinAPI)
xpath_* Read and write XML documents with XPath syntax.
yaml_* Simple Yaml Parser