|
miegorengman Wanderer
Joined: 05 Sep 2008 Posts: 53
|
Posted: 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
|
|
|
|
unrealtor Beginner
Joined: 23 May 2020 Posts: 19
|
Posted: 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
} |
|
|
|
miegorengman Wanderer
Joined: 05 Sep 2008 Posts: 53
|
Posted: 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
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
|
|