Skip to content

Commit c715937

Browse files
committed
update README.md
1 parent 2ec2af0 commit c715937

1 file changed

Lines changed: 26 additions & 3 deletions

File tree

README.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,32 @@
11
# AutoTask
2-
3-
This is a software that allows you to customize your PC's startup plans and do some consistent works.
2+
This is a software that allows you to customize your PC's startup plans and do some constant works.
43

54
## How to config
6-
Waiting for writing......
5+
Currently, it support the constant time-slot tasks.
6+
Your config file should be named as `rule.conf`.
7+
All your config should be included in `[]`.
8+
Each rule must have $4$ parameters:`Command`, `Date`, `Time`, `Sleep`.
9+
When you declare a parameter in the first level [], that parameter will be given to **all rules**.
10+
The following is the syntax for declaring each parameter:
11+
```
12+
//Command (call cmd.exe to run)
13+
Command{commmand1,command2}
14+
15+
//Date (Sun,Mon,Tue,Wed,Thu,Fri,Sat)
16+
Date{Mon,Fri,Sat}
17+
18+
//Time (xx:xx-xx:xx)
19+
Time{7:00-12:00,14:00-18:00}
20+
21+
//Sleep (ms)
22+
Sleep{3000}
23+
```
24+
Here is a simply full file sample:
25+
```
26+
//rule.conf
27+
[Command{taskkill /f /im 1.exe},[Date{Mon},Time{7:00-9:00}],[Date{Tue,Wed,Thu},Time{9:00-11:00}]]
28+
```
29+
It means executing the command “taskkill /f /im 1.exe” on Monday from 7:00 am to 9:00 am and on Tuesday, Wednesday and Thursday from 9:00 am to 11:00 am.
730

831
## How to build
932
This is a C++ project, please config a compiler in your environment variables.

0 commit comments

Comments
 (0)