Loading...
Loading...
Compare original and translation side by side
scr [flags] <command> [script]scr [flags] <command> [script]| Flag | Default | Purpose |
|---|---|---|
| | Output directory |
| | Screenshot interval |
| | Timeout |
| | ttyd port |
| | Verbose |
| 标志 | 默认值 | 用途 |
|---|---|---|
| | 输出目录 |
| | 截图间隔 |
| | 超时时间 |
| | ttyd 端口 |
| | 详细日志模式 |
| Action | Syntax | Behavior |
|---|---|---|
| Type | | Type text (50ms/char default); supports spaces + ASCII punctuation |
| Type speed | | Type with custom per-char delay |
| Sleep | | Pause for duration (ms or s) |
| Key | | Press key once |
| Key repeat | | Press key N times |
| Key delay | | Delay before keypress |
| Ctrl combo | | Send control character |
| 操作 | 语法格式 | 行为说明 |
|---|---|---|
| 输入文本 | | 输入文本(默认50ms/字符);支持空格和ASCII标点符号 |
| 自定义输入速度 | | 按自定义的单字符延迟输入文本 |
| 暂停 | | 暂停指定时长(支持ms或s单位) |
| 按键 | | 按下指定按键一次 |
| 重复按键 | | 按下指定按键N次 |
| 延迟按键 | | 延迟指定时长后按下按键 |
| Ctrl组合键 | | 发送控制字符 |
EnterTabEscapeSpaceBackspaceDeleteUpDownLeftRightHomeEndPageUpPageDownEnterTabEscapeSpaceBackspaceDeleteUpDownLeftRightHomeEndPageUpPageDownscr "ls -la"
scr "git status"
scr "cat README.md"scr "ls -la"
scr "git status"
scr "cat README.md"scr bash "Type 'echo hello' Enter"
scr bash "Type \"echo 'hello / ?'\" Enter"
scr bash "Type 'npm test' Enter Sleep 5s"scr bash "Type 'echo hello' Enter"
scr bash "Type \"echo 'hello / ?'\" Enter"
scr bash "Type 'npm test' Enter Sleep 5s"scr "seq 1 20 | fzf" "Down 5 Enter"
scr "gum choose A B C" "Down Down Enter"scr "seq 1 20 | fzf" "Down 5 Enter"
scr "gum choose A B C" "Down Down Enter"scr vim "Type 'i' Type 'Hello' Escape Type ':wq' Enter"
scr nano "Type 'Hello' Ctrl+X Type 'y' Enter"scr vim "Type 'i' Type 'Hello' Escape Type ':wq' Enter"
scr nano "Type 'Hello' Ctrl+X Type 'y' Enter"scr python3 "Type 'print(1+1)' Enter Sleep 500ms Ctrl+D"
scr node "Type '2+2' Enter Sleep 300ms Type '.exit' Enter"scr python3 "Type 'print(1+1)' Enter Sleep 500ms Ctrl+D"
scr node "Type '2+2' Enter Sleep 300ms Type '.exit' Enter"scr htop "Sleep 3s Ctrl+C"
scr -t 120s "npm run build" "Sleep 60s"scr htop "Sleep 3s Ctrl+C"
scr -t 120s "npm run build" "Sleep 60s"scr -o ./docs/images "git log --oneline"
scr -i 200ms bash "Type 'ls' Enter"scr -o ./docs/images "git log --oneline"
scr -i 200ms bash "Type 'ls' Enter"Error: parse script: position 23: expected quoted string after TypeError: unknown key 'Foo' at position 15; valid keys: Enter, Tab, ...Error: parse script: position 23: expected quoted string after TypeError: unknown key 'Foo' at position 15; valid keys: Enter, Tab, ...ttydttydttydttydttydttydscreenshot_001.pngscreenshot_002.png--intervalscreenshot_001.pngscreenshot_002.png