Taking Screen Dumps using X-Designer Replay

Taking Screen Dumps using X-Designer Replay


Taking screen dumps of an application can be a tortuous process - particularly if the application is constantly subject to change. X-Designer Replay allows you to create screen dumping scripts which can be reused at any time. And because the screen dumping process is now automatic, the cost of producing them falls dramatically.

A screen dumping script consists of a set of actions to prepare the application for the screen shot followed by non-application commands which actually do the screen shot. In the example script fragment shown below, a screen dump of the current_shell dialog is taken:

in current_shell
    setenv ID WindowFrame(current_shell)
    shell xwd -id $ID -out /tmp/current_shell.xwd

The last two lines are extra, non-application, commands. The first sets the variable ID to the current shell window, including its window decorations. The second uses the xwd command to capture the shell window and store it. Of course, you can substitute xwd with any other screen dumping command of your choice.

See also: