Hi Lancelot, sorry, I'm late but these SimHQ forum is so quiet compared to
ED forums that I miss some new messages here.
The code I mentioned above is the result of a study about what we can expect from TM hats
and the way to handle the different cases. There are only 2 good reasons to use this complicated
code instead of Nicu's macros.
1- Some hats can activate only one of their 4 switches a any single time and others can close 2
of them when pushed into a corner. You can monitor this with DeviceAnalyzer. It means that you
will sometimes have 2 depressed switches when you push a hat into a corner.
Which comes first is random... I don't like random when selecting TAD or HUD as SOI.
That lead you to random MVCD display... not good!
2- ActKey() is MUCH quicker than EXEC macros... here too random missing key press drive me crazy.
But I agree, this is not casual programming and if you want to understand all of it, it's another
layer of hard work for this sim, again!
But you don't really need to. We have 2 options here:
1. Either keep it simple enough to master it and keep it bellow the pain in the ass threshold.
2. Or just ask some geeks like me for something cool you would like to experiment.
For option 2, I opened a thread in ED forum. But it happens to be scary enough to drive readers away
TARGET - Advanced programming...My own code is attached at the bottom of first thread and I keep it up to date with new experimentation.
Currently trying to "Export.lua" DCS parameters to TARGET and see where it can get us.