[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  Help with a poppup window
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

Help with a poppup window

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Posted by Mccane   (28 posts)  [Biography] bio
Date Sat 01 Sep 2007 07:25 AM (UTC)
Hi! I'm relatively new to Lua, and I'm looking for some pointers on how to do this (I don't know whether Lua is even capable of this, if it isn't, pointing me in the right direction would be appreciated). My idea for a game I play is to take text with a constant prefix and omit it from the main game window output, and send it to a poppup window.

An easy way I'd like to put this is say I'm talking with a friend named Bob. I would like everything Bob says removed from the output and sent to a mini-window or pane or some sort of separate window. So I was thinking of setting a trigger of

Bob tells you, "*"
or even globalizing it for everyone
* tells you "*"
and omitting this from output, and sending the line to the poppup window. I could then keep track of conversations separately (I don't care if everyone that pages me is in the same miniwindow). I also would plan on making it so I still type tell bob whatever in the normal window, I just want the output from the game in a separate window. Any help, pointers, or redirections to reading material would be appreciated! Thanks!
[Go to top] top

Posted by Shaun Biggs   USA  (644 posts)  [Biography] bio
Date Reply #1 on Sat 01 Sep 2007 07:37 AM (UTC)
MUSHclient FAQ (http://mushclient.com/faq) #23. How can I log chats etc. to another window? There's code and examples and such.

It is much easier to fight for one's ideals than to live up to them.
[Go to top] top

Posted by Mccane   (28 posts)  [Biography] bio
Date Reply #2 on Sat 01 Sep 2007 09:22 AM (UTC)
Interesting, I didn't know you could do that. Two things, though. When I try to copy the second code (the example that copies stuff to a separate world), it returns an error saying

Line 5: Value '14' too large in numeric attribute named 'send_to'. Range is 0 to 13. (trigger not loaded)

The second thing I was kind of hoping for was for the separate window to be visible in the same window as the game I'm on (with the screen maximized). I thought of maybe using the infobar, is it possible to add multiple lined things into, and to resize it? Thanks for replying so quickly!
[Go to top] top

Posted by Nick Gammon   Australia  (21,669 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Sat 01 Sep 2007 10:43 AM (UTC)
Sounds like you have an older version of MUSHclient. Version 3.83 onwards should support "14" which is "send to script (after omit)".

You should be able to have both screens visible. You can maximize MUSHclient itself, but not the individual windows inside it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] 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.


It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]