A Program to simulate keyboard presses

user1851200 picture user1851200 · Nov 25, 2012 · Viewed 19.8k times · Source

I am new to programming, I want to write a program (just for self-use) that will repeat a preset set of keyboard actions every time it is run, can anyone give me some advice? are there any applications that can do this already?

Answer

Dave Snigier picture Dave Snigier · Nov 25, 2012

There are a pretty good variety of programs out there that do what you're looking for. If you're on windows, autoHotKey will set you right. On Mac, it's automator (built-in) or Keyboard Maestro to the rescue.

These use a domain specific language for creating macros, which will be much simpler than attempting something yourself from scratch in a more general purpose language.