Sleep

Demonstrates how to pause for a couple of seconds.

Remarks

This example illustrates how to pause for approximately 5 seconds, providing enough time for FLY! to start up.

Code

 local int PID, int Success

 PID = RunTask("fly", "", "", Null)
 call Sleep(5)
 Success = KillTask( PID )

 Print "Task killed? ", Success

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.