[TM TARGET] Script with 'while'
-
Hi,
do someone know, if it is possible to use a function (via EXEC) with a ‘while’ loop? The idea is to emulate an axis…
<free>EXEC( “A_Var = 1; while (A_Var == 1), PULSE + F7, D(300);”) // D() as delay
(And this e.g. for the China Hat at the throttle, where the middle position of that hat can reset this ‘A_Var’… e.g. ‘A_Var = -1’)I’m asking because I couldn’t find any example with ‘while’, instead of ‘if’, which is in the TARGET script guide.
TIA <hopefully>Earlybite</hopefully></free>
-
REXEC and if ?
-
REXEC and if ?
Hi!
Now I can use AntennaTilt with a delay of 300 MilliSecs…
Thank you very much, sir!Greeting
EarlybiteThe code:
//CHINA HAT CH –--------------------------------------------------------------------------------------
// I’m using AXIS DX_THROTTLE_AXIS for the range knob…// CHF
MapKeyIO(&Throttle, CHF, REXEC( 1, 300, “ActKey(KEYON + PULSE + F7);” ) , AXIS(DX_THROTTLE_AXIS, -500, 20));// CHM
// MapKey(&Throttle, CHM, EXEC( “StopAutoRepeat(1);” ));
// You use ‘StopAutoRepeat’, if you are using RNOSTOP in REXEC…// CHB
MapKeyIO(&Throttle, CHB, REXEC( 2, 300, “ActKey(KEYON + PULSE + F5);” ) , AXIS(DX_THROTTLE_AXIS, 500, 20));