当前位置:网站首页>ahk常用函数
ahk常用函数
2022-06-10 16:01:00 【fqbqrr】
常用函数 | 说明 |
|---|---|
FileExist | 检查文件或目录是否存在,并返回其属性. |
GetKeyState | 如果按下指定键则返回真(1),如果按起则返回假(0). |
InStr | 从左侧或右侧搜索给定串(是否在串). |
RegExMatch | 判断串是否包含模式(正则式). |
RegExReplace | 替换串中出现的模式(正则式). |
StrLen | 取串中有多少字符计数. |
StrReplace | 新串替换出现的指定子串. |
StrSplit | 用指定分隔符分隔串为子串数组. |
SubStr | 从串中指定位置取子串. |
WinActive | 检查指定窗口是否活动并返回其唯一ID(HWND). |
WinExist | 检查是否存在指定窗口,并返回第一个匹配窗口的唯一ID(HWND). |
其他函数 | 说明 |
|---|---|
Asc | 返回指定串中第一个字节或UTF-16代码单元的数值. |
Chr | 数字表示的符. |
DllCall | 调用DLL内函数,如标准窗口API函数. |
Exception | 异常 |
FileOpen | 打开文件 |
Format | 格式串 |
Func | 取函数引用. |
GetKeyName/VK/SC | 取按键名/文本,虚键码或扫描码. |
Hotstring | 在脚本运行时创建,修改,启用或禁用热串. |
IL_XXX | 添加图标/图片,创建或删除ListView或TreeView控件使用的ImageList的功能. |
InputHook | 创建收集或拦截键盘输入的对象. |
IsByRef | 如果用变量提供指定ByRef参数,则返回非零数字. |
IsFunc | 如果脚本中存在指定函数,则返回非零数. |
IsLabel | 如果指定标签在脚本中,则返回非零数. |
IsObject | 如果指定值是对象,则返回非零数. |
LoadPicture | 从文件加载图片并返回位图或图标句柄. |
LV_XXX | 添加,插入,修改或删除,ListView的行/列或从中取数据的函数. |
MenuGetHandle | 取菜单的Win32菜单句柄. |
MenuGetName | 取给定其底层Win32菜单句柄的菜单名. |
NumGet | 返回存储在指定地址偏移的二进制数. |
NumPut | 指定地址偏移处按二进制存储数字. |
ObjAddRef/ObjRelease | 增加或减少对象引用计数. |
ObjBindMethod | 创建调用给定对象方法的BoundFunc对象. |
ObjGetBase | 取对象的基对象. |
ObjRawGet | 绕过对象元函数,从对象中取键值对. |
ObjRawSet | 绕过对象元函数,在对象中存储或覆盖键值对. |
ObjSetBase | 设置对象基对象. |
ObjXXX | Object类型的内置方法函数,如ObjInsertAt.建议改用相应方法. |
OnClipboardChange | 注册函数或函数对象,以在剪贴板内容更改时运行. |
OnError | 指定发生错误时自动运行函数. |
OnExit | 指定脚本退出时自动运行函数. |
OnMessage | 监控消息/事件. |
Ord | 返回指定串中第一个字符的序数值 |
SB_XXX | 向StatusBar栏加文本/图标或划分栏. |
StrGet | 从内存地址复制串,可在代码页间转换. |
StrPut | 复制串到内存地址,可在代码页间转换. |
RegisterCallback | 调用时创建机器码地址,脚本中重定向调用函数. |
Trim/LTrim/RTrim | 从串开头和/或结尾修剪字符. |
TV_XXX | 添加,修改或删除TreeView项,或从中取数据. |
VarSetCapacity | 扩大变量容量或释放内存. |
数学函数 | 说明 |
|---|---|
Abs | 绝对值. |
Ceil | 四舍五入到最近整数. |
Exp | 返回e(大约为2.71828182845905)的N次方. |
Floor | 下整 |
Log | 10为底对数 |
Ln | e为底对数 |
Max/Min | 返回多个数字的最大值/最小值. |
Mod | 余 |
Round | 圆整 |
Sqrt | 平方根. |
Sin/Cos/Tan | 三角正弦/余弦/正切. |
ASin/ACos/ATan | 按弧度返回反正弦/反余弦/反正切. |
COM函数 | 说明 |
|---|---|
ComObjActive | 取注册COM对象. |
ComObjArray | 创建用于COM的安全数组. |
ComObjConnect | 连接COM对象的事件源到有给定前缀函数. |
ComObjCreate | 创建COM对象. |
ComObject | 创建表示按参数或返回值传递的类型值对象. |
ComObjEnwrap/ComObjUnwrap | 包装/解包COM对象. |
ComObjError | 启用或禁用COM错误通知. |
ComObjFlags | 取或更改控制COM包装对象行为的标志. |
ComObjGet | 返回COM组件提供的对象引用. |
ComObjMissing | 创建"缺少参数"对象来传递给COM方法. |
ComObjParameter | 按COM方法参数包装值和类型. |
ComObjQuery | 查询COM对象接口或服务. |
ComObjType | 从COM对象中取类型信息. |
ComObjValue | 取存储在COM包装对象中值或指针. |
边栏推荐
- Introduction to postmangrpc function
- Research Report on development potential analysis and investment development strategy of global and Chinese hydraulic oil industry (2022-2028)
- IDEA的Swing可视化插件JFormDesigner
- Test question bank and simulation test for operation certificate of ordinary scaffolder (special type of construction work) in 2022
- 再联合 冲量在线与飞腾完成合作伙伴认证,携手打造信创隐私计算生态圈
- Actual combat of software testing e-commerce project (actual combat video station B has been released)
- Fosun Group hekaiduo: grow together with Alibaba cloud and help business innovation
- The guide to the application of all-in-one privacy computing machine - the technical requirements for financial application of all-in-one privacy computing machine was officially released to help the
- 2022 underground coal mine electrical examination question bank and online simulation examination
- How does Dao achieve decentralized governance?
猜你喜欢

