Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
SmilingReaper
Newbie


Joined: 10 Jan 2002
Posts: 8

PostPosted: Fri Jan 11, 2002 1:02 am   

Help with capture windows
 
I've set up a small trigger to open a new window when I receive a tell. However, when this new window opens up the main one loses focus. Is there someway to open a new window and maintain focus on the main one? Also, when the new window opens is there a way I can make it so that anything I type in the new window will be sent to the mud as if I used the main window?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Jan 11, 2002 1:51 am   
 
quote:

I've set up a small trigger to open a new window when I receive a tell. However, when this new window opens up the main one loses focus. Is there someway to open a new window and maintain focus on the main one? Also, when the new window opens is there a way I can make it so that anything I type in the new window will be sent to the mud as if I used the main window?



For the first part of your question, you can use the focus character (the colon by default). Here's an explanation of what happens:

:(window name): -- this is what you want. The leading colon tells ZMud to keep focus in the current window while dumping the output of whatever follows the trailing colon into (window name).

(window name): -- sends control to (window name).

For part two, you need to ensure that your main game window is named. Once it is named (if you do need to name it, you can use the #RENAME command), you simply use the solution given in part 1.

li'l shmoe of Dragon's Gate MUD
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Jan 11, 2002 4:32 am   
 
Another solution...
Lets say your tell trigger goes something like this:
#TR {^%w tells you %*$} {#WINDOW Tell %trigger}

That gives you a nice Tell window on the first tell and just displays them there for the rest. You first option is resize and position that window where you want or if you have it docked and tabbed skip ahead. Then under the Layout menu select Save Layout... and voila the Tell window is automatically opened with your character and your main window will not lose focus assuming you do not have the Bring Window With Activity to Front checked in preferences.

You next option is to set focus on your New tell window and give it some settings...
#TRIGGER "Refocus" {%*} {#MENU {Windows|1};#T- Refocus}
#ONINPUT {(*)} {:%item(%names,1):%1}
Just type those into your Tell window. Then save, make sure the file name is tell.mud and it is in the directory for your chaaracter.
Reply with quote
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Fri Jan 11, 2002 6:24 am   
 
nice place to open capture windows in in your logon triggers in Autolog Class...

i add :Chat: %time to ^What is your name?
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net