{"id":13590400,"url":"https://github.com/wo52616111/capslock-plus","last_synced_at":"2026-01-28T05:18:10.097Z","repository":{"id":41176293,"uuid":"71020965","full_name":"wo52616111/capslock-plus","owner":"wo52616111","description":"An efficiency tool that provides various functions by enhancing the Caps Lock key into a modifier key.","archived":false,"fork":false,"pushed_at":"2024-11-03T07:43:55.000Z","size":128,"stargazers_count":1194,"open_issues_count":67,"forks_count":203,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-03-24T18:50:11.034Z","etag":null,"topics":["autohotkey","capslock","efficiency","hotkey","keyboard","shortcut","tool"],"latest_commit_sha":null,"homepage":"https://capslox.com/capslock-plus/","language":"AutoHotkey","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wo52616111.png","metadata":{"files":{"readme":"README_zh-CN.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-16T00:12:51.000Z","updated_at":"2025-03-23T00:49:18.000Z","dependencies_parsed_at":"2022-07-14T09:22:36.919Z","dependency_job_id":"4a2da2c6-259c-48fa-ba5d-348896b59654","html_url":"https://github.com/wo52616111/capslock-plus","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/wo52616111/capslock-plus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wo52616111%2Fcapslock-plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wo52616111%2Fcapslock-plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wo52616111%2Fcapslock-plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wo52616111%2Fcapslock-plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wo52616111","download_url":"https://codeload.github.com/wo52616111/capslock-plus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wo52616111%2Fcapslock-plus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28840088,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T02:10:51.810Z","status":"ssl_error","status_checked_at":"2026-01-28T02:10:50.806Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autohotkey","capslock","efficiency","hotkey","keyboard","shortcut","tool"],"created_at":"2024-08-01T16:00:44.832Z","updated_at":"2026-01-28T05:18:10.082Z","avatar_url":"https://github.com/wo52616111.png","language":"AutoHotkey","funding_links":[],"categories":["AutoHotkey"],"sub_categories":[],"readme":"[English](readme.md) | 中文\r\n\r\n---\r\n\r\nmaster 分支：v3.0+\r\n\r\nv2 分支：v2.x\r\n\r\n[官网（说明文档）](https://capslox.com/capslock-plus/)\r\n\r\n\r\n## 怎么运行Capslock+的源码？\r\n1. 下载 [AutoHotkey (v1.1.+)](http://www.ahkscript.org/)，并安装。\r\n2. 从 GitHub 下载 Capslock+ 源码。\r\n3. 运行`Capslock+.ahk`。\r\n\r\n## 怎么修改某个热键为自定义功能？\r\n1. 在 `/userAHK/main.ahk`，编写自定义的按键功能函数，例如 `keyFunc_example1`\r\n2. 在 `CapsLock+settings.ini` 的 [Keys] 字段下添加设置按键设置，例如：\r\n    `caps_f7=keyFunc_example1`\r\n3. 保存后重载 Capslock+ (Capslock+F5)\r\n4. 之后再按下 `CapsLock+F7` 就可以触发该函数。\r\n\r\n* 为了避免按键设置会调到内部函数，所以规定了所有函数以`keyfunc_`开头\r\n\r\n下面提供一个例子：\r\n\r\n### 把 Capslock+Q 替换成 Listary\r\n有同学跟我吐槽`qbar`太弱鸡，让我参考`WOX`，`Listary`等把`qbar`写得厉害一点，但我觉得`qbar`就是够用就好，如果有更高的需求那就直接用它们代替`qbar`吧。以`Listary`为例子，`Listary`虽然强大，但是个人觉得跟`qbar`比有两个不足的地方：\r\n\r\n1. 我觉得 Listary 的默认热键不如 `Capslock+Q` 顺手\r\n2. 不能将选中的文字直接填入\r\n\r\n那我们可以这样做来解决这两个问题：\r\n\r\n1. 把下面代码复制到`/userAHK/main.ahk`里：\r\n```ahk\r\nkeyfunc_listary(){\r\n    ; 获取选中的文字\r\n    selText:=getSelText()\r\n\r\n    ; 发送 win+F 按键（Listary默认的呼出快捷键），呼出Listary\r\n    sendinput, #{f}\r\n\r\n    ; 等待 Listary 输入框打开\r\n    winwait, ahk_exe Listary.exe, , 0.5\r\n\r\n    ; 如果有选中文字的话\r\n    if(selText){\r\n        ; 在选中的字前面加上\"gg \"，使用 google 搜索\r\n        selText:=\"gg \" . selText\r\n\r\n        ; 输出刚才复制的文字，并按一下`home`键将光标移到开头，以方便加入其它关键词\r\n        sendinput, %selText%{home}\r\n    }\r\n}\r\n```\r\n\r\n2. 在`CapsLock+settings.ini` `[keys]`设置：`caps_q=keyfunc_listary()`，保存，按下`CapsLock+F5`重载，搞定。\r\n\r\n## 怎么修改原有的功能？\r\n`CapsLock+.ahk`是入口文件，其他所有依赖文件都扔`/lib`里了，各文件说明如下：\r\n\r\n|文件|说明|\r\n|:---|:---|\r\n|lib_bindWins.ahk|窗口绑定|\r\n|lib_clQ.ahk|qbar|\r\n|lib_clTab.ahk|CapsLock+Tab|\r\n|lib_functions.ahk|一些依赖函数|\r\n|lib_init.ahk|各种初始化从这里开始|\r\n|lib_jsEval.ahk|调用ie引擎实现的计算功能，计算板和Caps+Tab的计算功能都用到|\r\n|lib_json.ahk|json库|\r\n|lib_keysFunction.ahk|几乎所有按键功能都在这实现|\r\n|lib_keysSet.ahk|热键布局|\r\n|lib_language.ahk|程序用到的字符串放到这|\r\n|lib_loadAnimation.ahk|程序加载动画|\r\n|lib_mathBoard.ahk|计算板|\r\n|lib_mouseSpeed.ahk|鼠标变速|\r\n|lib_settings.ahk|Capslock+settings.ini设置项提取|\r\n|lib_ydTrans.ahk|翻译|\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwo52616111%2Fcapslock-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwo52616111%2Fcapslock-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwo52616111%2Fcapslock-plus/lists"}