本條目存在以下問題,請協助改善本條目或在討論頁針對議題發表看法。 此條目包含指南或教學內容。 (2016年5月14日)請藉由移除或重寫指南段落來改善條目,或在討論頁提出討論。 此條目可能包含原创研究。 (2016年5月14日)请协助補充参考资料、添加相关内联标签和删除原创研究内容以改善这篇条目。详细情况请参见讨论页。 此條目應避免有陳列雜項、瑣碎資料的部分。 (2016年5月14日)請協助將有關資料重新編排成連貫性的文章,安置於適當章節或條目內。
AutoHotkey
開發者Chris Mallett(Chris),Steve Gray(Lexikos)
首次发布2003年11月10日 (2003-11-10)
当前版本
  • 2.0.15 (2024年5月15日;穩定版本)[1]
編輯維基數據鏈接
源代码库 編輯維基數據鏈接
编程语言C++
操作系统Microsoft Windows
语言英语
类型脚本语言自动化GUI
许可协议GPL
网站www.autohotkey.com

AutoHotkey自由开源的編程語言,常用於Windows平台的自動化。[2]

AutoHotkey 能快速編寫的功能

历史

AutoHotkey Basic时期,官方网站为www.autohotkey.com页面存档备份,存于互联网档案馆)。当Chris Mallett(原作者)停止更新时宣布AutoHotkey_L为后续主分支。[3]不久网站转由polyethene管理,他对网站的决定与论坛中许多核心用户出现较大分歧[4][5]且不时失去联系并成立了公司确保其正常运营。[6][7][8]2014年4月成立了 AutoHotkey Foundation 以確保AutoHotkey自由开放、持续开发,並提供组织、法务和财政上的支持。[9]

版本歷史

主要分支

應該選擇哪個版本

AutoHotkey 1.0.* 和 AutoHotkey_H 已停止開發和維護,不建議使用。

依賴大量舊的代碼庫建議使用 AutoHotkey 1.1.*,因為目前絕大多數的代碼和社區都是使用這個版本,這個版本仍在維護,仍然會添加少量的新功能和修復錯誤,用戶可以等待遷移工具完善或者 v2 變成主流再遷移即可。

不依賴舊的代碼庫,願意且能夠同步改動代碼的用戶使用 AutoHotkey v2,能獲得更一致的語法和更多的新功能。另外从v2 beta 4版本开始,v2和v1.1可以在同一台电脑上共存,v2 beta 15 已能自動從代碼來決定以哪個版本的引擎來運行,也有提供安裝工具,無需手動編譯或設定。

常用的辅助工具

代碼範例

快捷鍵(熱鍵)

讓左邊的 ⊞ Win键失效

LWin::Return

搜索剪貼簿的內容

Alt & g::Run http://www.google.com/search?q=%clipboard%

热字串(序列键)[28]範例:依次按下wjbk 輸入维基百科

::wjbk::维基百科,自由的百科全书

按下rn 打開記事本

::rn::Run, Notepad

另请参阅

参考资料

  1. ^ Release 2.0.15. 2024年5月15日 [2024年5月20日]. 
  2. ^ Prevent RSI with AutoHotkey. cedeq.com. [2014-03-02]. (原始内容存档于2014-03-02). 
  3. ^ Chris. My status and website changes. AutoHotkey.com. [2014-06-15]. (原始内容存档于2014-10-09). 
  4. ^ polyethene. Changes for AutoHotkey website. AutoHotkey.com. [2014-06-15]. (原始内容存档于2014-10-09). 
  5. ^ sumon. Make AHK_L "main" version?. AutoHotkey.com. [2014-06-15]. (原始内容存档于2014-07-14). 
  6. ^ tidbit. Basics as to why AHKSCRIPT exists. ahkscript.com. [2014-06-15]. (原始内容存档于2014-07-27). 
  7. ^ The AutoHotkey Foundation. ahkscript.org. [2014-06-15]. (原始内容存档于2014-06-25). 
  8. ^ tank. Welcome and if you need help. ahkscript.org. [2014-06-15]. (原始内容存档于2014-07-14). 
  9. ^ The AutoHotkey Foundation. ahkscript.org. [2014-06-29]. (原始内容存档于2014-06-25). 
  10. ^ Author Chris Mallett's post on the AutoHotkey Forums. Autohotkey.com. [2011-12-02]. (原始内容存档于2008-02-18). 
  11. ^ An AutoIt / AutoHotkey nonfunctional comparison. Paperlined.org. [2011-12-02]. (原始内容存档于2011-12-08). 
  12. ^ AutoHotkey Changelog for Years 2003-2004. Autohotkey.com. [2011-12-02]. (原始内容存档于2011-11-04). 
  13. ^ Author Chris Mallett's post on the AutoHotkey Forums. Autohotkey.com. [2011-12-02]. (原始内容存档于2008-05-26). 
  14. ^ Licensing Opinions - AutoIt Forums. Autoitscript.com. [2011-12-02]. (原始内容存档于2019-09-19). 
  15. ^ Forum post by Chris, announcing AutoHotkey_L now main platform. Autohotkey.com. [2011-12-02]. (原始内容存档于2019-09-19). 
  16. ^ Download page showing AutoHotkey_L as ongoing platform. Autohotkey.com. [2011-12-02]. (原始内容存档于2011-12-01). 
  17. ^ 17.0 17.1 AutoHotkey_L的新增特性. ahkcn.sourceforge.net. [2011-12-28]. (原始内容存档于2014-10-09). 
  18. ^ 18.0 18.1 AutoHotkey Downloads. (原始内容存档于2020-07-02). 
  19. ^ HotKeyIt. AutoHotkey_H. autohotkey.net. [2014-06-16]. 
  20. ^ AutoHotkey v2. ahkscript.org. [2014-06-15]. (原始内容存档于2014-07-09). 
  21. ^ AutoHotkey v2 Development. ahkscript.org. [2014-06-15]. (原始内容存档于2014-07-14). 
  22. ^ v2-changes. www.autohotkey.com. [2020-08-19]. (原始内容存档于2020-04-09). 
  23. ^ ahk 英文文檔. (原始内容存档于2019-10-01). 
  24. ^ ahk 中文文檔. (原始内容存档于2019-10-13). 
  25. ^ maestrith. GUI Creator. ahkscript.org. [2014-06-16]. (原始内容存档于2014-06-25). 
  26. ^ Pulover's Macro Creator. macrocreator.com. [2014-04-08]. (原始内容存档于2014-04-08). 
  27. ^ iWB2 Learner页面. [2014-04-22]. (原始内容存档于2014-04-18). 
  28. ^ 热字串和自动替换. AutoHotkey中文帮助. ahkcn.sf.net. [2014-06-16]. (原始内容存档于2014-06-03). 

外部链接