There may be a limit in terms of how long TWX waits before processing the next line in a script, such that you can have two successive Send commands where the second command may be 'ignored' if the first sent 'burst' is too long.
I have a couple scripts that generate Macro strings that can be hundreds, if not thousands, of characters in length and those scripts send it all in one Send-command. In cases similar to large Macro-string-bursts its necessary to add a 'waitstate' to the end, otherwise TWX will carry on with the script while the large burst is still being sent.
What I usually do is:
Code:
setVar $i 0
setVar $s ""
while ($i <= 20000)
setVar $s ($s & " t n t 1* q l 2* t n l 1* q l 3* ")
add $i 1
end
send ($s & "'Done Moving Stuff*")
waitfor "Done Moving Stuff"
If I'm not mistaken... Without the Waitfor, twx would send the burst and probably only wait a very short amount of time and then continue on with the rest of the script.
When using a SS-msg is not a preferable 'waitstate', I sometime use:
Code:
send ($s & "^Q")
waitfor ": ENDINTERROG"