You get the time using the VBScript time functions/variables/etc.
"Time" contains the current system time (Now contains date/time).
However, then you have to deal with seconds etc. You can use Hour() and Minute() to return those (with a time in parenthesis). I think that would be your best bet.
So, Hour(Now) would be the hour and Minute(Now) would be the minute.
You'd have to change to send to script, and then script this out and then send it back to the output.
While I'm at it I'm having some problems with the MoveNotepadWindow command It doesn't seem to be working here is what I have MoveNotepadWindow "CHANNELS" 1, 430, 1020, 158 but whenever it matches on it and tries that it tells me
Error number: -2146827263
Event: Execution of line 2 column 32
Description: Expected end of statement
Line in error:
MoveNotepadWindow ("CHANNELS") 1, 430, 1020, 158
Called by: Immediate execution
Are the multiple lines serverside or just the client wrapping?
If they're clientside, you don't need to do anything differently. If they're serverside, you get you do some fun creative things (however, It's been done before) to determine when the line ends.
As for your move notepad, you'll need to seperate the notepad window name and the positions with a comma:
long MoveNotepadWindow(BSTR Title, long Left, long Top, long Width, long Height);
So, your example would be:
MoveNotepadWindow "CHANNELS", 1, 430, 1020, 158
Ah, I see that nick doesn't have that in his example. That's a typo on his part. There really should be that comma (and you don't put parenthesis).
And for linebreaks, you'll use VBCrLf (VisualBasic Carriage Return Line Feed) you just append it to the end of your strings like this:
AppendToNotepad "window", "somestuff to append" & VBCrLf
would append "somestuff to append" and then a newline (so your next append would end up on the next line).
Oh, and it's not case sensitive.