oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Mon Dec 28, 2009 1:52 pm
[3.12] Multistate trigger bug? |
I have a problem that needs an immediate fix. I have a multistate trigger where the second line can be a prompt. However, if you check the option to Trigger on prompt for the Within lines 1 state it fires even if it is two lines after.
This is line one.
This is another line.
This is line two. fired
This should not happen should it?
Trigger code:
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<trigger priority="10" regex="true" copy="yes">
<pattern>^This is line one\.$</pattern>
<trigger type="Within Lines" param="1" regex="true" newline="false" prompt="true">
<pattern>^This is line two\.</pattern>
<value>#print "fired"</value>
</trigger>
</trigger>
</cmud>
|
The problem is if the prompt line follows the line immediately then I need to reset something. Except now it is reseting even if it doesn't, which totally messes up everything. |
|