I know of the NotepadColour script, but i can't get it to work. I have multiple note pad windows recording different channels. i'd like each one to be color coordinated with the MUDs color screen. It records fine, then when i went to put in the colorific-ness it went to shit.
// --------------------------------------------
// Subroutine to be called to set up notepad windows.
//
// Calls from trigger
// sends string to a notepad window for clan talk only
//
// --------------------------------------------
function OnMYClanTalk (strAliasName, strOutput, wildcardsVB)
{
world.AppendToNotepad("Clan Talk", "\r\n" + strOutput + "\r\n");
NotepadColour ("Clan Talk", "#008000", "#000000");
}
And here's the error:
Error number: -2146823281
Event: Execution of line 587 column 3
Description: Object expected
Called by: Function/Sub: OnMYClanTalk called by trigger
Reason: processing trigger "clan2"
And i call myself a nerd and i screw up a 2 line script *sobs*
Can you find out from an editor which line is 587?
You may as well be consistent about whether or not you use the word "world".
Try:
AppendToNotepad("Clan Talk", "\r\n" + strOutput + "\r\n");
NotepadColour ("Clan Talk", "#008000", "#000000");
Also, I wouldn't do that colour for every trigger, that would tend to make the window flicker. Just do it once when you create the window (eg. on world startup).
Try typing each of those lines individually into the command window (prefixed by the script prefix, eg. "/") to see which one has the problem.
// --------------------------------------------
// Subroutine to be called to set up notepad windows.
//
// Calls from trigger
// sends %1 to a notepad window for clan talk only
//
// --------------------------------------------
function OnMYClanTalk (strAliasName, strOutput, wildcardsVB)
{
AppendToNotepad("Clan Talk", "\r\n" + strOutput + "\r\n");
NotepadColour ("Clan Talk", "#008000", "#000000");
}
the open bracket "{" (or is that a brace? ...i can never remember) is line 597. and there was no change on the change you made :( i'll try making the color changes at open.
well i wrote a little script:
// --------------------------------------------
// Subroutine to be called to set open notepad windows and to color them.
//
// starts on world open
//
// --------------------------------------------
function NotepadsWorldOpen ()
{
AppendToNotepad ("Clan Talk", "====>WORLD OPEN<====\r\n"); //opens clan talk notepad window
AppendToNotepad ("Tells", "====>WORLD OPEN<====\r\n"); //opens tells notepad window
AppendToNotepad("RP", "====>WORLD OPEN<====\r\n"); //opens RP notepad window
NotepadColour ("RP", "magenta", "black"); //colors RP notepad window
NotepadColour ("Clan Talk", "green", "black"); //colors clan talk notepad window
NotepadColour ("Tells", "lime", "black"); //colors tells notepad window
}
it's supposed to open all the notepad windows, then apply colors. the line number is once again the open bracket on this one. i tried it on world open and i get a similar error except the called by : changes to called by world open (obvisously) and the reason changes to opening world. It has no problems opening the notepad windows, it gets the error when trying to color. so i get 3 motehpad windows all of the default colors.
here's the error:
Error number: -2146823281
Event: Execution of line 569 column 2
Description: Object expected
Called by: Function/Sub: NotepadsWorldOpen called by world connect
Reason: connecting to world
Which version of MUSHclient are you using? Colouring notepad windows is a recent addition.
version 3.5 so it's in there.
I tried that exact script and it worked and opened the notepad windows without error. What version of Jscript do you have?
If you run the JScript_Version plugin you can find out. Mine reports:
Script engine = JScript
Version = 5.6
Build = 6626
Script engine = JScript
Version = 5.1
Build = 8513
It works in version 5.6, perhaps upgrade from 5.1.