Delay [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Delay
Purpose
Pauses for a specified period of time before proceeding with the next
operation.
Default Syntax
None
Since default keys are not assigned to this command, you may either
assign a key to the command using the Assign Key command, or you can
access the command by using the command Execute Editor Command. Refer to
reference information on these commands elsewhere in this manual for
descriptions about command usage.
Description
This command causes HP EDIT to pause for n seconds, where n represents a
count specified before executing the command. The default value of n is
1. The command is primarily useful when executed within a macro. When
executed within a macro in conjunction with the Display Message command,
the Delay command extends the length of time that the message is
displayed on the message line.
To construct a macro that displays a message during macro execution, you
would first incorporate the Display Message command and accompanying
macro message text within the macro. You can then incorporate the Delay
command to lengthen the amount of time that the message is displayed.
Procedure
To execute a macro that uses this command:
1. Construct the macro in accordance with proper macro syntax. Refer
to the Define Macro command for information about constructing
macros.
2. Insert this command by typing xEdelay^m after the macro message
text, where x is the count representing the desired delay in
seconds.
3. Execute the macro by pressing the m key. HP EDIT displays Specify
macroname on the message line.
4. Type the macro name as specified in the macro. HP EDIT executes
the macro and displays the macro message text on the message line
during macro execution for the specified length of time.
Example
To construct and execute macro P, which displays the message BEGINNING
SECOND PASS...for three seconds:
1. Assign the q key to the Delay command, using the Assign Key (K)
command.
2. Insert a new line in text by executing the Insert Line (I)
command.
3. Type the following text:
mP=$"Beginning second pass...^mqqq
4. Press / and Return to exit Text Entry mode.
5. Execute the Define Macro (z) command. HP EDIT deletes the macro
from the screen and displays the following message:
Macro defined
6. Issue the Execute Macro (m) command. HP EDIT displays the
following message:
Specify macroname
7. Press the P key. HP EDIT displays the following message for three
seconds:
Beginning second pass
Related Commands
Display Message
MPE/iX 5.0 Documentation