Automatically controlling the mouse and keyboard for GUI scripting?



Can it be done in Linux, and how is it done?


.