Hi,
I have got close to what I want to achieve with the code below. I want to trigger (L:FTR, bool) only whilst "CTRL, SHIFT, F" is pressed as a kind of 'while' statemet.
Monitoring the outputs it is happening close to what I want/expected but there is a slight 'blip' on the initial key press when the FTR bool output goes 1..0..1.... for a couple of gauge cycles.
Is there a better way to write the code?
Reset code when keys not pressed.
Key press event. Timer is looping/incrementing inside the key press only.
I have got close to what I want to achieve with the code below. I want to trigger (L:FTR, bool) only whilst "CTRL, SHIFT, F" is pressed as a kind of 'while' statemet.
Monitoring the outputs it is happening close to what I want/expected but there is a slight 'blip' on the initial key press when the FTR bool output goes 1..0..1.... for a couple of gauge cycles.
Is there a better way to write the code?
Reset code when keys not pressed.
XML:
<!-- Resetting FTR bool and TIMER when key not pressed -->
<Element>
<Select>
<Value>
.....
0 (>L:TIMER, enum)
0 (>L:FTR, bool)
</Value>
</Select>
</Element>
Key press event. Timer is looping/incrementing inside the key press only.
XML:
<!-- FORCE TRIM RELEASE (FTR) -->
<On Key="838" ID="CTRL, SHIFT, F">
<Visible>(L:KBD CONTROL, bool) 1 ==</Visible>
(L:TIMER,enum) ++ (>L:TIMER,enum)
(L:FTR, bool) ! (L:TIMER, enum) 0 > && if{
1 (>L:FTR, bool)
}
</On>


