https://github.com/abgox/ahk_lib
My collection of AHK functions
https://github.com/abgox/ahk_lib
ahk ahkv2 autohotkey functions lib v2
Last synced: 3 months ago
JSON representation
My collection of AHK functions
- Host: GitHub
- URL: https://github.com/abgox/ahk_lib
- Owner: abgox
- License: mit
- Created: 2023-08-01T04:53:33.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-04T10:10:13.000Z (over 1 year ago)
- Last Synced: 2025-01-09T14:48:54.843Z (5 months ago)
- Topics: ahk, ahkv2, autohotkey, functions, lib, v2
- Language: AutoHotkey
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README-CN.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/abgox/AHK_lib/blob/main/LICENSE)
[](https://img.shields.io/github/languages/code-size/abgox/AHK_lib.svg)
[](https://img.shields.io/github/repo-size/abgox/AHK_lib.svg)
English |
简体中文 |
Github |
Gitee## Tip
### 关于数组
1. `AutoHotkey` 中的数组的起始索引为 **1**
2. 为保持与大多数语言一致的`[左,右)`的区间选择原则,数组选择范围为`(1, 数组长度 + 1)`
- `数组长度 + 1` 是为了能够选中最后一个元素
- eg. `arr_slice(arr, start, end := arr.Length + 1)`
- `arr_slice([11, 22, 33, 44, 55 ], 3, 5)` => `[33, 44]`
- `arr_slice([11, 22, 33, 44, 55 ], 3)` => `[33, 44, 55]`
- `arr_slice([11, 22, 33, 44, 55 ], 3, 6)` => `[33, 44, 55]`
- `arr_slice([11, 22, 33, 44, 55 ], 1, -2)` => `[11, 22, 33]`### 关于参数校验
- 如:值、类型校验...
- 编译前存在,编译后移除(由`AhkExe.exe`编译)