Having another look at replacing my notepad windows with world windows so I can use multi colors.. I've looked through a couple of other threads, but I have a couple of questions if someone can help please..
At present (using VB) I can open a new notepad window and resize it with the following (which I do automatically on connection to the world):
sub open_npwindow
world.SendToNotepad "npwindowname", "blah blah text"
MoveNotepadWindow "npwindowname", 700, 0, 300, 300
end sub
and close them when I log off (I don't want to save a copy) with:
sub close_npwindow
world.CloseNotepad "npwindowname", 0
end sub
and obviously use other functions like
world.ReplaceNotepad "npwindowname", "blah text text"
to refresh the contents (or use world.AppendToNotepad etc)
What I can't quite figure is what syntax to use to replace the notepad windows with world windows, how to send notes from my active playing world window to those other world windows.. and how to get them to open as new world windows in the first place that connect to 0.0.0.0 (which apparently means they wont try to connect and send commands) ..I have no desire to save those notepad-world files each time I log off, unless it's absolutely necessary..
Is it much the same thing, for example, to open, use:
sub open_otherworldwindow
world.SendToWorld "otherworldname", "blah blah text"
MoveWorldWindow "otherworldname", 700, 0, 300, 300
end sub
but if so, how to set it to connect to 0.0.0.0 etc.. or do I have to have these 'other' world files already set up in my world files folder?
And how about sending text to those world windows? Because for what I'm doing, I'll be effectively refreshing the text in there (which consists of a number of variables etc), so I think I have to use world.DeleteOutput first, and then world.SendToWorld for the replacement text.. but again, is the syntax just a matter of adding the otherworld name into that string? eg:
sub refresh_otherworldname
world.DeleteOutput "otherworldname"
world.SendToWorld "otherworldname", "blah blah text"
end sub
or maybe the 'world.SendToWorld' should be 'world.note'..?
And will the focus still stay on my active (playing) world window, or is it going to switch over to the other notepad-world, which would be beyond annoying.
One more thing.. how to set the commandline height to zero on those world windows too..
Appreciate your help VERY much. |