{"id":15,"date":"2026-10-09T15:42:27","date_gmt":"2026-10-09T07:42:27","guid":{"rendered":"http:\/\/laoke.pw\/?p=15"},"modified":"2026-10-09T15:42:27","modified_gmt":"2026-10-09T07:42:27","slug":"10-autohotkey-%e8%ae%a9-windows-%e6%8c%89%e4%bd%a0%e7%9a%84%e8%a7%84%e5%88%99%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/laoke.pw\/?p=15","title":{"rendered":"10 AutoHotkey \u2014\u2014 \u8ba9 Windows \u6309\u4f60\u7684\u89c4\u5219\u8fd0\u884c"},"content":{"rendered":"<h2>\u4e00\u53e5\u8bdd\u5b9a\u4f4d<\/h2>\n<p>AutoHotkey\uff08\u7b80\u79f0 AHK\uff09\u662f\u4e00\u6b3e\u514d\u8d39\u5f00\u6e90\u7684 Windows \u81ea\u52a8\u5316\u811a\u672c\u5de5\u5177\u3002\u4f60\u53ef\u4ee5\u7528\u5b83\u628a\u91cd\u590d\u7684\u952e\u9f20\u64cd\u4f5c\u5199\u6210\u811a\u672c\uff0c\u4e00\u952e\u89e6\u53d1\u2014\u2014\u4ece\u6539\u4e00\u4e2a\u952e\u4f4d\uff0c\u5230\u81ea\u52a8\u5316\u4e00\u6574\u5957\u5de5\u4f5c\u6d41\u7a0b\u3002<\/p>\n<h2>\u5b83\u7684\u672c\u8d28\u662f\u4ec0\u4e48<\/h2>\n<p>AHK \u662f\u4e00\u4e2a\u811a\u672c\u8bed\u8a00\u52a0\u8fd0\u884c\u65f6\u3002\u4f60\u5199\u4e00\u6bb5\u6587\u672c\u811a\u672c\uff0c\u5b83\u5c31\u80fd\uff1a<\/p>\n<ul>\n<li>\u91cd\u65b0\u5b9a\u4e49\u4efb\u4f55\u6309\u952e\u6216\u7ec4\u5408\u952e\u7684\u884c\u4e3a<\/li>\n<li>\u628a\u4e00\u6bb5\u957f\u6587\u672c\u7ed1\u5b9a\u5230\u67d0\u4e2a\u5feb\u6377\u952e\uff08\u6587\u672c\u6269\u5c55\uff09<\/li>\n<li>\u81ea\u52a8\u70b9\u51fb\u3001\u79fb\u52a8\u9f20\u6807\u3001\u586b\u8868\u5355<\/li>\n<li>\u64cd\u4f5c\u7a97\u53e3\uff08\u79fb\u52a8\u3001\u7f6e\u9876\u3001\u9690\u85cf\u3001\u5207\u6362\uff09<\/li>\n<li>\u8bfb\u53d6\u548c\u4fee\u6539\u6587\u4ef6\u3001\u6ce8\u518c\u8868<\/li>\n<li>\u5f39\u51fa\u8f93\u5165\u6846\u3001\u6258\u76d8\u83dc\u5355\u7b49\u754c\u9762<\/li>\n<li>\u8c03\u7528\u7cfb\u7edf API \u548c\u5916\u90e8\u7a0b\u5e8f<\/li>\n<\/ul>\n<p>\u4e00\u53e5\u8bdd\uff1a<strong>\u53ea\u8981\u662f\u4f60\u80fd\u7528\u952e\u9f20\u624b\u52a8\u505a\u7684\u4e8b\uff0cAHK \u57fa\u672c\u90fd\u80fd\u81ea\u52a8\u5316\u3002<\/strong><\/p>\n<h2>\u4ece\u6700\u7b80\u5355\u7684\u5f00\u59cb<\/h2>\n<p>AHK \u6700\u53cb\u597d\u7684\u5730\u65b9\u662f\uff0c\u4f60\u4e0d\u9700\u8981\u61c2\u7f16\u7a0b\u5c31\u80fd\u4e0a\u624b\u3002\u6bd4\u5982\u300c\u628a <code>Caps Lock<\/code> \u6539\u6210 <code>Esc<\/code>\u300d\u53ea\u9700\u8981\u4e00\u884c\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>CapsLock::Esc<\/p>\n<p>&#8220;`<\/p>\n<p>\u300c\u6309 <code>Ctrl + Alt + T<\/code> \u6253\u5f00\u8bb0\u4e8b\u672c\u300d\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>^!t::Run notepad.exe<\/p>\n<p>&#8220;`<\/p>\n<p>\u300c\u8f93\u5165 <code>@@<\/code> \u81ea\u52a8\u53d8\u6210\u4f60\u7684\u90ae\u7bb1\u300d\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>::@@::yourname@example.com<\/p>\n<p>&#8220;`<\/p>\n<p>\u8fd9\u6837\u7684\u5c0f\u811a\u672c\u5199\u4e09\u56db\u884c\u5c31\u6709\u5b9e\u9645\u6536\u76ca\u3002<\/p>\n<h2>\u8fdb\u9636\u80fd\u505a\u4ec0\u4e48<\/h2>\n<h3>\u6587\u672c\u6269\u5c55\u7cfb\u7edf<\/h3>\n<p>\u7ef4\u62a4\u4e00\u4efd\u300c\u7f29\u5199 \u2192 \u5168\u6587\u300d\u7684\u6620\u5c04\u8868\uff0c\u6bd4\u5982\u8f93\u5165 <code>;addr<\/code> \u81ea\u52a8\u5c55\u5f00\u6210\u5b8c\u6574\u5730\u5740\u3001\u8f93\u5165 <code>;sig<\/code> \u5c55\u5f00\u6210\u90ae\u4ef6\u7b7e\u540d\u3001\u8f93\u5165 <code>;date<\/code> \u5c55\u5f00\u6210\u4eca\u5929\u7684\u65e5\u671f\u3002\u5bf9\u7ecf\u5e38\u586b\u8868\u3001\u56de\u90ae\u4ef6\u7684\u4eba\uff0c\u8fd9\u4e2a\u529f\u80fd\u672c\u8eab\u5c31\u80fd\u7701\u4e0b\u5927\u91cf\u91cd\u590d\u8f93\u5165\u3002<\/p>\n<h3>\u7a97\u53e3\u7ba1\u7406<\/h3>\n<p>\u5199\u811a\u672c\u5b9e\u73b0\uff1a\u4e00\u952e\u628a\u5f53\u524d\u7a97\u53e3\u8d34\u5230\u5de6\u534a\u8fb9\u3001\u4e00\u952e\u5728\u6240\u6709\u663e\u793a\u5668\u4e4b\u95f4\u79fb\u52a8\u7a97\u53e3\u3001\u4e00\u952e\u628a\u7a97\u53e3\u7f6e\u9876\u3001\u4e00\u952e\u6700\u5c0f\u5316\u6240\u6709\u7a97\u53e3\u3002\u6bd4\u7cfb\u7edf\u81ea\u5e26\u7684\u8d34\u9760\u66f4\u7b26\u5408\u4e2a\u4eba\u4e60\u60ef\u3002<\/p>\n<h3>\u6279\u91cf\u64cd\u4f5c\u81ea\u52a8\u5316<\/h3>\n<p>\u6bd4\u5982\u300c\u628a\u5f53\u524d\u6587\u4ef6\u5939\u91cc\u6240\u6709\u56fe\u7247\u7edf\u4e00\u91cd\u547d\u540d\u5e76\u8f6c\u6362\u683c\u5f0f\u300d\u300c\u6bcf\u5929\u5b9a\u65f6\u6574\u7406\u4e0b\u8f7d\u76ee\u5f55\u300d\u300c\u81ea\u52a8\u767b\u5f55\u67d0\u4e2a\u5185\u90e8\u7cfb\u7edf\u5e76\u5bfc\u51fa\u62a5\u8868\u300d\u3002\u8fd9\u7c7b\u6709\u56fa\u5b9a\u6b65\u9aa4\u7684\u91cd\u590d\u52b3\u52a8\uff0c\u4ea4\u7ed9\u811a\u672c\u6700\u5408\u9002\u3002<\/p>\n<h3>\u6e38\u620f\u8f85\u52a9\u4e0e\u65e0\u969c\u788d<\/h3>\n<p>AHK \u5728\u6e38\u620f\u5b8f\u548c\u65e0\u969c\u788d\u8f85\u52a9\u65b9\u9762\u4e5f\u6709\u5927\u91cf\u5e94\u7528\u573a\u666f\uff08\u9700\u6ce8\u610f\u5177\u4f53\u6e38\u620f\u7684\u670d\u52a1\u6761\u6b3e\uff09\u3002<\/p>\n<h2>\u5b9e\u6d4b\u4f53\u9a8c<\/h2>\n<p><strong>\u5b66\u4e60\u66f2\u7ebf\u662f\u771f\u7684\u5b58\u5728\u3002<\/strong> \u7b80\u5355\u7684\u4e00\u884c\u811a\u672c\u8c01\u90fd\u4f1a\u5199\uff0c\u4f46\u8981\u5199\u590d\u6742\u903b\u8f91\u9700\u8981\u5b66\u8bed\u6cd5\u3001\u7406\u89e3\u53d8\u91cf\u548c\u51fd\u6570\u3002\u597d\u5728\u5b98\u65b9\u6587\u6863\u6781\u5176\u8be6\u5c3d\uff0c\u793e\u533a\u793a\u4f8b\u4e5f\u975e\u5e38\u591a\uff0c\u9047\u5230\u9700\u6c42\u57fa\u672c\u90fd\u80fd\u641c\u5230\u73b0\u6210\u65b9\u6848\u3002<\/p>\n<p><strong>\u4e00\u65e6\u5199\u597d\u51e0\u4e2a\u6838\u5fc3\u811a\u672c\uff0c\u6536\u76ca\u662f\u957f\u671f\u7684\u3002<\/strong> \u6211\u7ef4\u62a4\u4e86\u4e00\u4efd\u5e38\u7528\u811a\u672c\uff0c\u5305\u62ec\u51e0\u7ec4\u6587\u672c\u6269\u5c55\u3001\u7a97\u53e3\u5feb\u6377\u952e\u3001\u4e00\u4e2a\u5b9a\u65f6\u6574\u7406\u4e0b\u8f7d\u6587\u4ef6\u5939\u7684\u4efb\u52a1\u3002\u8fd9\u4e9b\u5199\u5b8c\u5c31\u653e\u5728\u90a3\u91cc\uff0c\u6bcf\u5929\u81ea\u52a8\u751f\u6548\uff0c\u51e0\u4e4e\u4e0d\u9700\u8981\u518d\u7ef4\u62a4\u3002<\/p>\n<p><strong>\u811a\u672c\u53ef\u4ee5\u7f16\u8bd1\u6210 exe\u3002<\/strong> \u60f3\u7ed9\u4e0d\u61c2\u6280\u672f\u7684\u540c\u4e8b\u7528\uff0c\u53ef\u4ee5\u76f4\u63a5\u7f16\u8bd1\u6210\u72ec\u7acb\u53ef\u6267\u884c\u6587\u4ef6\u53d1\u8fc7\u53bb\u3002<\/p>\n<p><strong>AHK v2 \u548c v1 \u8bed\u6cd5\u4e0d\u517c\u5bb9\u3002<\/strong> \u7f51\u4e0a\u5927\u91cf\u8001\u6559\u7a0b\u662f v1 \u8bed\u6cd5\uff0c\u65b0\u7248\u662f v2\u3002\u5b66\u4e60\u65f6\u6ce8\u610f\u533a\u5206\uff0c\u5efa\u8bae\u76f4\u63a5\u5b66 v2\u3002<\/p>\n<h2>\u9002\u5408\u8c01<\/h2>\n<ul>\n<li>\u6bcf\u5929\u6709\u5927\u91cf\u91cd\u590d\u952e\u9f20\u64cd\u4f5c\u7684\u4eba<\/li>\n<li>\u60f3\u6df1\u5ea6\u5b9a\u5236 Windows \u884c\u4e3a\uff08\u6539\u952e\u4f4d\u3001\u6539\u5feb\u6377\u952e\u3001\u6539\u7a97\u53e3\u903b\u8f91\uff09\u7684\u4eba<\/li>\n<li>\u9700\u8981\u81ea\u52a8\u5316\u56fa\u5b9a\u6d41\u7a0b\u7684\u529e\u516c\u573a\u666f<\/li>\n<li>\u6709\u4e00\u70b9\u7f16\u7a0b\u57fa\u7840\u3001\u613f\u610f\u6295\u5165\u65f6\u95f4\u5b66\u4e60\u7684\u4eba<\/li>\n<\/ul>\n<h2>\u9700\u8981\u6ce8\u610f\u7684\u5730\u65b9<\/h2>\n<p><strong>\u6740\u6bd2\u8f6f\u4ef6\u5076\u5c14\u4f1a\u8bef\u62a5\u3002<\/strong> \u56e0\u4e3a AHK \u80fd\u6a21\u62df\u952e\u9f20\u3001\u8c03\u7528\u7cfb\u7edf API\uff0c\u67d0\u4e9b\u5b89\u5168\u8f6f\u4ef6\u4f1a\u5bf9\u7f16\u8bd1\u540e\u7684\u811a\u672c\u62a5\u8b66\u3002\u6b63\u5e38\u60c5\u51b5\u52a0\u767d\u540d\u5355\u5373\u53ef\u3002<\/p>\n<p><strong>\u6ce8\u610f\u5408\u89c4\u3002<\/strong> \u7528\u811a\u672c\u81ea\u52a8\u5316\u5728\u7ebf\u670d\u52a1\u65f6\uff0c\u5148\u786e\u8ba4\u4e0d\u8fdd\u53cd\u8be5\u670d\u52a1\u7684\u4f7f\u7528\u6761\u6b3e\u3002<\/p>\n<p><strong>\u522b\u4e00\u6b21\u6027\u5199\u592a\u591a\u3002<\/strong> \u5efa\u8bae\u4ece\u300c\u6700\u70e6\u7684\u90a3\u4e00\u4e2a\u91cd\u590d\u64cd\u4f5c\u300d\u5f00\u59cb\uff0c\u5199\u597d\u4e00\u4e2a\u7528\u4e00\u5468\uff0c\u786e\u8ba4\u6709\u7528\u4e86\u518d\u5199\u4e0b\u4e00\u4e2a\u3002<\/p>\n<h2>\u5c0f\u7ed3<\/h2>\n<p>\u8fd9\u4efd\u6e05\u5355\u91cc\u5176\u4ed6\u4e5d\u6b3e\u90fd\u662f\u300c\u88c5\u5b8c\u5373\u7528\u300d\uff0cAutoHotkey \u662f\u552f\u4e00\u4e00\u6b3e\u9700\u8981\u4f60\u6295\u5165\u65f6\u95f4\u53bb\u5b66\u7684\u3002\u4f46\u5b83\u7684\u5929\u82b1\u677f\u4e5f\u662f\u6700\u9ad8\u7684\u2014\u2014\u524d\u9762\u90a3\u4e9b\u5de5\u5177\u5e2e\u4f60\u66f4\u9ad8\u6548\u5730\u4f7f\u7528\u7535\u8111\uff0cAHK \u8ba9\u4f60\u91cd\u65b0\u5b9a\u4e49\u7535\u8111\u8be5\u600e\u4e48\u5de5\u4f5c\u3002<\/p>\n<p>\u514d\u8d39\u3001\u5f00\u6e90\u3001\u5341\u51e0\u5e74\u6301\u7eed\u7ef4\u62a4\uff0c\u751f\u6001\u5e9e\u5927\u3002\u5982\u679c\u4f60\u613f\u610f\u82b1\u4e00\u4e2a\u4e0b\u5348\u5b66\u57fa\u7840\u8bed\u6cd5\uff0c\u4e4b\u540e\u80fd\u7701\u4e0b\u7684\u65f6\u95f4\u4f1a\u8fdc\u8d85\u8fd9\u4e2a\u6295\u5165\u3002<\/p>\n<hr \/>\n<h2>\u7ed3\u8bed\uff1a\u522b\u4e00\u6b21\u88c5\u5341\u4e2a<\/h2>\n<p>\u8fd9\u5341\u6b3e\u8f6f\u4ef6\u7684\u5171\u540c\u70b9\u662f\uff1a<strong>\u514d\u8d39\u6216\u4e00\u6b21\u4e70\u65ad\u3001\u8f7b\u91cf\u3001\u672c\u5730\u4f18\u5148\u3001\u65e0\u5e7f\u544a\u6346\u7ed1<\/strong>\u3002\u4f46\u771f\u6b63\u51b3\u5b9a\u6548\u679c\u7684\u4e0d\u662f\u88c5\u4e86\u591a\u5c11\uff0c\u800c\u662f\u4f60\u6bcf\u5929\u771f\u7684\u5728\u7528\u54ea\u51e0\u4e2a\u3002<\/p>\n<p>\u6309\u573a\u666f\u6311\u7ec4\u5408\u4f1a\u66f4\u5b9e\u9645\uff1a<\/p>\n<ul>\n<li><strong>\u53ea\u60f3\u63d0\u5347\u65e5\u5e38\u6548\u7387<\/strong>\uff1aEverything + PowerToys + Ditto<\/li>\n<li><strong>\u8981\u5199\u4e1c\u897f\u3001\u505a\u77e5\u8bc6\u7ba1\u7406<\/strong>\uff1aObsidian + Snipaste<\/li>\n<li><strong>\u7ecf\u5e38\u622a\u56fe\u505a\u6587\u6863<\/strong>\uff1aShareX + Snipaste<\/li>\n<li><strong>\u6587\u4ef6\u591a\u3001\u6574\u7406\u9891\u7e41<\/strong>\uff1aEverything + Files + Ditto<\/li>\n<li><strong>\u60f3\u5f7b\u5e95\u5b9a\u5236\u81ea\u5df1\u7684\u7535\u8111<\/strong>\uff1aPowerToys + Flow Launcher + AutoHotkey<\/li>\n<\/ul>\n<p>\u5148\u6311\u4e24\u4e09\u6b3e\u7528\u719f\uff0c\u5f62\u6210\u808c\u8089\u8bb0\u5fc6\u4e4b\u540e\u518d\u52a0\u3002\u5de5\u5177\u53ea\u662f\u653e\u5927\u5668\uff0c\u4e60\u60ef\u624d\u662f\u5e95\u5ea7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AutoHotkey\uff08\u7b80\u79f0 AHK\uff09\u662f\u4e00\u6b3e\u514d\u8d39\u5f00\u6e90\u7684 Windows \u81ea\u52a8\u5316\u811a\u672c\u5de5\u5177\u3002\u4f60\u53ef\u4ee5\u7528\u5b83\u628a\u91cd\u590d\u7684\u952e\u9f20\u64cd\u4f5c\u5199\u6210\u811a\u672c\uff0c\u4e00\u952e\u89e6\u53d1\u2014\u2014\u4ece\u6539\u4e00\u4e2a\u952e\u4f4d\uff0c\u5230\u81ea\u52a8\u5316\u4e00\u6574\u5957\u5de5\u4f5c\u6d41\u7a0b\u3002<\/p>\n","protected":false},"author":1,"featured_media":48,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[2,4],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-2","category-4"],"_links":{"self":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15"}],"version-history":[{"count":0,"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/media\/48"}],"wp:attachment":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}