This is a set of step-by-step instructions which demonstrates how to use X-Designer Replay to record interaction with the xdconfig tool and then replay those actions.
This runs xdconfig and displays the X-Designer Replay dialog alongside it.
This creates an "unnamed" script.
The name of the script is changed accordingly.
This brings up a dialog showing a log of all the actions for the session.
Perform the following actions:
The name is added to the "Families" list.
The Families list now contains two entries.
The "Widget Classes" dialog is displayed.
The name is added to the "Widget classes" list.
This displays the Widget dialog.
This displays the Stop list dialog.
The "Save changes" warning dialog is displayed.
The "Record" and "Rewind" buttons become sensitive. All the other buttons become insensitive.
A file has been created containing a record of your actions. This file can be replayed at any time. For the purposes of this tutorial, we are going to play it back straight away.
The record, insert, play and single step buttons become sensitive.
You can now see what you have recorded. Using the fast/slow slider in the X-Designer Replay dialog, you can change the rate at which your session plays back.
Using this button you can single step through each command in the record script. This is more informative if you have the Monitor window on the screen. As each step is replayed it is printed in the Monitor window.
Select "No" when you are asked if you wish to save the changes. The record session ends when the application exits. The X-Designer Replay dialog is also dismissed. This is because the dialog is, in effect, part of the xdconfig program.
in ApplicationShell push Text type one key Return doubleclick Text type two key Return push ItemsList(`one',1) push family_selection.OK in entity_dialog push Text#5 type WidgetOne push widgetlist_selection.OK doubleclick ItemsList#5(`WidgetOne',1) in widgetedit_dialog push widgetedit_closeb in entity_dialog push widgetlist_selection.widgetlist_quitb in ApplicationShell cascade family_editb select family_stop_b in stop_list_shell push stop_pulldown_menu push stop_text_field push stop_apply push stop_close in ApplicationShell cascade family_fileb select family_newb in savechanges_dialog push savechanges_messagebox.Cancel
See also: