Previous Topic

Next Topic

Book Contents

Book Index

Home Page

How to do a Timed Delay During a Call

Efficient timed delays are useful for pausing execution while waiting for other tasks to complete. This feature was added with Active Call Center version 2.6.1.

Use the ACCTools.GeneralTools COM object. The GeneralTools object has a Sleep function that can be used for time delays. Follow the example shown in the sample code below to use this object:

Dim gTools
' Create the GeneralTools object
Set gTools = CreateObject("ACCTools.GeneralTools")
' Delay 1.5 seconds (1500 milliseconds).
' The only parameter is the number of milliseconds.
gTools.Sleep 1500

See Also

Auto Start/Stop and Scheduling Topics

How to Start Monitoring Automatically on Power-Up

How to Run Active Call Center as a Service

How to Schedule Monitoring and Dialing Tasks

How to Close the Call Monitor from an Inbound Call