I've had a look through this forum and haven't found an answer already posted, so....
I finally got around to explore what Target has to offer through scripts with a view to mirroring the arrangement I had on my old Cougar created with Foxy. I read through the documentation and thought I had a pretty good understanding, borrowed extensively from the stock scripts provided by TM to help me learn and produced my first, albeit incomplete tmc/ttm, which complies without error. One thing I am struggling to understand is when I press and hold a button whilst running a stock script, e.g. DCS FC2 Mig29, it generates repeated characters for the duration of the hold and only issues the key release on physical button release. Using the old Foxy vernacular, much the same as the /P and /R command switches.
My own script, however, with the exact same syntax, only the macro name is different, generates the key press with an immediate key release [1ms] later irrespective of the button being physically released. There is nothing else in the stock file I can see being initialised that would account for this result.
My main reason for asking is I wish to replicate the behaviour produced by the stock script, i.e. repeating characters on button press that end on release. I am aware of DOWN+, UP+ and MapKeyR, but in truth keep running into compile errors when I introduce these to my script and trying to keep things simple to start. I have copied extracts from relevant tmc/ttm files below and really cannot see why they produce different results. Anyone able to shed any light on this?
Many thanks in advance.
++++++++++++++++++++++++++++++++++++++++
The stock tmc (DCS FC2 Mig29) reads:
MapKeyUMD(&Joystick, H2U,
_2__Beyond_Visual_Range_Mode,
_1__Navigation_Modes,
_7__Air_To_Ground_Mode);
where the ttm states:
define _7__Air_To_Ground_Mode USB[0x24] //(7) Air-To-Ground Mode
define _1__Navigation_Modes USB[0x1E] //(1) Navigation Modes
define _2__Beyond_Visual_Range_Mode USB[0x1F] //(2) Beyond Visual Range Mode
++++++++++++++++++++++++++++++++++++++++
My tmc reads:
MapKeyUMD(&Joystick, H2U,
MODE_BVR,
MODE_NAV,
MODE_A2G);
where the ttm states:
define MODE_A2G USB[0x24] // USB=7
define MODE_BVR USB[0x1F] // USB=2
define MODE_NAV USB[0x1E] // USB=1
++++++++++++++++++++++++++++++++++++++++