X-Designer Replay Command Syntax - Importing User-Defined Commands

X-Designer Replay Command Syntax - Importing User-Defined Commands


Keywords

Synopsis

    import module
    user command text

Inputs

Description

The command set of X-Designer Replay is intended for replaying user actions and for checking the state of an application with respect to its widget hierarchy and its resource settings. There is nothing to stop you adding your own commands to meet your own needs. For example:

import allows you to load a module of your own commands into a script. Once the module has been loaded the commands in it can be invoked using the user command. You can import as many modules as you wish.

Example

    import mymodule
    in ApplicationShell
	cascade file_menu
	    select fm_print
    in print_dialog
	user myscreendumper print_dialog

Notes

The shell and setenv interface is the preferred route if the actions you need to perform do not involve extensive access to the widget hierarchy, or inspection of the internals of your program. In the latter case, see Adding Your Own X-Designer Replay Commands.

See also: