Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I was wondering if there was any software out there that could record mouse/keyboard input and allow you to play back the input that was made?

I've tried using Automator but for some reason it's not picking up all my input and when I play it back it does the wrong thing and gets into a mess. I've also tried using Systems Events in AppleScript but I can't get the "click" command to work at all.

Thanks!

share|improve this question
    
To get the clicks working in applescript you will need to do GUI scripting. It can be tedious, but if you don't have that much to do it can be worth looking at. –  Kassym Dorsel Nov 18 '11 at 20:18
    
Yea I tried to have a look at doing that (I downloaded UIBrowser to get the GUI element hierarchy) but I couldn't get it to do anything. –  James Bedford Nov 22 '11 at 0:16
    
What are you trying to do exactly. I could look into it and see how hard it would be. –  Kassym Dorsel Nov 22 '11 at 0:17
    
I'm writing an app, and I want to test it regularly by running a script that interacts with the user interface in a particular, recorded way. That way I can be more sure that I haven't broken anything when I make a change. –  James Bedford Nov 22 '11 at 0:32
    
@JamesBedford I think you can play with Automator, it's built into the OS, under Utilities. I think it can replay Keyboard and Mouse event if you record them into a macro. –  Shane Hsu Jan 8 '13 at 19:31
add comment

3 Answers 3

Keyboard Maestro supports both creating macros by recording them and recording and playing back temporary macros:

share|improve this answer
add comment
up vote 2 down vote accepted

I've tried out a whole ton of software for doing this, but Sikuli is now by far the best automation software I've come across.

It uses computer vision to automate any part of the GUI. For example, you can just take a small screenshot of the button you want to click on and paste it into your script and Sikuli will click on it. It also provides a series of really easy to use functions for automating keyboard input and mouse clicks. Plus, it uses Jython for its automation scripts so you can use Python or Java in your scripts too!

Really recommended. Here's a link to their homepage.

share|improve this answer
add comment

This worked for me Auto Macro Recorder

I was searching for hours, and this one finally did the job for me.

share|improve this answer
    
Welcome to Ask Different! Answers on Ask Different need to be more than just a link. It's okay to include a link, but please summarize or excerpt it in the answer. The idea is to make the answer stand alone. Please take a look at the FAQs for more info. –  gentmatt Sep 26 '12 at 12:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.