Top Navigational Bar

Macros - {PAUSE} Will Halt All Activities In
DocumentID: 651953
Revision Date: 29-Feb-96 8:29:11 PM

The information in this document applies to:
WordPerfect® 5.1 for DOS

Problem

Solutions: When using the commands {PAUSE}, {PAUSE KEY}, {INPUT}, {KEYBOARD}, or any other keyboard input command in a macro, remember they will pause all other activities that WordPerfect may be doing. In one circumstance, a customer was using the {PAUSE} command to print all the odd pages individually (using the 11/06/89 release). The macro would pause and prompt them to turn their paper over and the press Enter to continue. This would not only halt the macro, but would halt the printing. Because of that, not all of the odd pages would print, and the paper could not be turned over to get an accurate double sided print.

To get around this, the {WHILE} command was used prior to the {PAUSE} command. This is an example of how this would be used:

{WHILE}{SYSTEM}Print~&128~
{;}While printing is in progress~
{WAIT}100~
{;}Let WordPerfect Print~
{END WHILE}
{;}End While Loop~
{BELL}
{PROMPT}Turn paper over and press : ~
{PAUSE}

This will cause the macro to wait until the first half of the printing process is done before the {PAUSE} command is executed. The {WAIT}100~ command is important because it allows the CPU to have some time to print. If the command were not there, WP would be so busy executing the empty {WHILE} loop, that there would be no time for printing to take place.

Answer:

Details:


Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER.