SourcePoint Intel Help

Table of Contents

pause

Suspend macro execution until a key is pressed.

Syntax

[result =] pause

Where:

result

specifies a debug variable to which the function return value is assigned. If result is not specified, the return value is displayed on the next line of the screen.

Discussion

Use the pause command to suspend macro execution until a key is pressed.ย 

Note: The following keys will not complete a pause:ย  F1-F12, Page up, Page down, Num Lock, Caps Lock, Scroll Lock, Shift, Ctrl, Alt.

Example 1

To delay execution of a macro and save the character entered:

Command input:

puts("waiting for user input:\n")

define char ch = pause

Result:

waiting for user input:

Example 2

To delay execution of a macro without saving the character entered:

Command input:

puts("press any key to continue:\n")

pause

Result:

press any key to continue:

Related Topics: