Repeater is a tool specially designed for recording and playback user actions such as mouse movements and clicks, standard and hardware keystrokes, vertical and horizontal scrolling & zooming.
Not all apps can be scripted at all, but Repeater can help you anyway.
Furthermore, you can integrate Repeater with popular scripting languages to dramatically improve their possibilities.