Example: lr.peek_events

In the following example, the output messages indicate when the script begins and finishes to look for events.

lr.output_message("About to check for events. Pauses can be intercepted.");

lr.peek_events();

lr.output_message("Finished checking for events or pauses.");