Combined Keypress in TARGET script
-
I operate the AVTR with O key (on) / K key (off) and combined with a switch on the TQS, with LED operation.
here is the script lines that i use :
MapKey(&Throttle, EFLNORM, CHAIN(PULSE+‘o’, LED(&Throttle, LED_ONOFF, LED_CURRENT+LED1), LED(&LMFD, LED_INTENSITY, 255))); //ACMI ON
MapKey(&Throttle, EFLOVER, CHAIN(PULSE+‘k’, LED(&Throttle, LED_ONOFF, LED_CURRENT-LED1), LED(&LMFD, LED_INTENSITY, 0))); //ACMI OFF
The thing is that i accidently pressing the O key on the keyboard and numerous times i end up with unnececery AVTR files.
Can i combined an ALT/SHIFT/CTRL with the O key (i checked it, in the bms key file, it works) ?
if the answer is yes, what is the syntax to use in the TARGET script ? (examples : ‘alt o’ / ‘alt+o’)
-
I operate the AVTR with O key (on) / K key (off) and combined with a switch on the TQS, with LED operation.
here is the script lines that i use :
MapKey(&Throttle, EFLNORM, CHAIN(PULSE+‘o’, LED(&Throttle, LED_ONOFF, LED_CURRENT+LED1), LED(&LMFD, LED_INTENSITY, 255))); //ACMI ON
MapKey(&Throttle, EFLOVER, CHAIN(PULSE+‘k’, LED(&Throttle, LED_ONOFF, LED_CURRENT-LED1), LED(&LMFD, LED_INTENSITY, 0))); //ACMI OFF
The thing is that i accidently pressing the O key on the keyboard and numerous times i end up with unnececery AVTR files.
Can i combined an ALT/SHIFT/CTRL with the O key (i checked it, in the bms key file, it works) ?
if the answer is yes, what is the syntax to use in the TARGET script ? (examples : ‘alt o’ / ‘alt+o’)
PULSE+L_SHIFT+L_CTL+L_ALT+‘o’ or any combination of these.
Or
PULSE+L_SHIFT+L_CTL+L_ALT+USB[0X12] using the keyboard code for ‘o’.
You can find all the keyboard codes in the ‘TARGET Script Editor Manual’ in the Target installation folder.
-
PULSE+L_SHIFT+L_CTL+L_ALT+‘o’ or any combination of these.
Thank you, it is working great now