Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
#3938268 - 04/12/14 02:19 PM Sending multiple down-up key presses during button hold?  
Joined: Jan 2014
Posts: 46
DarkFib3r Offline
Junior Member
DarkFib3r  Offline
Junior Member

Joined: Jan 2014
Posts: 46
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!

Inline advert (2nd and 3rd post)

#3940724 - 04/17/14 03:49 PM Re: Sending multiple down-up key presses during button hold? [Re: DarkFib3r]  
Joined: Jan 2014
Posts: 46
DarkFib3r Offline
Junior Member
DarkFib3r  Offline
Junior Member

Joined: Jan 2014
Posts: 46
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.

Last edited by DarkFib3r; 04/17/14 06:26 PM.

Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

If you shop on Amazon use this Amazon link to support SimHQ
.
Social


Recent Topics
Actors portraying US Presidents
by PanzerMeyer. 04/19/24 12:19 PM
Dickey Betts was 80
by Rick_Rawlings. 04/19/24 01:11 AM
Exodus
by RedOneAlpha. 04/18/24 05:46 PM
Grumman Wildcat unique landing gear
by Coot. 04/17/24 03:54 PM
Peter Higgs was 94
by Rick_Rawlings. 04/17/24 12:28 AM
Whitey Herzog was 92
by F4UDash4. 04/16/24 04:41 PM
Anyone can tell me what this is?
by NoFlyBoy. 04/16/24 04:10 PM
10 Years ago MV Sewol
by wormfood. 04/15/24 08:25 PM
Pride Of Jenni race win
by NoFlyBoy. 04/15/24 12:22 AM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0