|
Pseudo Wanderer
Joined: 25 Oct 2005 Posts: 99
|
Posted: Wed Nov 09, 2005 3:08 pm
Multiline capture triggers |
Is there an available script for capturing text between two prompts? for example:(Assuming the <> surround the prompt)
<PROMPT>
This is
a true
multiline
example.
<PROMPT>
I've been trying to solve this for about a week with no success. Any help would greatly be appreciated.
Cheers! |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Nov 09, 2005 10:01 pm |
#variable vStuffBetweenPrompts {}
#trigger {prompt pattern} {#T+ tStuffBetweenPrompts;vStuffBetweenPrompts = ""}
#condition {prompt pattern} {#T- tStuffBetweenPrompts}
#trigger "tStuffBetweenPrompts" {(*)} {vStuffBetweenPrompts = %concat(@vStuffBetweenPrompts,"%1")}
Without knowing the specifics, it's kind of hard to plan for a more specific trigger so that it doesn't capture EVERY single thing between the prompts. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Pseudo Wanderer
Joined: 25 Oct 2005 Posts: 99
|
Posted: Wed Nov 09, 2005 10:42 pm |
Thanks, that's what I was looking for. :)
|
|
|
|
|
|