Sending Extra Line After Script is Executed

Posted by C on Mon 21 Jan 2002 12:46 PM — 2 posts, 13,830 views.

#0
Hey All,

I have a script which looks like this:

Sub Kt (thename, theoutput, thewildcards)
dim TargetName

TargetName = world.GetVariable ("target")

world.send "kill " + TargetName
end sub

This script works fine, the proble is, after it sends the output, an extra line is sent after it. Is there any way to stop this?

ie The script sends:

"Kill blah"
" "

Thanks
Australia Forum Administrator #1

There is a known problem with aliases doing that. It will be corrected in the next version. See Empty alias sends a newline.

There is also some discussion on the forum about it, see Mysterious empty line being sent from somewhere