Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
#3213125 - 02/20/11 09:27 PM Programming help.  
Joined: Feb 2007
Posts: 50
Jaeger Offline
Junior Member
Jaeger  Offline
Junior Member

Joined: Feb 2007
Posts: 50
Hi;

I need help for programming my T6 button.What I want to program is when I press T6 it must emulate a keypress on the numpad,hold it pressed down until I press the T6 for a second time.

Can anybody help?

Thanks.

Inline advert (2nd and 3rd post)

#3223637 - 03/03/11 09:29 PM Re: Programming help. [Re: Jaeger]  
Joined: Nov 1999
Posts: 529
Nutty Offline
Member
Nutty  Offline
Member

Joined: Nov 1999
Posts: 529
Bristol, England
BTN T6 /T KD (KP6) /T KU (KP6)

Be careful with such a statement. If you don't use it properly you'll end up generating a stuck key which your sim and Windows won't appreciate!

Nutty


James "Nutty" Hallows
ViperDrivers
#3223715 - 03/03/11 10:52 PM Re: Programming help. [Re: Jaeger]  
Joined: Feb 2007
Posts: 50
Jaeger Offline
Junior Member
Jaeger  Offline
Junior Member

Joined: Feb 2007
Posts: 50
Thanks; I'll test and reply back.

Last edited by Jaeger; 03/03/11 10:55 PM.
#3224019 - 03/04/11 07:58 AM Re: Programming help. [Re: Jaeger]  
Joined: Feb 2007
Posts: 50
Jaeger Offline
Junior Member
Jaeger  Offline
Junior Member

Joined: Feb 2007
Posts: 50
It works great! Thanks again.

#3397120 - 09/25/11 01:18 AM Re: Programming help. [Re: Jaeger]  
Joined: Sep 2006
Posts: 235
TheSilkMan Offline
Member
TheSilkMan  Offline
Member

Joined: Sep 2006
Posts: 235
"Be careful with such a statement." I learned this the hard way Nutty! But thanks for the text that binds that T6. I just had to leave it alone last night since everything I tried did not work.

#3397121 - 09/25/11 01:22 AM Re: Programming help. [Re: Jaeger]  
Joined: Sep 2006
Posts: 235
TheSilkMan Offline
Member
TheSilkMan  Offline
Member

Joined: Sep 2006
Posts: 235
Question though, can "KP6" in the statement "BTN T6 /T KD (KP6) /T KU (KP6)" be substituded with any of the macro names that you have created?

#3397129 - 09/25/11 01:40 AM Re: Programming help. [Re: Jaeger]  
Joined: Sep 2006
Posts: 235
TheSilkMan Offline
Member
TheSilkMan  Offline
Member

Joined: Sep 2006
Posts: 235
Something like: Cage = /T KD(RSHF u) /T KU (RSHF u)

BTN T1 Cage

#3397134 - 09/25/11 01:52 AM Re: Programming help. [Re: Jaeger]  
Joined: Sep 2006
Posts: 235
TheSilkMan Offline
Member
TheSilkMan  Offline
Member

Joined: Sep 2006
Posts: 235
Cage = /T KD(RSHF u) /T KU (RSHF u)

BTN T1 Cage

Ok, just tried it and it works, almost. That is, what I'd like is for the key be depressed and held in order for the cage to be bound. Upon release of the key, for it to stop. The above statement activates the cage when pressed but when you release the button it stays active until you press it again. What I'm looking for is the effect of a spring like button: with pressure it opens, without pressure it springs closed. So press the button the function is active until you take your finger off the button. Any suggestions Nutty?

#3397142 - 09/25/11 02:06 AM Re: Programming help. [Re: Jaeger]  
Joined: Sep 2006
Posts: 235
TheSilkMan Offline
Member
TheSilkMan  Offline
Member

Joined: Sep 2006
Posts: 235
Ok. I just nailed it:

Cage = /P KD(RSHF u) /R KU (RSHF u)
BTN T1 Cage

Whew, wish we had more examples in the online help. I blew all Friday trying to figure that out... :+(

#3397158 - 09/25/11 02:41 AM Re: Programming help. [Re: Jaeger]  
Joined: Sep 2006
Posts: 235
TheSilkMan Offline
Member
TheSilkMan  Offline
Member

Joined: Sep 2006
Posts: 235
Again, spoke too soon. Works on T1 throttle button, works in notepad. But undesired effects in a game and in windows. What is happening is the the key continuously repeats quickly on and off in the game. What I want is a true binding of key down just like if you hold it with your fingers on the keyboard. And key up when you release. Not sure if some sort of Direct X binding is the only thing that would get the desired spring-loaded button effect. If you are required to hold a button down to cage a missle you dont want it quickly uncaging until you release the button. Using /T toggle causes the rapid KD, KU repeating. So does the /P and /R. However, if I do it manually using the keyboard while in a game it acts like a real button down while held down and release when I take my fingers off the buttons.

Coming out of a game after using the programming and going into a word processor or windows results in weird mouse functionality. The mouse highlights everything when you click on something.
turning button and mouse emulation off doesnt stop it. Only rebooting does. frown

#3398214 - 09/26/11 11:20 PM Re: Programming help. [Re: Jaeger]  
Joined: Sep 2006
Posts: 235
TheSilkMan Offline
Member
TheSilkMan  Offline
Member

Joined: Sep 2006
Posts: 235
Can anyone help with this?


Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

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


Recent Topics
Headphones
by RossUK. 04/24/24 03:48 PM
Skymaster down.
by Mr_Blastman. 04/24/24 03:28 PM
The Old Breed and the Costs of War
by wormfood. 04/24/24 01:39 PM
Actors portraying British Prime Ministers
by Tarnsman. 04/24/24 01:11 AM
Roy Cross is 100 Years Old
by F4UDash4. 04/23/24 11:22 AM
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
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0