Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ MUSHclient
➜ General
➜ active status windows
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1 2
Posted by
| Guest1
USA (256 posts) |
Date
| Sun 30 Jan 2005 05:25 PM (UTC) |
Message
| hey. I've been out of the loop for a while so I just upgraded my client version and need a little advise. I was looking at the Wintin client and a user from my MUD posted a screenshot of their setup:
http://gnossis.homeip.net/Example.jpg
Before I start attempting anything, is it possible in MC to setup those activity windows on the right as that user of wintin has done?
Presently I just use aliases that will bring up the same info in the play screen which draw on variables (grouping details, spell up/down details etc etc), but if I could have those same variables updating on a live and separate status window it would be great, so can it be done?
Note my coding skeelz aren't great - I use VB on MC because that's about all I know. | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #1 on Sun 30 Jan 2005 06:52 PM (UTC) |
Message
| Yes. Just use notepad windows (which you can even size now via scripting). The only thing you wont be able to do is the horizontal scrolling (which is probably better anyway).
All you really need is SendToNotepad and ReplaceNotepad. Since you can resize by hand.
I suggest making a subroutine that sends 'everything' to the notepad, that way when triggers match (and update your values) you dont have to worry about editing the notepads, you just throw out the old and rewrite everything. Of course, in some situations this wouldnt really work well (if you have a notification in there, you dont want to get rid of it, although you could put that in the subroutine too). |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| Guest1
USA (256 posts) |
Date
| Reply #2 on Sun 30 Jan 2005 07:23 PM (UTC) |
Message
| ok thanks, I'll have a play around - I have an AFK script that appends all tells to a notepad while I'm AFK so I can read them later, so I guess it'll use a similar method.
NP for horizontal scrolling.
hmm.. I see, so whenever a variable updates, also trigger it to update the notepad window with all the vars as a replacement rather than append action.
I'll have a look around for how to set window sizes.. can you dock them as well?
thanks :) | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Date
| Reply #3 on Tue 01 Feb 2005 07:42 PM (UTC) |
Message
| |
Posted by
| Guest1
USA (256 posts) |
Date
| Reply #4 on Tue 01 Feb 2005 11:24 PM (UTC) Amended on Tue 01 Feb 2005 11:26 PM (UTC) by Guest1
|
Message
| Ahhh I see ..I think..
I can use GetMainWindowPosition to get the coords of my standard MC frame window, then kind of 'reverse engineer' (for lack of a better term) back from there to set the notepad window coords so it sits in next to my 'play' window... I don't think that will dock it really, but if I set the coordinates right it will have the same effect visually as being docked, is that what you meant? Just a matter of a little trial and error until it's exactly where I want it presumably.
You can have more than one notepad window too, providing you name them, correct? ie: main 'play' window aligned left occupying full height and two thirds width of MC frame window, then on the right hand third of the MC frame window two notepad windows (one above the other) that each take up half the total height of the MC frame window..
I guess on startup when I (for example) log in to the mud, I could trigger the creation of the two notepad windows, then they would refresh / append from there as required as a result of triggers from the mud.. yeah?
Thanks for the help & that link :) | Top |
|
Posted by
| Guest1
USA (256 posts) |
Date
| Reply #5 on Thu 03 Feb 2005 11:29 PM (UTC) |
Message
| Ok having probs.. I can't seem to get MoveNotepadWindow to do what it should..
I can create a notepad window (SendToNotepad), change the font(NotepadFont), get the currect position of a named notepad window (GetNotepadWindowPosition), open a second notepad window with a different name (SendToNotepad), but I keep getting errors on (MoveNotepadWindow)..
I'm using VB script.
error:
Event:
Execution of line 1 column 27
Description:
Expected end of statement
Line in error:
MoveNotepadWindow "state" 700, 1, 300, 400
..any idea what the problem is? Alternatively, when I use (SendToNotepad) to create the window, can I combine coordinates into that, or create it first and then resize it with (MoveNotepadWindow) script? | Top |
|
Posted by
| Guest1
USA (256 posts) |
Date
| Reply #6 on Thu 03 Feb 2005 11:35 PM (UTC) |
Message
| Never mind, it's a slight typo in the docs.. missing a ,
VB example in docs here should read
MoveNotepadWindow "my_notepad", 1, 1, 640, 480
(it's missing the , after "my_notepad")
doh. heh | Top |
|
Posted by
| Guest1
USA (256 posts) |
Date
| Reply #7 on Fri 04 Feb 2005 12:44 AM (UTC) |
Message
| ok another thing.. I know about NotepadColour which sets the text and background colour of the notepad overall, but when I send some text to the existing notepad as an append or replace or whatever, can I have differing text colors within that string, in much the same way the the world window uses World.ColourTell? Or just one color for all text in a notepad window? | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #8 on Fri 04 Feb 2005 12:53 AM (UTC) |
Message
| No, they're just notepad windows, and you can change their entire foreground/background color, just as you can change the entire font. |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| Guest1
USA (256 posts) |
Date
| Reply #9 on Fri 04 Feb 2005 01:00 AM (UTC) Amended on Fri 04 Feb 2005 01:01 AM (UTC) by Guest1
|
Message
| Yeah thought as much. Thanks for confirming :) | Top |
|
Posted by
| Guest1
USA (256 posts) |
Date
| Reply #10 on Fri 04 Feb 2005 06:15 PM (UTC) |
Message
| This should be the last question I hope..
How do I get the friggin notepad to display fixed space fonts? | Top |
|
Posted by
| Guest1
USA (256 posts) |
Date
| Reply #11 on Fri 04 Feb 2005 06:23 PM (UTC) |
Message
| doh brain fart.. I was using the wrong font for fixed width.. sorry. | Top |
|
Posted by
| Guest1
USA (256 posts) |
Date
| Reply #12 on Sat 05 Feb 2005 03:50 PM (UTC) Amended on Sat 05 Feb 2005 04:09 PM (UTC) by Guest1
|
Message
| hmm going blank.. can a single alias call two scripts?
Or, if I have an alias call a script, can that vbs script run and then call another script to run?
I could rewrite the first script so it also includes all the stuff in the second script I want called, but it seems like I'm just unneccessarily duplicating the info in the second script (there are other aliases & triggers that call that second script as well).
On some similar cases I have an alias call one script which does its thing and then sends a grouptell to the world, and that grouptell then fires a trigger that calls the second script, but I'm sure there must be an easier way..?
..and yes, the order in which they run is important. | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #13 on Sat 05 Feb 2005 06:07 PM (UTC) |
Message
| Use send to script, and call them manually.
You'll have to assemble the wildcards into an array (if it matters, or even just the one's that DO matter) and the name (which is static), and line (%0) for parameters. |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| Guest1
USA (256 posts) |
Date
| Reply #14 on Sat 05 Feb 2005 06:16 PM (UTC) Amended on Sat 05 Feb 2005 06:20 PM (UTC) by Guest1
|
Message
| hmm.. trying to avoid manual operation as much as poss, and I know jack about arrays. I've just rebuilt the 1st called subroutine so it also includes everything that the second subroutine had in it as well.. it makes my overall script a lot bigger (and will do as I add more) but it achieves what I wanted.
Basically if a called subroutine (which is what I meant in my previous post when I said script, sorry) could then have a sort of 'include tag' at the end to run a different 2nd subroutine when it's finished, that would be great, rather than just tacking all the 50-odd lines from the 2nd subroutine onto the end of the 1st subroutine..
Much like php, an include of sorts would mean if I needed to make any changes to that 2nd subrutine, it would reflect through to all the other subroutines that use it too, if you follow.. | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
46,406 views.
This is page 1, subject is 2 pages long: 1 2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top