Zoomed Image

AMSX Scripting Language - Command : sleep

Summary

Pause script execution for a specified number of milliseconds

Description

Suspends the current script thread for the given duration. Useful for rate-limiting API calls, waiting for an external process to complete, or introducing a delay between retry attempts.

Parameters

ParameterDescription
cmdNumber of milliseconds to sleep

Syntax


Sleep "Number of milliseconds to sleep"

Return to the AMSX Command Reference