I want to record a keyboard typing as though a human is typing

0

I am recording screencasts on OSX and Linux, and I am trying to set up some way to speed up recording of typing long blocks of code.

I need a way to take scripts or macros that I generate, and have it type during the recording, for smooth perfect typing. I also need to be able to control the speed - so sometimes typing is quick and sometimes it slows down (to help the viewer see what's going on).

I was thinking of generating vim macros, but they execute very fast and I can't figure out how to control the speed. Another option is keyboard macros (keyboard maestro, etc), but I can't find one that I can easily write scripts/macros for (they all seem to be GUI-focused).

OR: Is there a way for me to easily do this in post-production (video editing)? My current solution is to actually edit out the mistakes and typeovers. It produces a very nice video, but takes hours to edit a few minutes of typing.

willoller

Posted 2015-10-18T22:45:14.503

Reputation: 75

Question was closed 2015-10-23T17:55:57.700

1Have you ever played with AutoIT? It have the ability to type keyboard strokes, set sleep time between each, etc. – Pimp Juice IT – 2015-10-18T23:38:31.167

That looks like it could work, but I should have mentioned I'm only on OSX and Linux. – willoller – 2015-10-19T02:50:19.930

Answers

2

As you have mentioned that you need Linux and OsX supported software/packages, here are some:

  1. Python's automac package: Automated Testing on Mac - test GUI applications
  2. Appium for mac: Proof of concept for automating a mac app with JSON wire protocol
  3. Sikuli Script: (Cross Platform) automates anything you see on the screen. It uses image recognition to identify and control GUI components. It is useful when there is no easy access to a GUI's internal or source code
  4. Autopy: A simple, cross-platform GUI automation toolkit for Python

In case, you want one for Windows, then AutoIT should be your choice.

Dawny33

Posted 2015-10-18T22:45:14.503

Reputation: 178

1

If you are on the shell I would suggest playitagainsam - it supports 'fake typing' - meaning you press any key and it will be replaced by the correct one.

For simplicity script and scriptreplay might also be options.

bdecaf

Posted 2015-10-18T22:45:14.503

Reputation: 458