[SOLVED] Add a delay before executing the next command
Published: July 15, 2019 - 4:18 PM
Hello,
I'm running several commands within a packet, but I'd like a two-second delay between each one.
I tried the `time.sleep(2)` , but when I run the code (via PyScripter), I get an error message:
`NameError: global name 'time' is not defined`
. How can I add a delay differently?
Thank you.
WAPT version used: 1.4.3.2
I'm running several commands within a packet, but I'd like a two-second delay between each one.
I tried the `time.sleep(2)` , but when I run the code (via PyScripter), I get an error message:
`NameError: global name 'time' is not defined`
. How can I add a delay differently?
Thank you.
WAPT version used: 1.4.3.2