NirCmd Command Reference - loop

loop [Number of Times] [Number of Milliseconds] [NirCmd Command]
Execute a NirCmd mutiple times, in a loop. Between the command executions, NirCmd will wait the number of Milliseconds specified in the second parameter. You can use the ~%loopcount% variable to specify the call number in the loop (from 1 to n).

Examples:
loop 3 2000 speak text "Call Number ~%loopcount%"
loop 10 60000 savescreenshot c:\temp\scr~%loopcount%.png

Other commands:
abortshutdownbeepcdromchangesysvolumechangesysvolume2
clipboardcloseprocesscmdshortcutcmdshortcutkeycmdwait
convertimageconvertimagesdlgdlganyemptybin
execexec2execmdexitwinfilldelete
gachibernateinetdialinfoboxinidelsec
inidelvalinisetvalinitshutdownkillprocesslockws
loopmemdumpmonitormovecursormultiremote
mutesysvolumeparamsfileqboxqboxcomqboxcomtop
qboxtoprasdialrasdialdlgrashangupregdelkey
regdelvalregeditregsetvalregsvrremote
returnvalsavescreenshotsavescreenshotfullsavescreenshotwinscreensaver
scriptsendkeysendmouseservicesetcursor
setcursorwinsetdialuplogonsetdisplaysetfilefoldertimesetfiletime
setprocessaffinitysetprocessprioritysetsysvolumesetsysvolume2setvolume
shellcopyshellrefreshshexecshortcutspeak
standbystdbeepsysrefreshurlshortcutwait
waitprocesswin

NirCmd Web Page

Download NirCmd

NirSoft Web Site