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
Plomba
Newbie


Joined: 16 Sep 2002
Posts: 2
Location: Poland

PostPosted: Mon Sep 16, 2002 7:41 am   

Newbie: Capturing to other window.
 

Simply question:

I want to capture text from [Gossip], [Message] and other lines to other window. Is it a quite good idea to use trigger on ^[*] and #capture name_window and return to normal window on trigger on prompt ^>

Greenhorn
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Sep 16, 2002 7:08 pm   
 
First, you need to use the quote character (~) before [ and ] because these are special pattern matching characters. Second, you should use %w instead of * since there is only one word inside the brackets. Finally, there is no need to "return" to the normal window because #CAPUTRE is not supposed to change the focus of the window. You should be able to do it with this trigger:
#TRIGGER {^~[%w~]} {#CAPTURE windowName}

Kjata
Reply with quote
Plomba
Newbie


Joined: 16 Sep 2002
Posts: 2
Location: Poland

PostPosted: Tue Sep 17, 2002 8:47 am   
 
Thanks for help.

Greenhorn
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