summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwordmeasure17
1 files changed, 12 insertions, 5 deletions
diff --git a/wordmeasure b/wordmeasure
index 3318149..e3b16a9 100755
--- a/wordmeasure
+++ b/wordmeasure
@@ -7,6 +7,9 @@ do_smile=1
do_record=1
do_scroll=1
+record_fps=30
+record_quality=63
+
CLICKAT=./clickat
CMD="bash -c"
@@ -65,7 +68,8 @@ $CMD /sbin/ifconfig > $fname.ifconfig
date >> $fname.ifconfig
echo_jiffies >> $fname.ifconfig
if [ $do_record -eq 1 ] ; then
- recordmydesktop --windowid $wid -x $xoffset -y $((yoffset+4)) --width 800 --height 592 --no-sound --overwrite --full-shots --v_quality 0 --output $fname.ogv &
+ recordmydesktop --windowid $wid -x $xoffset -y $((yoffset+4)) --width 800 --height 592 --no-sound --overwrite --fps $record_fps --v_quality $record_quality --output $fname.ogv &
+# Skipping out on --full-shots
record_pid=$!
fi
@@ -115,10 +119,13 @@ $CLICKAT click --position $((284+xoffset))x$((104+yoffset))
$CLICKAT key --delay-between-keystrokes 100 --keystroke 'n'
./msleep 1000
$CLICKAT click --position $((739+xoffset))x$((132+yoffset))
-./msleep 200
-$CLICKAT click --position $((739+xoffset))x$((238+yoffset))
-./msleep 200
-$CLICKAT key --delay-between-keystrokes 100 --keystroke '4\r'
+./msleep 1000
+$CLICKAT click --position $((739+xoffset))x$((230+yoffset))
+./msleep 1000
+# We repeat the click; not entirely sure why we need to do this.
+$CLICKAT click --position $((739+xoffset))x$((230+yoffset))
+./msleep 1000
+$CLICKAT key --delay-between-keystrokes 200 --keystroke '4\r'
./msleep 1000
# Draw a smile