Programatically (or manually) simulate keyboard input or mouse activity using X11's XTEST extension.