Commit Graph

437 Commits

Author SHA1 Message Date
hyb1996
a51b9c24ed fix: app crash when longClick throws exception 2018-01-04 21:13:12 +08:00
hyb1996
2d287f720c * refactor: move library dynamic layout inflater to autojs module
* fix: ScriptExecuteActivity memory leak
* fix: InterruptedException on script exit event
2018-01-04 16:22:38 +08:00
hyb1996
7145faa533 fix: captureScreen() return null 2018-01-01 14:12:47 +08:00
hyb1996
3e592370dc try to fix hyb1996-guest/auto.js3-issues#20 2017-12-31 22:21:23 +08:00
hyb1996
55ea745d57 fix: colors.red() return NaN 2017-12-31 18:52:03 +08:00
hyb1996
5ed6e2bea8 add: logout button on drawer menu 2017-12-31 17:56:35 +08:00
hyb1996
6d9fda6862 api: floaty 2017-12-30 15:23:48 +08:00
hyb1996
f39516a4b4 fix: crash when a exception is thrown by script on ui thread 2017-12-30 00:22:01 +08:00
hyb1996
e8e73aac14 add: two samples for floaty 2017-12-29 21:45:16 +08:00
hyb1996
084a8ea033 fix: FloatyWindow.setSize() not working 2017-12-29 20:53:51 +08:00
hyb1996
4188b2027c fix: console resize not working 2017-12-29 17:06:28 +08:00
hyb1996
174e1d933c fix: Thread.interrupt() not working 2017-12-29 15:48:43 +08:00
hyb1996
e296c0ebd8 api: device.isScreenOn(), device.wakeUpIfNeeded() 2017-12-29 14:50:38 +08:00
hyb1996
de4f086415 api: device.keepScreenOn(), device.keepScreenDim(), device.wakeUp(), device.vibrate();
fix: crash when rotating editor
2017-12-29 14:09:27 +08:00
hyb1996
c12814769f fix: timer for ui thread is null in non-ui script 2017-12-29 00:35:22 +08:00
hyb1996
3647cef81b api: threads, events 2017-12-28 21:21:41 +08:00
hyb1996
729958d419 api: threads, files 2017-12-27 16:47:32 +08:00
hyb1996
25e9c90bf4 api: app 2017-12-11 19:10:01 +08:00
hyb1996
4f8c2d1f35 fix: fastTemplateMatching always return null when template.width/height < 14 2017-12-10 00:55:21 +08:00
hyb1996
0e6616c1dc opt: layout inspector view 2017-12-09 12:36:43 +08:00
hyb1996
6128aa28a6 chore: add ensureAccessibilityServiceEnabled() to currentPackage(), currentActivity(), events.observeKey() 2017-12-09 10:45:14 +08:00
hyb1996
b6f251da0b opt: independent runtime 2017-12-08 22:45:31 +08:00
hyb1996
1ea8b34f01 fix: app.getPackageName typo 2017-12-08 17:31:20 +08:00
hyb1996
e6811c2f5a fix: dialogs.select() arguments' parsing 2017-12-07 22:46:16 +08:00
hyb1996
be023ceefe optimize: code generation 2017-12-07 22:32:13 +08:00
hyb1996
8db26f5b11 optimize: code generation 2017-12-07 22:13:58 +08:00
hyb1996
6ea30c6fcc api: selector.findOne(timeout), selector.findOnce(index) 2017-12-07 00:09:17 +08:00
hyb1996
338192ad17 fix: captureScreen() return null 2017-12-06 20:30:06 +08:00
hyb1996
9a09d6f57a add: some properties of device 2017-12-06 20:04:42 +08:00
hyb1996
a2f0e8d63b optimize module floaty and add two samples 2017-12-06 15:02:37 +08:00
hyb1996
c871b474f5 add: console.setPosition, console.setSize 2017-12-06 13:58:49 +08:00
hyb1996
e33ce733d5 add: module floaty; events.on('exit') 2017-12-06 13:18:36 +08:00
hyb1996
346487b0ef change circular menu icon 2017-12-05 22:49:30 +08:00
hyb1996
02ec8f7fb5 add: circular menu alpha and limited in screen 2017-12-05 22:26:53 +08:00
hyb1996
e9346f0794 add: http.postMultipart 2017-12-05 17:59:42 +08:00
hyb1996
0473dfbf60 fix: app ANR when crash 2017-12-04 23:28:29 +08:00
hyb1996
6e617d83e8 add: module storages 2017-12-04 17:20:40 +08:00
hyb1996
56b5f5b6b8 add: script list remember sorting config 2017-12-03 16:35:05 +08:00
hyb1996
08571f409b merge commits 2017-12-03 14:17:18 +08:00
hyb1996
6fb6e14369 add: module threads; read and write binary file supports 2017-12-03 14:13:34 +08:00
hyb1996
d06171d549 add: module device 2017-12-02 21:06:01 +08:00
hyb1996
1413bf21a5 add: promise support; fix: dialogs and setClip ANR on ui thread; 2017-12-01 20:52:51 +08:00
hyb1996
45bbc33ab7 add: some samples of ui widgets 2017-11-30 14:14:54 +08:00
hyb1996
7bf9b3f0d9 update dynamic layout inflater to latest version; add some ui samples 2017-11-30 00:49:06 +08:00
hyb1996
92f296cc19 optimize: util.format 2017-11-29 20:04:50 +08:00
hyb1996
6dfd35683a add: apk builder plugin support; fix: inrt AutoJs.ensureServiceEnabled 2017-11-29 16:07:52 +08:00
hyb1996
028c5c91f4 fix: http wrapResponse crash 2017-11-28 23:11:35 +08:00
hyb1996
e8bab643af add: timed task 2017-11-28 02:26:05 +08:00
hyb1996
9951ffae7a just to save works and use another computer to code 2017-11-27 21:11:49 +08:00
hyb1996
d882877573 add: option 'docs source' 2017-11-27 14:40:37 +08:00
hyb1996
f99e844747 add: images.load(), landscape param of requestScreenCapture() 2017-11-27 14:29:21 +08:00
hyb1996
d775b5e77c fix: require for absolute path 2017-11-27 00:12:43 +08:00
hyb1996
328ab6efa7 add: images.findImage; change images.findColor implementation to opencv 2017-11-26 17:47:17 +08:00
hyb1996
35955faba9 update DynamicLayoutInflater to lastest version 2017-11-07 13:49:37 +08:00
hyb1996
d3c60049b7 fix: app crash when ui script throws exception 2017-11-07 12:56:19 +08:00
hyb1996
7c1decdc04 add: simple code generation 2017-11-06 23:45:36 +08:00
hyb1996
0b884f5747 * add: row, column, depth, etc. for UiObject
* add: row, column, depth, etc. conditions for UiGlobalSelector
* add: filter for UiGlobalSelector
2017-11-05 17:42:41 +08:00
hyb1996
ef02572f1d wtf 2017-11-03 19:56:50 +08:00
hyb1996
36c6b38b17 remove unnessary files of editor; add 'delete line' and 'copy line' options to editor context menu 2017-11-02 23:29:54 +08:00
hyb1996
37445b7905 fix: JSON.stringify() throws StackOverflow for Java objects 2017-11-02 15:27:49 +08:00
hyb1996
9b9b37b940 add: module util
fix: console.log for format %j
2017-11-02 13:41:13 +08:00
hyb1996
43263a62ff * change rhino to 1.7.7.2
* fix: wrap java.lang.String to native string
2017-11-02 13:18:29 +08:00
hyb1996
935a82099c add array's functions to UiCollection 2017-11-01 23:52:16 +08:00
hyb1996
a30019ab77 Revert "just to save works"
This reverts commit 8a55450d62.
2017-10-31 14:07:37 +08:00
hyb1996
8a55450d62 just to save works 2017-10-31 10:55:03 +08:00
hyb1996
cbd2600c33 add: notification listener service 2017-10-31 00:07:45 +08:00
hyb1996
bfd6a0c40a fix: images.captureScreen() return null or throw exception when called too often 2017-10-30 19:05:57 +08:00
hyb1996
bb7adfa5f5 refactor: SublimePlugin 2017-10-30 14:50:00 +08:00
hyb1996
f3ee94b1cf fix: connection and log of SublimePluginClient
add: VSCode Extension support
2017-10-29 22:26:55 +08:00
hyb1996
2c7ede3e1c fix: crash of ui script 2017-10-28 19:20:15 +08:00
hyb1996
3923daeaf8 fix: GlobalStardustConsole memory leak 2017-10-28 16:05:29 +08:00
hyb1996
716a44fb6f fix: VolatileBox dead lock issue 2017-10-28 15:46:03 +08:00
hyb1996
d830e13031 fix hyb1996-guest/AutoJsIssueReport#14544 2017-10-28 14:48:53 +08:00
hyb1996
1f7be092d8 fix: timer not working when script runs repeatedly 2017-10-27 23:56:40 +08:00
hyb1996
2c990e1966 refactor: move some classes in package api to package core 2017-10-27 19:46:31 +08:00
hyb1996
19bbbe9fe1 fix: root_automator cannot be force stopped 2017-10-27 11:34:41 +08:00
hyb1996
f55593a7a2 fix: user register; update dependencies 2017-10-26 17:01:29 +08:00
hyb1996
1e5c05efb9 fix: user login; refactor: move package widget to package ui 2017-10-26 13:16:34 +08:00
hyb1996
60f9e8e74f fix: permission issues of inrt 2017-10-25 22:06:09 +08:00
hyb1996
cf82cd2802 add: search for scripts and posts 2017-10-25 13:23:46 +08:00
hyb1996
9077e4928d add: build apk from js file 2017-10-24 15:49:45 +08:00
hyb1996
e301e5952c refactor: move package console to package core 2017-10-22 18:40:54 +08:00
hyb1996
38740657b8 fix: console lagged with too many logs 2017-10-22 18:33:12 +08:00
hyb1996
4b43434b25 apply plugin retrolambda 2017-10-19 15:34:51 +08:00
hyb1996
51cda012d2 refactor: remove unused resources, cleanup the code structure 2017-10-19 13:33:21 +08:00
hyb1996
a478278135 replace hover with custom circular menu 2017-10-18 20:53:21 +08:00
hyb1996
e6c0500358 add: module http 2017-10-04 14:43:41 +08:00
hyb1996
e1f95c09f3 add: jump, find, replace, copy, paste for editor 2017-09-28 21:09:16 +08:00
hyb1996
7616634e40 fix: crash on notification events 2017-09-25 16:30:09 +08:00
hyb1996
8c9777c138 fix #232 2017-09-24 22:26:01 +08:00
hyb1996
601019cab2 i don't know what i did 2017-09-22 16:12:07 +08:00
hyb1996
a64a92276c i don't know what I did 2017-09-11 13:42:07 +08:00
hyb1996
602b84fc92 add: fab and toolbar hide when scrolling 2017-08-21 10:48:11 +08:00
hyb1996
68de90b718 initial status 2017-08-19 12:18:46 +08:00
hyb1996
8dd93e55cf update readme 2017-08-16 11:10:21 +08:00
hyb1996
7b1a5fc675 fix: setInterval & setTimeout not working when waitWhenIdle is false 2017-08-15 21:12:58 +08:00
hyb1996
a72147fcf2 docs: RootAutomator 2017-08-15 20:17:27 +08:00
hyb1996
febb709279 fix: #225 2017-08-15 10:25:08 +08:00
hyb1996
4c0d01c961 fix: forceStop not working when recorded file is executed in loop 2017-08-15 10:13:25 +08:00
hyb1996
405075757e add: stable mode for AccessibilityService 2017-08-14 21:23:07 +08:00
hyb1996
8034dc7b6b fix: RootAutomatorEngine.forceStop not working 2017-08-14 20:10:33 +08:00
hyb1996
7b4629aa1d fix: mode 'auto' not working 2017-08-13 13:22:10 +08:00
hyb1996
8c50bfdcaf add: module RootAutomator
docs: RootAutomator
2017-08-13 13:11:19 +08:00
hyb1996
9c5f876a8f add: root record generates js file
fix: delay of tap, swipe by adding RootAutomator
2017-08-13 11:12:14 +08:00
hyb1996
4129f83cb1 fix: record isn't stopped when volume down
refactor: recorder
2017-08-12 14:14:49 +08:00
hyb1996
5ee99b5379 refactor(autojs): move inputevent to package core 2017-08-06 14:40:02 +08:00
hyb1996
9174a77676 optimize: auto file size generated by touch record
docs: selector
2017-08-05 14:59:00 +08:00
hyb1996
2ad0d6c269 improve: change starting Activity to show floating window on record stop 2017-08-04 18:36:41 +08:00
hyb1996
19dac12614 refactor(module autojs): package com.stardust.autojs.runtime.inputevent
add: module engines
2017-08-04 15:19:57 +08:00
hyb1996
f2c1015470 fix(RootAutomatorEngine): forceStop() not working 2017-08-03 15:11:16 +08:00
hyb1996
2f5573d9c2 refactor(module autojs): to support .auto record file 2017-08-03 13:06:55 +08:00
hyb1996
6a3392cfe6 add: root_automator 2017-08-01 21:42:32 +08:00
hyb1996
f037a642fd fix: hyb1996-guest/AutoJsIssueReport#7761 2017-07-31 21:49:27 +08:00
hyb1996
f51d791d98 fix: lag when accessibility service switch toggled 2017-07-31 21:28:13 +08:00
hyb1996
6307d3aa96 fix: Swipe() 2017-07-31 13:02:15 +08:00
hyb1996
63bc8c0e09 refactor: remove AbstractScriptRuntime 2017-07-31 10:35:00 +08:00
hyb1996
33cdef21c6 add: auto() function and two mode of fetching rootInActiveWindow 2017-07-31 10:15:39 +08:00
hyb1996
dc9f8f417a refactor: remove SimpleActionPerformHost and AccessibilityEventCommandHost 2017-07-30 16:28:26 +08:00
hyb1996
fed7b97deb add: example of random() 2017-07-30 16:08:56 +08:00
hyb1996
b3bc83d1a2 add: random() 2017-07-30 15:55:22 +08:00
hyb1996
4f35562d45 fix: ConsoleView ConcurrentModifiationException 2017-07-29 18:27:15 +08:00
hyb1996
12037ba488 change JavaScriptEngine to LoopBasedJavaScriptEngine
Everything works like Node.js. loop() will not need be called explicitly any more.
Including some changes:
* Every thread of script has a looper.
* Use a servant thread in gestures functions of GlobalActionAutomator and image available listener of ScreenCapture.
* For keeping events key and touch listener alive, add Loopers.waitWhenIdle to control whether or not Looper should quit when it has nothing to do
2017-07-29 17:46:23 +08:00
hyb1996
11b87d9a51 fix code completion bug 2017-07-22 09:35:51 +08:00
hyb1996
6d62b40b21 imporve code completion 2017-07-21 17:05:01 +08:00
hyb1996
8f2a088111 add timers modules 2017-07-21 11:24:02 +08:00
hyb1996
85216477c4 add docs and samples for events module 2017-07-20 22:03:21 +08:00
hyb1996
52cc5214f1 add events module, including EventEmiiter, KeyEvent, TouchEvent 2017-07-20 15:39:17 +08:00
hyb1996
dbacf93399 docs, scripts 2017-07-18 10:23:38 +08:00
hyb1996
21c4a38b86 add files and docs of files and images 2017-07-17 23:26:15 +08:00
hyb1996
248338016b save works 2017-07-16 21:47:34 +08:00
hyb1996
73773faedc fix fucking accessibility service 2017-07-16 10:19:07 +08:00
hyb1996
24f0043a0f release 2.0.14 Beta 2017-07-12 14:04:06 +08:00
hyb1996
a9f0b5bc30 修复QQ点赞金豆问题 2017-07-12 12:29:58 +08:00
hyb1996
c827ef7c64 try to fix crash under android19 2017-07-12 12:09:32 +08:00
hyb1996
fcfb3a69e0 add setText and add group memeber script 2017-07-12 11:47:32 +08:00
hyb1996
e5cc3ef4f9 change getRootInActiveWindow back to 2.0.12 Beta 2017-07-12 10:50:34 +08:00
hyb1996
d04ef71a67 fix some part of console hidden on low dpi device 2017-07-11 20:46:34 +08:00
hyb1996
c6e31dcb41 release 2.0.13 Beta3 for YingYongBao 2017-07-09 11:28:28 +08:00
hyb1996
a660a98539 fix lag when click shortcut of script with dialog 2017-07-09 10:08:47 +08:00
hyb1996
32e07c6951 fix hyb1996-guest/AutoJsIssueReport#5141 2017-07-09 08:32:54 +08:00
hyb1996
7c5a27a8d3 add script running repleatedly support, change min sdk version to 17 2017-07-08 22:31:31 +08:00
hyb1996
6888f88f77 support sublime text command save_to_phone 2017-07-08 21:04:08 +08:00
hyb1996
8b0fe61c87 release 2.0.13 Beta2 2017-07-07 10:56:33 +08:00
hyb1996
775d6eca81 try fixing hyb1996-guest/AutoJsIssueReport#4720 2017-07-05 19:13:00 +08:00
hyb1996
d72d9c0413 fix hyb1996-guest//AutoJsIssueReport#4781, hyb1996-guest//AutoJsIssueReport#4793 2017-07-05 18:55:27 +08:00
hyb1996
f627432b80 replace view binding with aa, change script list to card view, enable minify 2017-07-03 14:53:55 +08:00
hyb1996
e97744d7f2 release 2.0.13Beta 2017-07-02 16:41:33 +08:00
hyb1996
306cf4c5d3 fix flash when launch a shortcut 2017-07-02 15:28:30 +08:00
hyb1996
c08363f033 make autojs module more independent 2017-07-01 15:09:01 +08:00
hyb1996
a363d140da fix exception when captureScreen called frequently 2017-06-28 15:21:03 +08:00
hyb1996
b33ec58e57 add #197 : start accessibility settings automatically 2017-06-24 20:48:13 +08:00
hyb1996
7699dc66a1 fix hyb1996-guest/AutoJsIssueReport#3451 hyb1996-guest/AutoJsIssueReport#3455 2017-06-20 23:41:49 +08:00
hyb1996
5a79bb577f release 2.0.12 Beta 2017-05-29 20:56:12 +08:00
hyb1996
7c88e578fe #19636} 2017-05-27 14:49:25 +08:00
hyb1996
302879333a add screen capture and color searching 2017-05-22 15:41:11 +08:00
hyb1996
b3fad201f7 fix hyb1996-guest/AutoJsIssueReport#1341 and replace JavaAdapter to ProxyObject in ui module to avoid compilation to class file 2017-05-17 14:48:28 +08:00
hyb1996
c4ec951a10 random click and gesture for android 7.0+!!! 2017-05-16 21:40:23 +08:00
hyb1996
ec98d75d3b remove multi-line string support for my stupid coding 2017-05-15 22:03:49 +08:00
hyb1996
91a1cb77d8 add multi-line string support 2017-05-15 19:47:58 +08:00
hyb1996
8ac9a518d7 add some ui attributes, remove node-android, update rhino to 1.8preview 2017-05-15 16:18:42 +08:00
hyb1996
a8a83dd2b5 improve ui module 2017-05-15 01:12:19 +08:00
hyb1996
6102f6e8fe fix sublime plugin issue with ui mode, object prototype pollution, try for ui api 2017-05-14 23:34:38 +08:00
hyb1996
36ef8c8396 just to save some fucking works 2017-05-14 19:46:51 +08:00
hyb1996
a4c6eb6cee imporve script execution of tasker plugin, fix sublime plugin large file issue 2017-05-14 13:11:30 +08:00
hyb1996
76d9319ec8 Update readme and license 2017-05-12 17:46:42 +08:00
hyb1996
b12e26b797 add sublime text plugin support 2017-05-11 17:06:37 +08:00
hyb1996
39c1444b0f add some scripts 2017-05-10 20:48:26 +08:00
hyb1996
1222e00adc optimize memory and image size. remove unnecessary language file 2017-05-10 15:42:58 +08:00
hyb1996
e5ade55519 add samples, fix require() 2017-05-09 20:01:04 +08:00
hyb1996
956f064737 modularize init script 2017-05-09 15:47:31 +08:00
hyb1996
08654b8f90 add console.rawInput, app.intent 2017-05-09 00:58:16 +08:00
hyb1996
0349c113ca add dialogs, fix code completion 2017-05-08 15:22:01 +08:00
hyb1996
472bd46b87 Rename and refactor autojs to support future developing of other script language 2017-05-07 23:32:53 +08:00
hyb1996
840bb56528 fix hyb1996-guest/AutoJsIssueReport#474 2017-05-06 21:42:18 +08:00
hyb1996
ed2ebe1599 Fix fucking issue #193 by removing recycle in finalize 2017-05-06 15:29:44 +08:00
hyb1996
163f38760e Fix and improve root rocording 2017-05-05 00:35:45 +08:00
hyb1996
7473d7c6a5 Add floating console support 2017-05-03 01:20:29 +08:00
hyb1996
68706fbd98 Dying... 2017-05-02 11:27:04 +08:00
hyb1996
37b5108637 Dying again 2017-04-30 18:20:59 +08:00
hyb1996
51349356a7 Commit Test 2017-04-29 21:23:45 +08:00
hyb1996
6829c0659e Dying 2017-04-26 13:48:59 +08:00
hyb1996
0e980c2e6a Attempt to fix selector memeory leak. Add update checker 2017-04-09 14:02:57 +08:00
hyb1996
6844eb9841 Change the way of action pefrom(no longer wait for event), add loading jar file support, fix simple action memory leak 2017-04-05 22:35:31 +08:00
hyb1996
b762ceb60b Add: Task manager 2017-04-04 00:26:14 +08:00
hyb1996
59811a4a5d Added Script file chooser. Fixed the issue that background image setting not working 2017-04-03 16:28:07 +08:00
hyb1996
bfabef6a0e Refactor: split into modules autojs, common, app and automator 2017-04-03 00:43:15 +08:00
hyb1996
e7500e6e21 Add: tasker plugin support, injectable webview 2017-04-02 12:41:00 +08:00