-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommand-builtins.json
More file actions
27 lines (27 loc) · 3.06 KB
/
Copy pathcommand-builtins.json
File metadata and controls
27 lines (27 loc) · 3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[
{"id":"enterKey1","type":"PRESS_ENTER_KEY","regex":"(?i)\\benter\\(\\)"},
{"id":"writeText1","type":"WRITE_TEXT","regex":"(?i)\\bwriteText\\([\"']([^\"']+)[\"']\\)","groups":[1]},
{"id":"termux1","type":"TERMUX_COMMAND","regex":"(?i)\\bTermux\\(\\s*([\"'])((?:\\\\.|(?!\\1\\s*\\)).)*)\\1\\s*\\)","groups":[2]},
{"id":"clickBtn1","type":"CLICK_BUTTON","regex":"(?i)\\bclick\\([\"']([^\"']+)[\"']\\)","groups":[1]},
{"id":"longClickBtn1","type":"LONG_CLICK_BUTTON","regex":"(?i)\\blongClick\\([\"']([^\"']+)[\"']\\)","groups":[1]},
{"id":"tapCoords1","type":"TAP_COORDINATES","regex":"(?i)\\btapAtCoordinates\\(\\s*([\\d\\.%]+)\\s*,\\s*([\\d\\.%]+)\\s*\\)","groups":[1,2]},
{"id":"screenshot1","type":"TAKE_SCREENSHOT","regex":"(?i)\\btakeScreenshot\\(\\)"},
{"id":"completed1","type":"COMPLETED","regex":"(?i)\\bcompleted\\(\\)"},
{"id":"wait1","type":"WAIT","regex":"(?i)\\bWait\\(\\s*(\\d+)\\s*\\)","groups":[1]},
{"id":"home1","type":"PRESS_HOME","regex":"(?i)\\bhome\\(\\)"},
{"id":"back1","type":"PRESS_BACK","regex":"(?i)\\bback\\(\\)"},
{"id":"recentApps1","type":"SHOW_RECENT_APPS","regex":"(?i)\\brecentApps\\(\\)"},
{"id":"scrollDown1","type":"SCROLL_DOWN","regex":"(?i)\\bscrollDown\\(\\)"},
{"id":"scrollUp1","type":"SCROLL_UP","regex":"(?i)\\bscrollUp\\(\\)"},
{"id":"scrollLeft1","type":"SCROLL_LEFT","regex":"(?i)\\bscrollLeft\\(\\)"},
{"id":"scrollRight1","type":"SCROLL_RIGHT","regex":"(?i)\\bscrollRight\\(\\)"},
{"id":"scrollDownCoords","type":"SCROLL_DOWN_FROM_COORDINATES","regex":"(?i)\\bscrollDown\\s*\\(\\s*([\\d\\.%]+)\\s*,\\s*([\\d\\.%]+)\\s*,\\s*([\\d\\.%]+)\\s*,\\s*(\\d+)\\s*\\)","groups":[1,2,3,4]},
{"id":"scrollUpCoords","type":"SCROLL_UP_FROM_COORDINATES","regex":"(?i)\\bscrollUp\\s*\\(\\s*([\\d\\.%]+)\\s*,\\s*([\\d\\.%]+)\\s*,\\s*([\\d\\.%]+)\\s*,\\s*(\\d+)\\s*\\)","groups":[1,2,3,4]},
{"id":"scrollLeftCoords","type":"SCROLL_LEFT_FROM_COORDINATES","regex":"(?i)\\bscrollLeft\\s*\\(\\s*([\\d\\.%]+)\\s*,\\s*([\\d\\.%]+)\\s*,\\s*([\\d\\.%]+)\\s*,\\s*(\\d+)\\s*\\)","groups":[1,2,3,4]},
{"id":"scrollRightCoords","type":"SCROLL_RIGHT_FROM_COORDINATES","regex":"(?i)\\bscrollRight\\s*\\(\\s*([\\d\\.%]+)\\s*,\\s*([\\d\\.%]+)\\s*,\\s*([\\d\\.%]+)\\s*,\\s*(\\d+)\\s*\\)","groups":[1,2,3,4]},
{"id":"openApp1","type":"OPEN_APP","regex":"(?i)\\bopenApp\\([\"']([^\"']+)[\"']\\)","groups":[1]},
{"id":"pinch1","type":"PINCH_GESTURE","regex":"(?i)\\bpinch\\(\\s*([\\d\\.%]+)\\s*,\\s*([\\d\\.%]+)\\s*,\\s*([\\d\\.%]+)\\s*,\\s*([\\d\\.%]+)\\s*,\\s*(\\d+)\\s*\\)","groups":[1,2,3,4,5]},
{"id":"launchIntent1","type":"LAUNCH_INTENT","regex":"(?i)\\blaunchIntent\\([\"']([^\"']+)[\"']\\s*,\\s*[\"']([^\"']*)[\"']\\s*,\\s*[\"']([^\"']*)[\"']\\)","groups":[1,2,3]},
{"id":"copyToClipboard1","type":"COPY_TO_CLIPBOARD","regex":"(?i)\\bcopyToClipboard\\([\"']([^\"']*)[\"']\\)","groups":[1]},
{"id":"popUp1","type":"SHOW_POPUP","regex":"(?i)\\bpopUp\\([\"']([^\"']+)[\"']\\s*,\\s*[\"']([^\"']+)[\"'](?:\\s*,\\s*[\"']([^\"']+)[\"'])?(?:\\s*,\\s*[\"']([^\"']+)[\"'])?(?:\\s*,\\s*[\"']([^\"']+)[\"'])?(?:\\s*,\\s*[\"']([^\"']+)[\"'])?\\)","groups":[1,2,3,4,5,6]}
]