隐形马尔可夫模型及其训练(一)

【无标题】

NumPy 学习笔记

Analysis report on market demand trend and sales strategy of global and Chinese automatic marshmallow machines (2022-2028)

Fosun Group hekaiduo: grow together with Alibaba cloud and help business innovation

Embedded development: five challenges in wireless update using MCU

Global and Chinese intelligent elderly care system industry 2 competition analysis and Investment Strategic Planning Research Report 022-2028

毕业季:致走向辽远未知的你

This paper introduces three feature selection methods in machine learning

PyTorch基础(一)-- Anaconda 和 PyTorch安装
随机推荐
智慧景区视频监控 5G智慧灯杆网关组网综合杆
Devops-1- introduction
Why__ Inline usually needs static
防洪排涝监控 防洪排涝自动监测遥测终端
How to make a simple Snake game with pyGame
CAP 6.1 版本发布通告
Devops software architecture evolution
Test question bank and simulation test for operation certificate of ordinary scaffolder (special type of construction work) in 2022
VBA判断一个长字符串中是否包含另一个短字符串
DAO 是如何实现去中心化治理的?
Postman common assertions
全链路追踪 & 性能监控工具 SkyWalking 实战
VBA判断文件是否存在及问文件备份思路
Research Report on the application field of Chinese antirust oil market and the prospect planning of the 14th five year plan (2022-2028)
Zhangxiaobai teaches you how to use Ogg to synchronize Oracle 19C data with MySQL 5.7 (1)
从零开始,如何拥有自己的博客网站【华为云至简致远】
顺应医改,积极布局——集采背景下的高值医用耗材发展洞察2022
Specific method of Modbus RTU communication between Velcro touch screen and delta inverter (picture and text)
Swift read userinfo of remote notification
Can deleted wechat friends be recovered? How to retrieve wechat friends after they are accidentally deleted