I just noticed something today about getBuffer(). In order for the function to store the data from the last command and immediately use the data, you need to use the waitFor function before trying to use the data.

Example:
Code:
void main(string args) {
	send("smile");
	echo(getBuffer());
}
The above code would echo nothing in the game window.

While, the code below, containing the waitFor, will echo the buffer.

Code:
void main(string args) {
	send("smile");
	waitFor(" ");
	echo(getBuffer());
}
I just thought I'd post this in case anyone else got confused as to why the buffer was empty.

[Edited on 10-1-2004 by Jonty]