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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
miegorengman
Wanderer


Joined: 05 Sep 2008
Posts: 51

PostPosted: Fri Mar 22, 2024 10:51 pm   

how to best combine #scroll with #capture
 
I have 2 screens, one that i play in and one that i send #capture to. with #scroll i am not seeing any way to get my results directly to my #capture screen. best i can see is that I would probably create a class would become active, send a #scroll search, #gag and #capture all the #scroll results, then disable itself. does anyone have a more elegent solution? thank you much for reading
Reply with quote
unrealtor
Beginner


Joined: 23 May 2020
Posts: 18

PostPosted: Wed Mar 27, 2024 6:10 pm   
 
I don't think there is a way to combine commands. I don't see any functions that look like they can access the buffer. An option that would likely work is using game logs, which is something like this:

- Create trigger that detects game login:
- Set a unique variable for the new log name --> #var current_log_name %time(e_m_d_h_n).log
- Enable logging --> #LOG @current_log_name

- Create an alias for the search, then display in named window:
- #ALIAS search_log {
#FILE 1 @current_log_name
#win WINDOW_NAME %grep(1,%1)
#CLOSE 1
}
Reply with quote
miegorengman
Wanderer


Joined: 05 Sep 2008
Posts: 51

PostPosted: Fri Mar 29, 2024 2:35 pm   very cool
 
the great news is i log everything, so that is a very helpful direction, thank you, i will give it a try
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4682
Location: Pensacola, FL, USA

PostPosted: Tue Apr 02, 2024 11:27 am   
 
You could try something like:

#C+ windowname
#GAGON
#SC pattern
#WAIT 10000
#GAGOFF
#C-


The wait time might need adjusting, that is only 10 seconds.
_________________
Discord: Shalimarwildcat
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4682
Location: Pensacola, FL, USA

PostPosted: Sat Apr 06, 2024 2:51 pm   
 
Here is a cleaner version, that only suppresses matching data for 10 seconds
Code:

#ALIAS scroll($pattern) {
  #WAIT 0
  #IF ($pattern) {
    scrollPattern=$pattern
    #SCROLL $pattern
    #WAIT 10000
    scrollPattern=""
    }}
#TR "scrollCapture" {{@scrollPattern}} {#CAP Scroll;#GAG}
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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