xdotool lets you programatically (or manually) simulate keyboard input and mouse {activity;} move, resize, hide and show {windows;} modify window properties like the {title;} etc.

WWW: https://www.semicomplete.com/projects/xdotool/
