Name AppendToNotepad
Type Method
Summary Appends text to a notepad window
Prototype boolean AppendToNotepad(BSTR Title, BSTR Contents);
Description Appends the text to a notepad window of the given title. If no such window exists, it is created.

The function "AppendToNotepad" does not activate (bring to the front) the notepad window. However the function "ActivateNotepad" can be used to do that.

You can use world.activate to activate the world itself (eg. you might want to do that after creating a notepad window).
VBscript example
world.AppendToNotepad "Nick's window", "More stuff" + vbcrlf
Jscript example
world.AppendToNotepad("Nick's window", "More stuff\r\n");
PerlScript example
$world->AppendToNotepad("Nick's window", "More stuff\r\n");
Returns 0: Could not do it.
1: Appended OK

See also ...