- 1.The concept is that dark red command(You can see the color distinction in the drop-down list of
MODE
) can generate events,and others receive events.Command can bound to event and executed according to whether that is established or not. - 2.After the
Event
is established, it will always exist.You can useRemoveEvent
to invalidate it - 3.
Event
name can be named freely
Example:
MODE |
EVENT |
ACTION |
NOTE |
---|---|---|---|
Match |
Event1 |
s.png |
generate event |
Click |
Event1 |
Left |
receive event |
Click |
(Event1) |
Right |
reverse |
RemoveEvent |
Event1 |
invalidate it | |
RemoveEvent |
Event1,Event2 |
can multiple | |
RemoveEvent |
empty means all |
Explain what to input in the
ACTION
column
If the current time exceeds a specific time,the Event establish.Will only be established once a day.If the script is launched past a specific time, it will not take effect.
- Action
- @Time
Time: HH:mm:ss
- Example
AlarmClock
13:30:00
Mouse click
- Action
- @Action
Action: use
Left
,Right
,Left_Down
,Left_Up
,Right_Down
,Right_Up
- Example
Click
Left_Down
To do the math
- Action
- @Formulas
Formulas: like
x = 0
,x = x + 1
,operators can use+
-
*
/
- Example
Calc
x = 0
Calc
y = 0
Calc
x = x + y*2 + 1
Calc
text = "DOC" + x
Calc
y = y + random(0,10)
You can use these values outside of Calc by entering them like
{value}
. Example:
MODE | ACTION |
---|---|
Move |
{x},{y} |
WriteClipboard |
{text} |
Check values.If it is true, the Event establish,otherwise is not.
- Action
- @Formulas
Formulas: like
x > 1
.operators can use==
!=
(equality),<
>
>=
(relational),&&
(conditional AND),||
(conditional OR)
- Example
Calc-Check
x == 0
Calc-Check
y > 5 || x > 5
Clear marked on the screen
-
Action
- Empty
-
Example
Clear Screen
- Action
- @Time
Time: ms,1000 ms=1 second
- Example
Delay
1000
Go to number of line
- Action
- @Number
Number: number of line
- Example
Goto
20
Jump number of line
- Action
- @Number
Number: number of line
- Example
Jump
-3
Keyboard input
- Action
- @Key
- @Key,@Type
- @Key,@Time
Key: key in value , can use
A
~Z
,0
~9
,F1
~F12
,WIN
......
Type:Down
orUp
Time: ms,1000 ms=1 second , the time keydown to keyup
- Example
key
A,Down
key
B,500
key
LEFT
Repeatedly execute
- Action
- @Times
- Empty
Times: run several times
Empty: always running
- Example
Loop
5
Move to screen point
- Action
- @X,@Y
- Empty
X: screen point x value
Y: screen point y value
Empty: If setEvent
,it can use image matching point
- Example
Move
500,600
Move
0,0
Modifier key
- Action
- @Key
Key: input like
modifier key|key
,modifier key useCTRL
,ALT
,SHIFT
...
- Example
ModifierKey
CTRL|V
ModifierKey
WIN,SHIFT|S
Match and get image point
Match RGB: If your target needs to be distinguished by color,using this will have a better effect
Match&Draw: will be marked on the screen,just for test.(Not recommended to use, because it will affect the screen.)
- Action
- @Path
- @Path,@Threshold
- @Path,@X,@Y,@Width,@Height
- @Path,@X,@Y,@Width,@Height,@Threshold
Path: image file path,use .png format
Threshold:0.8
~1.0
(def 0.9)
X: start point x value
Y: start point y value
- Example
Match
apple.png
Match
apple.png,500,500,1420,580
If you want invalidate
Event
, use this.
- Action
- Empty
- @Type
Empty: direct invalidate it
Type: can usePUSH
,then remove the first data for event.The event will be invalidated if all the data is removed
- Example
RemoveEvent
RemoveEvent
PUSH
- Action
- @X,@Y
X: move x value
Y: move y value
- Example
Offset
+10,-20
Offset
100,0
Play sound
- Action
- @Path
- Empty
Path: sound file path,use .wav format
Empty: default sound
- Example
PlaySound
sound.wav
Random trigger Event
- Action
- @Percentage
Percentage: 1~100 %,1 = 1% chance trigger Event
- Example
RandomTrigger
33
- Action
- @Path
Path: .exe Path
- Example
Run .exe
C:\Users\Metro.exe
Run .exe
C:\Program Files (x86)\......\chrome.exe -incognito
Run .exe
CMD.exe /c C:\test.bat
Keyboard input(for Game)
- Action
- @Key
Key: key value , can use
A
~Z
,0
~9
,F1
~F12
...
- Example
SendKeyDown
RIGHT
SendKeyUp
RIGHT
Set text data to clipboard.
Can be used with CTRL+V for text input.
- Action
- @Text
Text: text data to clipboard
- Example
WriteClipboard
Hello!