Skip to content

Commit

Permalink
minor fixes in screencast
Browse files Browse the repository at this point in the history
  • Loading branch information
njourdane committed Sep 23, 2022
1 parent 27c6412 commit e95cdda
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
5 changes: 3 additions & 2 deletions tools/autoscreencast.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def __init__(self, video_dir: str, prefix: str):
self.video_dir = op.abspath(video_dir)

ag.PAUSE = 0.2
file_name_prefix = f"{ prefix }_{ datetime.now().strftime('%Y-%m-%d_%H:%M:%S') }"
ag.MINIMUM_DURATION = 0.05
file_name_prefix = f"{ prefix }_{ datetime.now().strftime('%Y-%m-%d_%H-%M-%S') }"
self.video_path_prefix = op.join(self.video_dir, file_name_prefix)
self.proc = None
self.subtitles = ''
Expand All @@ -42,7 +43,7 @@ def type(self, text: str, slow=True):
ag.hotkey('ctrl', 'shift', 'v')
if slow:
base_delay = pause if char == ' ' else ag.MINIMUM_DURATION
sleep(base_delay * 0.25 + base_delay * 0.5 * random())
sleep(base_delay * (1 + 0.5 * random()))

ag.PAUSE = pause
ag.hotkey('enter')
Expand Down
24 changes: 16 additions & 8 deletions tools/screencast.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ __`ctrl+shift+t`__

clear

---
------

cq-server --help

Expand Down Expand Up @@ -116,41 +116,43 @@ __`ctrl+s, pgup, down, down, down, end`__

__`left, left, left, backspace, shift+4, ctrl+s`__

UI is updated as soon as a script is saved

------

__`backspace, shift+6, ctrl+s`__

UI is updated as soon as a script is saved

------

__`ctrl+tab, ctrl+s`__

if an other file is saved, UI switches the model

------

__`alt+f4, ctrl+w, pause`__

trying with VSCode

---

trying with VSCode

codium examples

------

__`pause, pause, win+pgup`__
__`pause, pause`__

-------

...using LivePreview extension

__`ctrl+shift+p`__

----
---

__`enter`__

---
----

http://127.0.0.1:5000

Expand Down Expand Up @@ -182,6 +184,10 @@ __`pause, ctrl+d, ctrl+c`__

building the showcase website

cq-server build --help

---

cq-server build examples docs

----------
Expand All @@ -206,6 +212,8 @@ __`enter`__

__`ctrl+w, pause`__

------

__`ctrl+d`__

---
Expand Down

0 comments on commit e95cdda

Please sign in to comment.