How do I get the title of the print preview window. I can get the window id with the xwininfo command. I want to pass the window name to a program called xvkbd. This program is a virtual keyboard that can send keystrokes to an application window. You have to pas it the window name or id. Since the id changes I need to send it the name. Any suggestions would be welcomed.