|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Thu Jan 08, 2009 11:12 pm
Multi-Line Triggers |
I have a question. What is the best way to create a multi-line trigger where you only want it to fire if it is preceded by a prompt and followed by a prompt?
For example:
1234h, 1234m ex-
Some line goes here.
1234h, 1234m ex-
I created a multi-line trigger and it works, but it is way to slow to fire. What I mean is, if I put the script into just the trigger message of Some line goes here, the command will go through immediately. If I make it wait and check for a prompt within one line, then it sends the command but it won't until the screen prints another line which can cause another delay of like 2 seconds or more. Is it because I failed to mark those as prompt triggers? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu Jan 08, 2009 11:14 pm |
The print-another-line thing is normally symptomatic of not marking prompt triggers, yes. The line doesn't terminate in a CRLF until a command is entered (because all commands end in CRLF) or until another line is printed below it.
|
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Thu Jan 08, 2009 11:59 pm |
Yeah I sort of realized that as I was making that post that I hadn't marked it as prompt.
|
|
|
|
|
|