|
Plomba Newbie
Joined: 16 Sep 2002 Posts: 2 Location: Poland
|
Posted: 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 |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
Plomba Newbie
Joined: 16 Sep 2002 Posts: 2 Location: Poland
|
Posted: Tue Sep 17, 2002 8:47 am |
Thanks for help.
Greenhorn |
|
|
|
|
|