Forums » Technology » Flight Sim Controllers » T.A.R.G.E.T. (Thrustmaster) » Sending multiple down-up key presses during button hold? Active Topics You are not logged in. [Log In] [Register User]
Topic Options
Rate This Topic
Hop to:
#3938268 - 04/12/14 10:19 AM Sending multiple down-up key presses during button hold?
DarkFib3r Online   content
Junior Member

Registered: 01/16/14
Posts: 38
I am wondering how you set up a button to send multiple endless pulses on a button press, stopping when the button is released.

For example, I want to push a button and have it send a key press, let's say the letter 'u', multiple times for as long as the button is held with, let's say, 10 milliseconds of spacing between each press. When pressing the button, I want to see u...u...u...u...u... until I let go.

Please note that simply holding the key press down will not suffice as the command I am trying to execute needs a unique key press per level of state. Furthermore, a chain may not work because I may need to send 3 presses or 5 presses, or 12 presses, depending on how long I want to hold the button down.

I am confident that TARGET can do this, but I have not yet figured out how. Any help is appreciated!


Top
#3940724 - 04/17/14 11:49 AM Re: Sending multiple down-up key presses during button hold? [Re: DarkFib3r]
DarkFib3r Online   content
Junior Member

Registered: 01/16/14
Posts: 38
I received a reply on this post in the BMS forums and wanted to share it here to close off this loop:

Quote:
...I wanted to map my field of view zoom to my hat switch in BMS and the following works like a charm:

MapKey(&Joystick,H1U,REXEC(56, 50, "ActKey(KEYON+PULSE+L_CTL+L_SHIFT+L_ALT+USB[86]);"));
MapKey(&Joystick,H1D,REXEC(57, 50, "ActKey(KEYON+PULSE+L_CTL+L_SHIFT+L_ALT+USB[87]);"));


I hope this helps someone else wanting to do something similar.


Edited by DarkFib3r (04/17/14 02:26 PM)

Top

Topic Options
Rate This Topic
Hop to:

Moderator:  RacerGT 
 
Quick Search
Recent Articles
Support SimHQ
.
Social


Recent Topics
Rabbit TV?
by Dunolde
58 minutes 46 seconds ago
Dusk Flying
by Pielstick
Today at 04:28 PM
Very Silly Cycle Lane.
by RedToo
Today at 03:49 PM
Pilots and their callsigns
by semmern
Today at 03:45 PM
Name this car?
by NineLives
Today at 03:39 PM
RAF Typhoons Chase Off Two Russian Surveillance Planes Detected Off Coast Of Scotland
by MaceUK33
Today at 03:19 PM
Meanwhile in the hangar...
by Sokol1
Today at 02:53 PM
New to COD-could use a TM Warthog profile to start with
by sobe
Today at 02:16 PM
"American Spartan" ~ Ann Scott Tyson
by xIGuNDoCIx
Today at 02:15 PM
Goodbye Internet…it's been fun!
by Force10
Today at 02:13 PM
 

Forum Use Agreement | Privacy Statement
Copyright 1997-2013, SimHQ Inc. All Rights Reserved.