xreplay generates key and mouse events and sends them to a window on X11.

Download

README