Jump to content

T16000 FCS and Target how to question


Recommended Posts

Posted

I have just bought the TM T16000 FCS (rudder throttle and stick) to replace my beloved Cougar. I am pretty good at programming the cougar so I am not a total noob to HOTAS programming but.......

 

I am a noob using Target. I think I have now got it all working OK and I have managed to make some of the buttons generate characters for Arma as they should. Its pretty simple stuff I am trying to do right now and I am sure I will have loads more questions as I get into it over the next few weeks.

 

Right now I want to make one of the buttons on the throttle on first press start pumping out WWWWWWWWWWWW's. Then on the second press stop producing the W character.

 

In Arma this will make the character run. I want it to act like a run on/off button. If you play Arma you will know that most of the time its a cross-country running simulator so being able to free up my left middle finger is a great boon.

 

I used to have this on a switch on my Cougar throttle. Click it on and the character runs until I switch it back again. The TWCS throttle has no latching switch.

 

How do I do this? So that on first Push of the button Target pumps out W's until I press it again??

Posted

Assuming you are using the TARGET scripting language (not the GUI), you need to use the SEQ() and DOWN+ and UP+ modifiers as follows.

 

For the T16000 B5 button, for example:

MapKey(&T16000, B5, SEQ(DOWN+'w', UP+'w'));

 

DOWN+ causes the key to be pressed down until you relesae the key with UP+. So DOWN+'w' presses and holds the w key down. UP+'w' releases the w key.

 

SEQ(), which means sequence, will execute the commands in sequence. So the first time you press B5, it will push w down. The second time you press B5, it will release the w key.

 

Be carful with this as it can leave the w key pressed when you don't expect or want it to be. Like if you alt-tab out of the game, w will still be pressed which can cause all manner of problems. And I forget, but even if you exit the TARGET script editor, it might leave w pressed. Test this to be sure.

 

If you are using the TARGET GUI, pick the button you want to program (e.g. B5), and in the Assign Parameters screen, give it an Event Name (e.g. RunWalkDOWN), Set Key Command = w, Type = Press, and check the Sequence button. Then press Add Event. Then add a second event with Event Name RunWalkUP, Key Command = w still, Type = Release, and make sure Sequence is still checked. Then press Add Event again. You just added a Sequence command that will press and hold w the first time you press B5, and release w then next time you press B5.

 

In the right column, under B5, you will see a list with the command you just created, and with in front of the commands. This means they are part of a sequence. Test run it, and you'll see it does what you want. If you click "View Script", you will see it is using SEQ(), DOWN+, and UP+ just as I described above.

Posted

Thanks for the reply!

 

Actually I have JUST figured it out and I was going to type how I did it. I used a sequence too, the first press it is a PRESS WWWWWWWWWWWWW command then the 2nd press is Release W which stops it. It works a treat!

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...