From 72d80771424bd395a2997e9b043a15ea518e2c8a Mon Sep 17 00:00:00 2001 From: hyb1996 <946994919@qq.com> Date: Sun, 16 Dec 2018 10:24:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=89=93=E5=8C=85?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=97=B6=E6=97=A0=E6=B3=95=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20=E6=96=B0=E5=A2=9E=20images.match?= =?UTF-8?q?Template()=E6=89=BE=E5=9B=BE=E8=BF=94=E5=9B=9E=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E4=BD=8D=E7=BD=AE=20=E6=96=B0=E5=A2=9E=20=E6=89=BE?= =?UTF-8?q?=E5=9B=BE=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\346\211\276\345\233\276/block.png" | Bin 0 -> 917 bytes .../\346\211\276\345\233\276/mario.png" | Bin 0 -> 1374 bytes .../\346\211\276\345\233\276/super_mario.jpg" | Bin 0 -> 56242 bytes ...56\345\217\267\346\226\271\345\235\227.js" | 11 + ...73\345\207\272\344\275\215\347\275\256.js" | 23 ++ ...72\351\251\254\351\207\214\345\245\245.js" | 8 + .../autojs/autojs/build/ApkBuilder.java | 2 +- .../autojs/storage/database/Database.java | 1 + .../storage/database/TimedTaskDatabase.java | 1 - autojs/src/main/assets/modules/__images__.js | 203 ++++++++++++++---- .../autojs/core/graphics/ScriptCanvas.java | 1 + .../autojs/core/image/ColorFinder.java | 1 + .../autojs/core/image/TemplateMatching.java | 142 ++++++++---- .../autojs/core/web/InjectableWebClient.java | 15 +- .../autojs/runtime/ScriptBridges.java | 4 + .../stardust/autojs/runtime/api/Images.java | 31 +++ 16 files changed, 346 insertions(+), 97 deletions(-) create mode 100644 "app/src/main/assets/sample/\345\233\276\347\211\207\344\270\216\345\233\276\350\211\262\345\244\204\347\220\206/\346\211\276\345\233\276/block.png" create mode 100644 "app/src/main/assets/sample/\345\233\276\347\211\207\344\270\216\345\233\276\350\211\262\345\244\204\347\220\206/\346\211\276\345\233\276/mario.png" create mode 100644 "app/src/main/assets/sample/\345\233\276\347\211\207\344\270\216\345\233\276\350\211\262\345\244\204\347\220\206/\346\211\276\345\233\276/super_mario.jpg" create mode 100644 "app/src/main/assets/sample/\345\233\276\347\211\207\344\270\216\345\233\276\350\211\262\345\244\204\347\220\206/\346\211\276\345\233\276/\346\211\276\345\207\272\346\211\200\346\234\211\351\227\256\345\217\267\346\226\271\345\235\227.js" create mode 100644 "app/src/main/assets/sample/\345\233\276\347\211\207\344\270\216\345\233\276\350\211\262\345\244\204\347\220\206/\346\211\276\345\233\276/\346\211\276\345\207\272\351\227\256\345\217\267\346\226\271\345\235\227\345\271\266\347\224\273\345\207\272\344\275\215\347\275\256.js" create mode 100644 "app/src/main/assets/sample/\345\233\276\347\211\207\344\270\216\345\233\276\350\211\262\345\244\204\347\220\206/\346\211\276\345\233\276/\346\211\276\345\207\272\351\251\254\351\207\214\345\245\245.js" diff --git "a/app/src/main/assets/sample/\345\233\276\347\211\207\344\270\216\345\233\276\350\211\262\345\244\204\347\220\206/\346\211\276\345\233\276/block.png" "b/app/src/main/assets/sample/\345\233\276\347\211\207\344\270\216\345\233\276\350\211\262\345\244\204\347\220\206/\346\211\276\345\233\276/block.png" new file mode 100644 index 0000000000000000000000000000000000000000..c0944e12d05de2e9709b49674d9b1da422208dc6 GIT binary patch literal 917 zcmV;G18V$
Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!~g&e!~vBn4jTXf11d>GK~y+T6_ZPB
z6;&9=f9K5eK6`0SJoVnv` _q#th6~I{JpGr0FNpv`b41VRBYH
z+wrUB2fNeD3$&dN%nN%_QF3`c)k44d-WL#Umu!+f=vAol9#&kJvH8`vfy`fSon|&B
zhAV! pG0-f&zw2nfW>7pXD4u{Ww?`2G0ZeSTlAza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