forked from clearw5/Auto.js
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hyb1996
committed
Jan 23, 2019
1 parent
3fecfa9
commit 0d88a12
Showing
6 changed files
with
303 additions
and
302 deletions.
There are no files selected for viewing
Binary file not shown.
23 changes: 23 additions & 0 deletions
23
app/src/main/java/org/autojs/autojs/autojs/api/timing/TimedTasks.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.autojs.autojs.autojs.api.timing | ||
|
||
import com.stardust.autojs.execution.ExecutionConfig | ||
import org.autojs.autojs.timing.TimedTask | ||
import org.autojs.autojs.timing.TimedTaskManager | ||
import org.joda.time.LocalDateTime | ||
import org.joda.time.LocalTime | ||
|
||
object TimedTasks { | ||
|
||
fun daily(path: String, hour: Int, minute: Int) { | ||
TimedTaskManager.getInstance().addTask(TimedTask.dailyTask(LocalTime(hour, minute), path, ExecutionConfig())) | ||
} | ||
|
||
fun disposable(path: String, millis: Long) { | ||
TimedTaskManager.getInstance().addTask(TimedTask.disposableTask(LocalDateTime(millis), path, ExecutionConfig())) | ||
} | ||
|
||
fun weekly(path: String, millis: Long) { | ||
//TimedTaskManager.getInstance().addTask(TimedTask.weeklyTask(LocalDateTime(millis), path, ExecutionConfig())) | ||
} | ||
|
||
} |
281 changes: 0 additions & 281 deletions
281
autojs/src/main/java/com/stardust/autojs/core/accessibility/SimpleActionAutomator.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.