I’m trying to send an executeShellCommand() repeating it.
I’ve tried something like
Code: Select all
dz.executeShellCommand(‘my command’).repeatAfterSec(1, 3)
How resolve?
Thanx in advance.
Fabrizio
Moderator: leecollings
Code: Select all
dz.executeShellCommand(‘my command’).repeatAfterSec(1, 3)
Option repeatAfterSec is not available for executeShellCommand.
Code: Select all
for delay = 0, 2 do
dz.executeShellCommand(‘my command’).afterSec(delay)
end
Code: Select all
for delay = 0, 9, 3 do
dz.executeShellCommand(‘my command’).afterSec(delay)
end
Yes, that will do the executeShellCommand after 0,3,6 and 9 secondsacaonweb wrote: ↑Wednesday 07 April 2021 16:21 and what if i'd like do 4 times every 3 seconds?Code: Select all
for delay = 0, 9, 3 do dz.executeShellCommand(‘my command’).afterSec(delay) end
Users browsing this forum: No registered users and 1 guest