{"id":685,"date":"2026-01-17T17:46:37","date_gmt":"2026-01-17T09:46:37","guid":{"rendered":"https:\/\/www.hxlive.cn\/?p=685"},"modified":"2026-01-17T17:59:13","modified_gmt":"2026-01-17T09:59:13","slug":"%e5%ae%8f%e5%8a%a9%e6%89%8b%ef%bc%88macroassistant%ef%bc%89-v1-58-0","status":"publish","type":"post","link":"https:\/\/www.hxlive.cn\/?p=685","title":{"rendered":"\u5b8f\u52a9\u624b\uff08MacroAssistant\uff09 v1.58.0"},"content":{"rendered":"<p><strong>&#x1f4d6; \u9879\u76ee\u7b80\u4ecb<\/strong><\/p>\n<p><strong>\u5b8f\u52a9\u624b\uff08MacroAssistant\uff09<\/strong> \u662f\u4e00\u6b3e\u5f00\u6e90\u514d\u8d39\u7684\u684c\u9762\u81ea\u52a8\u5316\u5de5\u5177\uff0c\u4e13\u4e3a\u7b80\u5316\u91cd\u590d\u6027\u4efb\u52a1\u800c\u8bbe\u8ba1\u3002\u65e0\u8bba\u662f\u6e38\u620f\u81ea\u52a8\u5316\u3001\u529e\u516c\u6d41\u7a0b\u4f18\u5316\uff0c\u8fd8\u662f UI \u6d4b\u8bd5\uff0c\u5b8f\u52a9\u624b\u901a\u8fc7\u56fe\u50cf\u8bc6\u522b\u548c OCR \u6587\u5b57\u8bc6\u522b\uff0c\u5e2e\u52a9\u7528\u6237\u5feb\u901f\u5f55\u5236\u548c\u6267\u884c\u81ea\u52a8\u5316\u811a\u672c\u3002<\/p>\n<p>\u65e0\u9700\u7f16\u7a0b\u7ecf\u9a8c\uff0c\u901a\u8fc7\u76f4\u89c2\u7684 GUI \u754c\u9762\u5373\u53ef\u8f7b\u677e\u4e0a\u624b\u3002<\/p>\n<p align=\"center\"><img decoding=\"async\" src=\"http:\/\/www.hxlive.cn\/pic\/t-0685.png\" alt=\"Macro Assistant \u622a\u56fe\" width=\"850\" \/><\/p>\n<p><strong>\u6838\u5fc3\u529f\u80fd<\/strong><\/p>\n<p>&#x26a1; \u56fe\u50cf\u8bc6\u522b (OpenCV)\uff1a\u901a\u8fc7 `cv2.matchTemplate` \u5b9e\u73b0\u6beb\u79d2\u7ea7\u8d85\u5feb\u56fe\u50cf\u67e5\u627e\uff0c\u652f\u6301\u591a\u5c3a\u5ea6\u548c\u81ea\u5b9a\u4e49\u7f6e\u4fe1\u5ea6\uff08`confidence`\uff09\u3002<br \/>\n&#x1f524; \u591a\u5f15\u64ce OCR\uff1a\u667a\u80fd\u96c6\u6210 `WinOCR`\uff08Windows 10+ \u5185\u7f6e\uff0c\u6700\u5feb\uff09\u3001`RapidOCR`\uff08\u6df1\u5ea6\u5b66\u4e60\uff0c\u7cbe\u51c6\uff09\u548c `Tesseract`\uff08\u515c\u5e95\uff09\uff0c\u4e2d\u82f1\u6587\u8bc6\u522b\u51c6\u786e\u7387\u9ad8\u3002<br \/>\n&#x1f5b1;&#xfe0f; \u5b8c\u6574\u952e\u9f20\u6a21\u62df\uff1a\u652f\u6301\u70b9\u51fb\u3001\u79fb\u52a8\uff08\u7edd\u5bf9\/\u76f8\u5bf9\uff09\u3001\u6eda\u52a8\u6eda\u8f6e\u3001\u7b49\u5f85\u3001\u8f93\u5165\u6587\u672c\uff08\u652f\u6301\u4e2d\u6587\u7c98\u8d34\uff09\u548c\u6309\u4e0b\u6309\u952e\uff08\u652f\u6301\u7ec4\u5408\u952e\u5982 `ctrl+c`\uff09\u3002<br \/>\n&#x1f39b;&#xfe0f; \u9ad8\u7ea7\u6d41\u7a0b\u63a7\u5236\uff1a\u652f\u6301 `IF\/ELSE` \u6761\u4ef6\u5224\u65ad\uff08\u57fa\u4e8e\u56fe\u50cf\/\u6587\u672c\uff09\u548c `LOOP` \u5faa\u73af\uff0c\u53ef\u6784\u5efa\u590d\u6742\u7684\u81ea\u52a8\u5316\u903b\u8f91\u3002<br \/>\n&#x1f5a5;&#xfe0f; \u7a97\u53e3\u7ba1\u7406\uff1a\u652f\u6301\u67e5\u627e\u5e76\u6fc0\u6d3b\u6307\u5b9a\u7a97\u53e3\uff08\u6309\u6807\u9898\uff09\uff0c\u786e\u4fdd\u81ea\u52a8\u5316\u5728\u6b63\u786e\u7684\u76ee\u6807\u4e0a\u6267\u884c\u3002<br \/>\n&#x2728; \u73b0\u4ee3 GUI\uff1a\u57fa\u4e8e `ttkbootstrap` \u6784\u5efa\uff0c\u63d0\u4f9b\u6e05\u6670\u7684\u6b65\u9aa4\u7f16\u8f91\u5668\u3001\u5b9e\u65f6\u72b6\u6001\u663e\u793a\u3001\u4e3b\u9898\u5207\u6362\u548c\u6700\u8fd1\u6587\u4ef6\u5217\u8868\u3002<br \/>\n&#x2328;&#xfe0f; \u5168\u5c40\u70ed\u952e\uff1a\u4f7f\u7528 `Ctrl+F10` \u542f\u52a8\uff0c`Ctrl+F11` \u7d27\u6025\u505c\u6b62\uff0c\u5b89\u5168\u53ef\u63a7\u3002<br \/>\n&#x1f3af; \u8f85\u52a9\u5de5\u5177\uff1a<br \/>\n\u5b9e\u65f6\u5750\u6807\uff1a\u5728\u6dfb\u52a0\u201c\u79fb\u52a8\u5230\u201d\u6b65\u9aa4\u65f6\uff0c\u5b9e\u65f6\u663e\u793a\u5f53\u524d\u9f20\u6807\u5750\u6807\u3002<br \/>\n\u5373\u65f6\u6d4b\u8bd5\uff1a\u5728\u6dfb\u52a0\u6b65\u9aa4\u524d\uff0c\u53ef\u7acb\u5373\u6d4b\u8bd5\u201c\u67e5\u627e\u56fe\u50cf\u201d\u6216\u201c\u67e5\u627e\u6587\u672c\u201d\u662f\u5426\u6709\u6548\u3002<\/p>\n<p>\u9002\u7528\u573a\u666f\uff1a<br \/>\n&#x1f3ae; \u6e38\u620f\u81ea\u52a8\u5316\uff1a\u81ea\u52a8\u70b9\u51fb\u3001\u5237\u4efb\u52a1\u3001\u5207\u6362\u7a97\u53e3\u3002<br \/>\n&#x1f4bc; \u529e\u516c\u6548\u7387\uff1a\u6279\u91cf\u586b\u5199\u8868\u5355\u3001\u6570\u636e\u5f55\u5165\u3001\u7a97\u53e3\u64cd\u4f5c\u3002<br \/>\n&#x1f41b; \u6d4b\u8bd5\u5de5\u5177\uff1a\u6a21\u62df\u7528\u6237\u4ea4\u4e92\uff0c\u9a8c\u8bc1 UI \u529f\u80fd\u3002<br \/>\n&#x1f504; \u65e5\u5e38\u91cd\u590d\u4efb\u52a1\uff1a\u81ea\u52a8\u5904\u7406\u56fa\u5b9a\u6d41\u7a0b\uff0c\u63d0\u5347\u6548\u7387\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>&#x1f4da; \u52a8\u4f5c\u5217\u8868\u8be6\u89e3<\/strong><\/p>\n<table style=\"border-collapse: collapse; width: 81.3093%; height: 405px;\">\n<tbody>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.21524%; height: 24px;\">\u5e8f\u53f7<\/td>\n<td style=\"width: 21.6918%; height: 24px;\">\u52a8\u4f5c<\/td>\n<td style=\"width: 60.2848%; height: 24px;\">\u529f\u80fd\u63cf\u8ff0<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.21524%; height: 24px;\">01<\/td>\n<td style=\"width: 21.6918%; height: 24px;\">\u67e5\u627e\u56fe\u50cf<\/td>\n<td style=\"width: 60.2848%; height: 24px;\">(\u6838\u5fc3) \u5728\u5168\u5c4f\u67e5\u627e\u6307\u5b9a\u56fe\u50cf\uff0c\u627e\u5230\u540e\u5c06\u9f20\u6807\u79fb\u52a8\u5230\u5176\u4e2d\u5fc3\u3002<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.21524%; height: 24px;\">02<\/td>\n<td style=\"width: 21.6918%; height: 24px;\">\u67e5\u627e\u6587\u672c (OCR)<\/td>\n<td style=\"width: 60.2848%; height: 24px;\">(\u6838\u5fc3) \u5728\u5168\u5c4f\u67e5\u627e\u6307\u5b9a\u6587\u672c\uff0c\u627e\u5230\u540e\u5c06\u9f20\u6807\u79fb\u52a8\u5230\u5176\u4e2d\u5fc3\u3002<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.21524%; height: 24px;\">03<\/td>\n<td style=\"width: 21.6918%; height: 24px;\">\u76f8\u5bf9\u79fb\u52a8<\/td>\n<td style=\"width: 60.2848%; height: 24px;\">\u4ece\u4e0a\u4e00\u4e2a\u52a8\u4f5c\u7684\u4f4d\u7f6e\uff0c\u6309\u504f\u79fb\u91cf\u79fb\u52a8\u9f20\u6807\u3002<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.21524%; height: 24px;\">04<\/td>\n<td style=\"width: 21.6918%; height: 24px;\">\u79fb\u52a8\u5230 (\u7edd\u5bf9\u5750\u6807)<\/td>\n<td style=\"width: 60.2848%; height: 24px;\">\u5c06\u9f20\u6807\u79fb\u52a8\u5230\u5c4f\u5e55\u7684\u7cbe\u786e\u5750\u6807 (\u63d0\u4f9b\u5b9e\u65f6\u5750\u6807\u53c2\u8003)\u3002<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.21524%; height: 24px;\">05<\/td>\n<td style=\"width: 21.6918%; height: 24px;\">\u70b9\u51fb\u9f20\u6807<\/td>\n<td style=\"width: 60.2848%; height: 24px;\">\u5728\u5f53\u524d\u9f20\u6807\u4f4d\u7f6e\u6267\u884c\u70b9\u51fb (\u5de6\/\u4e2d\/\u53f3\u952e)\u3002<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.21524%; height: 24px;\">06<\/td>\n<td style=\"width: 21.6918%; height: 24px;\">\u6eda\u52a8\u6eda\u8f6e<\/td>\n<td style=\"width: 60.2848%; height: 24px;\">\u5728\u6307\u5b9a\u4f4d\u7f6e\uff08\u6216\u5f53\u524d\u4f4d\u7f6e\uff09\u6eda\u52a8\u3002<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.21524%; height: 24px;\">07<\/td>\n<td style=\"width: 21.6918%; height: 24px;\">\u7b49\u5f85<\/td>\n<td style=\"width: 60.2848%; height: 24px;\">\u6682\u505c\u5b8f\uff0c\u7b49\u5f85\u56fa\u5b9a\u65f6\u95f4 (\u6beb\u79d2)\u3002<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.21524%; height: 24px;\">08<\/td>\n<td style=\"width: 21.6918%; height: 24px;\">\u8f93\u5165\u6587\u672c<\/td>\n<td style=\"width: 60.2848%; height: 24px;\">\u6a21\u62df\u952e\u76d8\u8f93\u5165\uff08\u901a\u8fc7\u526a\u8d34\u677f\u7c98\u8d34\u5b9e\u73b0\uff0c\u652f\u6301\u4e2d\u6587\uff09\u3002<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.21524%; height: 24px;\">09<\/td>\n<td style=\"width: 21.6918%; height: 24px;\">\u6309\u4e0b\u6309\u952e<\/td>\n<td style=\"width: 60.2848%; height: 24px;\">\u6a21\u62df\u6309\u4e0b\u5355\u4e2a\u6309\u952e\u6216\u7ec4\u5408\u952e (\u5982 `enter`, `ctrl+v`)\u3002<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.21524%; height: 24px;\">10<\/td>\n<td style=\"width: 21.6918%; height: 24px;\">\u6fc0\u6d3b\u7a97\u53e3 (\u6309\u6807\u9898)<\/td>\n<td style=\"width: 60.2848%; height: 24px;\">\u67e5\u627e\u6807\u9898\u5305\u542b\u6307\u5b9a\u6587\u672c\u7684\u7a97\u53e3\uff0c\u5e76\u5c06\u5176\u6fc0\u6d3b\u5230\u6700\u524d\u7aef\u3002<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.21524%; height: 24px;\">11<\/td>\n<td style=\"width: 21.6918%; height: 24px;\">IF \u627e\u5230\u56fe\u50cf<\/td>\n<td style=\"width: 60.2848%; height: 24px;\">(\u6d41\u7a0b\u63a7\u5236) \u5982\u679c\u627e\u5230\u8be5\u56fe\u50cf\uff0c\u5219\u7ee7\u7eed\u6267\u884c `IF` \u5757\u3002<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.21524%; height: 24px;\">12<\/td>\n<td style=\"width: 21.6918%; height: 24px;\">IF \u627e\u5230\u6587\u672c<\/td>\n<td style=\"width: 60.2848%; height: 24px;\">(\u6d41\u7a0b\u63a7\u5236) \u5982\u679c\u627e\u5230\u8be5\u6587\u672c\uff0c\u5219\u7ee7\u7eed\u6267\u884c `IF` \u5757\u3002<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.21524%; height: 24px;\">13<\/td>\n<td style=\"width: 21.6918%; height: 24px;\">ELSE<\/td>\n<td style=\"width: 60.2848%; height: 24px;\">(\u6d41\u7a0b\u63a7\u5236) \u5fc5\u987b\u4e0e `IF` \u914d\u5bf9\u4f7f\u7528\u3002<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.21524%; height: 24px;\">14<\/td>\n<td style=\"width: 21.6918%; height: 24px;\">END_IF<\/td>\n<td style=\"width: 60.2848%; height: 24px;\">(\u6d41\u7a0b\u63a7\u5236) \u6807\u8bb0 `IF` \u5757\u7684\u7ed3\u675f\u3002<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 7.21524%; height: 21px;\">15<\/td>\n<td style=\"width: 21.6918%; height: 21px;\">\u5faa\u73af\u5f00\u59cb (Loop)<\/td>\n<td style=\"width: 60.2848%; height: 21px;\">\u6307\u5b9a\u5faa\u73af\u4f53\u6267\u884c\u7684\u6b21\u6570\u3002<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 7.21524%; height: 24px;\">16<\/td>\n<td style=\"width: 21.6918%; height: 24px;\">\u7ed3\u675f\u5faa\u73af (EndLoop)<\/td>\n<td style=\"width: 60.2848%; height: 24px;\">\u6807\u8bb0\u5faa\u73af\u4f53\u7684\u7ed3\u675f\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><strong>&#x1f6e0;&#xfe0f; \u5b89\u88c5\u4e0e\u4f9d\u8d56<\/strong><\/p>\n<p>1. \u5e93\u4f9d\u8d56<br \/>\n`requirements.txt` \u5185\u5bb9:<br \/>\n<code>ttkbootstrap<\/code><br \/>\n<code>pyautogui<\/code><br \/>\n<code>pynput<\/code><br \/>\n<code>pygetwindow<\/code><br \/>\n<code>opencv-python<\/code><br \/>\n<code>Pillow<\/code><br \/>\n<code>pytesseract<\/code><br \/>\n<code>rapidocr-onnxruntime<\/code><br \/>\n<code>windows-ocr<\/code><\/p>\n<p>\u8bf7\u786e\u4fdd\u5df2\u4f7f\u7528 pip \u5b89\u88c5\u6240\u6709\u8fd9\u4e9b\u5e93\u3002<\/p>\n<p>&#x2328;&#xfe0f; \u9ed8\u8ba4\u5feb\u6377\u952e\u63a7\u5236<br \/>\n&#8211; Ctrl+F10\uff1a\u542f\u52a8\u5b8f\u6267\u884c<br \/>\n&#8211; Ctrl+F11\uff1a\u7acb\u5373\u505c\u6b62\u5b8f<br \/>\n&#8211; \u907f\u514d\u4e0e\u5176\u4ed6\u7a0b\u5e8f\u51b2\u7a81\uff0c\u968f\u65f6\u638c\u63a7<\/p>\n<p><strong>&#x26a0;&#xfe0f; \u6ce8\u610f\u4e8b\u9879<\/strong><\/p>\n<p>\u5b89\u5168\u6027<br \/>\n&#8211; &#x2705; \u5b8c\u5168\u79bb\u7ebf\u8fd0\u884c\uff0c\u65e0\u4efb\u4f55\u7f51\u7edc\u8bf7\u6c42<br \/>\n&#8211; &#x2705; \u6570\u636e\u5b89\u5168\uff0c\u6240\u6709\u5b8f\u6587\u4ef6\u5b58\u50a8\u5728\u672c\u5730<br \/>\n&#8211; &#x2705; \u5f00\u6e90\u900f\u660e\uff0c\u4ee3\u7801\u516c\u5f00\u53ef\u5ba1\u67e5<\/p>\n<p><strong>\u5f00\u6e90\u534f\u8bae<\/strong><br \/>\n&#8211; &#x1f4dc; \u91c7\u7528 MIT \u534f\u8bae\uff0c\u53ef\u81ea\u7531\u4fee\u6539\u548c\u5206\u4eab<br \/>\n&#8211; &#x1f4dc; \u5546\u4e1a\u4f7f\u7528\u3001\u79c1\u4eba\u4f7f\u7528\u5747\u53ef<br \/>\n&#8211; &#x1f4dc; \u9700\u4fdd\u7559\u7248\u6743\u58f0\u660e<\/p>\n<p><strong>\u4f9d\u8d56\u95ee\u9898<\/strong><br \/>\n&#8211; &#x1f527; \u82e5 RapidOCR \u521d\u59cb\u5316\u5931\u8d25\uff0c\u8bf7\u5b89\u88c5 [VC++ \u8fd0\u884c\u5e93](https:\/\/aka.ms\/vs\/17\/release\/vc_redist.x64.exe)<br \/>\n&#8211; &#x1f527; \u82e5 WinOCR \u4e0d\u53ef\u7528\uff0c\u8bf7\u786e\u4fdd\u7cfb\u7edf\u4e3a Windows 10 1903+<br \/>\n&#8211; &#x1f527; \u82e5 OpenCV \u5bfc\u5165\u5931\u8d25\uff0c\u5c1d\u8bd5\u91cd\u65b0\u5b89\u88c5\uff1a`pip install opencv-python &#8211;upgrade`<\/p>\n<p><strong>\u9879\u76ee\u5730\u5740\uff1a<\/strong><a href=\"https:\/\/github.com\/hxlive\/MacroAssistant\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/hxlive\/MacroAssistant<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p><strong>&#x1f4d6; \u9879\u76ee\u7b80\u4ecb<\/strong><\/p>\n<p>\u5b8f\u52a9\u624b \u662f\u4e00\u6b3e\u5f00\u6e90\u514d\u8d39\u7684\u684c\u9762\u81ea\u52a8\u5316\u5de5\u5177\uff0c\u4e13\u4e3a\u7b80\u5316\u91cd\u590d\u6027\u4efb\u52a1\u800c\u8bbe\u8ba1\u3002\u65e0\u8bba\u662f\u6e38\u620f\u81ea\u52a8\u5316\u3001\u529e\u516c\u6d41\u7a0b\u4f18\u5316\uff0c\u8fd8\u662f UI \u6d4b\u8bd5\uff0c\u5b8f\u52a9\u624b\u901a\u8fc7\u56fe\u50cf\u8bc6\u522b\u548c OCR \u6587\u5b57\u8bc6\u522b\uff0c\u5e2e\u52a9\u7528\u6237\u5feb\u901f\u5f55\u5236\u548c\u6267\u884c\u81ea\u52a8\u5316\u811a\u672c\u3002<\/p>\n<p>\u65e0\u9700\u7f16\u7a0b\u7ecf\u9a8c\uff0c\u901a\u8fc7\u76f4\u89c2\u7684 GUI \u754c\u9762\u5373\u53ef\u8f7b\u677e\u4e0a\u624b\u3002<\/p>\n<p align=\"center\"><img decoding=\"async\" src=\"http:\/\/www.hxlive.cn\/pic\/t-0685.png\" alt=\"Macro Assistant \u622a\u56fe\" width=\"850\" \/><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[10,28],"_links":{"self":[{"href":"https:\/\/www.hxlive.cn\/index.php?rest_route=\/wp\/v2\/posts\/685"}],"collection":[{"href":"https:\/\/www.hxlive.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hxlive.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hxlive.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hxlive.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=685"}],"version-history":[{"count":0,"href":"https:\/\/www.hxlive.cn\/index.php?rest_route=\/wp\/v2\/posts\/685\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hxlive.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hxlive.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hxlive.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}