Software to record and playback mouse movement/clicks and keyboard presses? 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!
Keyboard Maestro supports both creating macros by recording them and recording and playing back temporary macros: