Forums » Technology » Flight Sim Controllers » T.A.R.G.E.T. (Thrustmaster) » HOLD Command??? Active Topics You are not logged in. [Log In] [Register User]
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
Hop to:
#3529208 - 02/29/12 09:47 PM HOLD Command???
The Nephilim Offline
S3D GuRu
Senior Member

Registered: 01/26/02
Posts: 3992
Loc: 3rd Stone from the Sun !!
Hey all,

I decided after I had to reinstall Windows to give TARGET a try and I am at a standstill.. I am trying to program the Arrow Keys to my H4 Button on my Cougar and I need it to be HELD or REPEATED as long as I hold the button to SLEW the Seeker head in TAW..

Now I thought it was as simple as just inputting a HOLD command VS PRess but that does NOT seem to work??

How can I get the KEypress to repeat or like I am holding that key down steadily??

THNX hope it is something I overlooked and not a limitation of the Software??
_________________________
Intel i5 3570K @ 4.10ghz / Corsair XMS 8gb / CM Hyper 212+ Heatsink & DualFan / Asus P8Z68-V Gen3 Mobo / 2- Evga 660GTX's SLI / RocketFish SC 7.1 / 3 - Sharp DLP XR-10XL's / 3 - 45" Screens w/Screen Goo / nVidia 3D vision / Win7 64bit OS / ThrustMaster Cougar HOTAS w/CH Rudder Pedals / Cougar MFD's / CM HAF 932 Full Tower / Boatload of Joy


Top
#3529213 - 02/29/12 09:57 PM Re: HOLD Command??? [Re: The Nephilim]
Teej Offline
Member

Registered: 07/02/05
Posts: 1503
Script or GUI?

In GUI you simply set it to 'hold' rather than 'pulse'.

In script, instead of PULSE you use DOWN+ on the MapKey command, and use a MapKeyR command for the UP+
_________________________
Virtual Thunderbirds, LLC | Sponsored by Thrustmaster

Top

#3529220 - 02/29/12 10:06 PM Re: HOLD Command??? [Re: The Nephilim]
The Nephilim Offline
S3D GuRu
Senior Member

Registered: 01/26/02
Posts: 3992
Loc: 3rd Stone from the Sun !!
GUI, I did the Hold command that does NOT seem to work??


Edited by The Nephilim (02/29/12 10:32 PM)
_________________________
Intel i5 3570K @ 4.10ghz / Corsair XMS 8gb / CM Hyper 212+ Heatsink & DualFan / Asus P8Z68-V Gen3 Mobo / 2- Evga 660GTX's SLI / RocketFish SC 7.1 / 3 - Sharp DLP XR-10XL's / 3 - 45" Screens w/Screen Goo / nVidia 3D vision / Win7 64bit OS / ThrustMaster Cougar HOTAS w/CH Rudder Pedals / Cougar MFD's / CM HAF 932 Full Tower / Boatload of Joy

Top
#3529261 - 02/29/12 11:58 PM Re: HOLD Command??? [Re: The Nephilim]
Teej Offline
Member

Registered: 07/02/05
Posts: 1503
Not sure what to say..it works for me...

Maybe go into your profile, click "view script" and paste the output here. Might be able to spot the trouble from that.
_________________________
Virtual Thunderbirds, LLC | Sponsored by Thrustmaster

Top
#3529586 - 03/01/12 11:08 AM Re: HOLD Command??? [Re: The Nephilim]
The Nephilim Offline
S3D GuRu
Senior Member

Registered: 01/26/02
Posts: 3992
Loc: 3rd Stone from the Sun !!
ok I just made 1 command and it is the UARROW One and I put in there to Hold but it don't work???:



Code:
include "target.tmh"
int main()
{
	Configure(&Joystick, MODE_EXCLUDED);
	Configure(&Throttle, MODE_EXCLUDED);
	Configure(&T16000, MODE_EXCLUDED);
	Configure(&LMFD, MODE_EXCLUDED);
	Configure(&RMFD, MODE_EXCLUDED);
	if(Init(&EventHandle)) return 1;
	SetKBRate(32, 50);
	SetKBLayout(KB_ENG);
	MapKey(&HCougar, H4U, UARROW);
	MapAxis(&HCougar, JOYX, DX_X_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&HCougar, JOYX, 0, 0, 0, 0, 0);
	MapAxis(&HCougar, JOYY, DX_Y_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&HCougar, JOYY, 0, 0, 0, 0, 0);
	MapAxis(&HCougar, RUDDER, 0, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&HCougar, RUDDER, 0, 0, 0, 0, 0);
	MapAxis(&HCougar, THROTTLE, DX_Z_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&HCougar, THROTTLE, 0, 0, 0, 0, 0);
	MapAxis(&HCougar, ANT_ELEV, DX_THROTTLE_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&HCougar, ANT_ELEV, 0, 0, 0, 0, 0);
	MapAxis(&HCougar, MAN_RNG, DX_SLIDER_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&HCougar, MAN_RNG, 0, 0, 0, 0, 0);
	MapAxis(&HCougar, RDR_X, DX_XROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&HCougar, RDR_X, 0, 0, 0, 0, 0);
	MapAxis(&HCougar, RDR_Y, DX_YROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&HCougar, RDR_Y, 0, 0, 0, 0, 0);

}
int EventHandle(int type, alias o, int x)
{
	DefaultMapping(&o, x);
}





I also took a screenshot of the TARGET GUI where I programmed that ketpress....I also just uninstalled TARGET unplugged my devices and reinstalled and plugged the devices back in Stil does NOT work???




Uploaded with ImageShack.us


Edited by The Nephilim (03/01/12 11:34 AM)
_________________________
Intel i5 3570K @ 4.10ghz / Corsair XMS 8gb / CM Hyper 212+ Heatsink & DualFan / Asus P8Z68-V Gen3 Mobo / 2- Evga 660GTX's SLI / RocketFish SC 7.1 / 3 - Sharp DLP XR-10XL's / 3 - 45" Screens w/Screen Goo / nVidia 3D vision / Win7 64bit OS / ThrustMaster Cougar HOTAS w/CH Rudder Pedals / Cougar MFD's / CM HAF 932 Full Tower / Boatload of Joy

Top
#3529754 - 03/01/12 01:53 PM Re: HOLD Command??? [Re: The Nephilim]
Teej Offline
Member

Registered: 07/02/05
Posts: 1503
I don't have a Cougar plugged in, but I confirmed it works with the UARROW key on my Warthog.

Try running the configuration and then using the "device analyzer" for which there's a button on the window that pops up when you run the configuration. See if it registers the UARROW.

Also remember this isn't like Foxy - when you "run configuration" you must leave it running while you play the game - you don't "download" the profile to the Cougar like Foxy did.
_________________________
Virtual Thunderbirds, LLC | Sponsored by Thrustmaster

Top
#3529926 - 03/01/12 05:16 PM Re: HOLD Command??? [Re: The Nephilim]
The Nephilim Offline
S3D GuRu
Senior Member

Registered: 01/26/02
Posts: 3992
Loc: 3rd Stone from the Sun !!
yes I ran the Configuration and it registers the Keypress just does NOT HOLD it???
_________________________
Intel i5 3570K @ 4.10ghz / Corsair XMS 8gb / CM Hyper 212+ Heatsink & DualFan / Asus P8Z68-V Gen3 Mobo / 2- Evga 660GTX's SLI / RocketFish SC 7.1 / 3 - Sharp DLP XR-10XL's / 3 - 45" Screens w/Screen Goo / nVidia 3D vision / Win7 64bit OS / ThrustMaster Cougar HOTAS w/CH Rudder Pedals / Cougar MFD's / CM HAF 932 Full Tower / Boatload of Joy

Top
#3529955 - 03/01/12 05:54 PM Re: HOLD Command??? [Re: The Nephilim]
Teej Offline
Member

Registered: 07/02/05
Posts: 1503
OK, I plugged in my Cougar and tried it - works fine there, too.

Went to a browser, held H4U and it kept scrolling up...

The only thing that strikes me different is you don't have buttons set up for your layers.

my script gets this line added, because I do:

SetShiftButton(&Joystick, S3, &Throttle, BSF, BSB, 0);

Note: You can't simply insert that into your scripted output above - there's no way to read it back into GUI. You'd have to set your layers options - "edit layers" - top right of the middle section of the screen in your screenshot of TARGET above.

Once you do that, if you 'view script' again, the line with UARROW should end up as:

MapKeyIOUMD(&HCougar, H4U, UARROW, UARROW, UARROW, UARROW, UARROW, UARROW);

The code you have should work just fine...but the difference is what pointed me at the layers not being set.

T
_________________________
Virtual Thunderbirds, LLC | Sponsored by Thrustmaster

Top
#3530046 - 03/01/12 07:56 PM Re: HOLD Command??? [Re: The Nephilim]
The Nephilim Offline
S3D GuRu
Senior Member

Registered: 01/26/02
Posts: 3992
Loc: 3rd Stone from the Sun !!
Well I input that line there and is still does NOT work?? I also called tech support they said they would have to get back with me as he did NOT know why it did NOT work either..
_________________________
Intel i5 3570K @ 4.10ghz / Corsair XMS 8gb / CM Hyper 212+ Heatsink & DualFan / Asus P8Z68-V Gen3 Mobo / 2- Evga 660GTX's SLI / RocketFish SC 7.1 / 3 - Sharp DLP XR-10XL's / 3 - 45" Screens w/Screen Goo / nVidia 3D vision / Win7 64bit OS / ThrustMaster Cougar HOTAS w/CH Rudder Pedals / Cougar MFD's / CM HAF 932 Full Tower / Boatload of Joy

Top
#3530083 - 03/01/12 08:58 PM Re: HOLD Command??? [Re: The Nephilim]
Teej Offline
Member

Registered: 07/02/05
Posts: 1503
I said any changes you make in that script WILL NOT have any effect on the GUI setup...
_________________________
Virtual Thunderbirds, LLC | Sponsored by Thrustmaster

Top
#3530747 - 03/02/12 03:34 PM Re: HOLD Command??? [Re: The Nephilim]
The Nephilim Offline
S3D GuRu
Senior Member

Registered: 01/26/02
Posts: 3992
Loc: 3rd Stone from the Sun !!
OK I got it fixxed seems it worked all along just not like I thought it was going to work in the Event Tester..

What it does if you input a Hold Command it will show the Amount of time you hel the Joystcikbutton in Milliseconds to show it is Holding it will NOT REPEAT on the screen under the event tester..

So it works I tried it in the Game and my LANTRIslews like it is supposed too..

THNX for the Help. I think I am going to use this VS Foxy as I do NOT need to get the Cougar DRIVER PRogram running which is a PITA!!



EDIT: I need to figure out how to get the Mouse working on the Throttle that is the RDR Cursor...


Edited by The Nephilim (03/02/12 04:02 PM)
_________________________
Intel i5 3570K @ 4.10ghz / Corsair XMS 8gb / CM Hyper 212+ Heatsink & DualFan / Asus P8Z68-V Gen3 Mobo / 2- Evga 660GTX's SLI / RocketFish SC 7.1 / 3 - Sharp DLP XR-10XL's / 3 - 45" Screens w/Screen Goo / nVidia 3D vision / Win7 64bit OS / ThrustMaster Cougar HOTAS w/CH Rudder Pedals / Cougar MFD's / CM HAF 932 Full Tower / Boatload of Joy

Top
#3530876 - 03/02/12 06:22 PM Re: HOLD Command??? [Re: The Nephilim]
The Nephilim Offline
S3D GuRu
Senior Member

Registered: 01/26/02
Posts: 3992
Loc: 3rd Stone from the Sun !!
Well from what they say I can ONLY PRogram the Mouse with an X or Y axis so that rules using the Cursor control..but in TARGET they have the CRS that can be assigned the Mouse X&Y Axis but It does NOT seem to work?? How can I get the Mouse Cursor assigned to the RDR Cursur button on the Cougar throttle??

I also have a new Problem now.. I made a Profile for BMS 4.32 and when I run it TARGET tells me I have a error in line 21?? Where does line 1 Start or where is line 21 at??


HERE IS THE EXACT CODE ERROR TARGET GIVES:


Compile Error: struct field expected in Falcon 4 BMS 4.32.tmc at line 21



Code:
include "target.tmh"
int main()
{
	Configure(&Joystick, MODE_EXCLUDED);
	Configure(&Throttle, MODE_EXCLUDED);
	Configure(&T16000, MODE_EXCLUDED);
	Configure(&LMFD, MODE_EXCLUDED);
	Configure(&RMFD, MODE_EXCLUDED);
	if(Init(&EventHandle)) return 1;
	SetKBRate(32, 50);
	SetKBLayout(KB_ENG);
	SetShiftButton(&HCougar, T1, 0, 0, 0, IOTOGGLE);
	MapKeyIOUMD(&HCougar, TG1, '/', 0, 0, 0, 0, 0);
	MapKeyIOUMD(&HCougar, S2, PULSE+SPC, 0, 0, 0, 0, 0);
	MapKeyIOUMD(&HCougar, S4, PULSE+BSP, 0, 0, 0, 0, 0);
	MapKeyIOUMD(&HCougar, S1, PULSE+ENT, 0, 0, 0, 0, 0);
	MapKeyIOUMD(&HCougar, H2U, PULSE+L_SHIFT+KP8, 0, 0, 0, 0, 0);
	MapKeyIOUMD(&HCougar, H2R, PULSE+L_SHIFT+KP6, 0, 0, 0, 0, 0);
	MapKeyIOUMD(&HCougar, H2D, PULSE+L_SHIFT+KP2, 0, 0, 0, 0, 0);
	MapKeyIOUMD(&HCougar, H2L, PULSE+L_SHIFT+KP4, 0, 0, 0, 0, 0);
	MapKeyIOUMD(&HCougar, T1, PULSE+KP., PULSE+KP., 0, 0, 0, 0);
	MapKeyIOUMD(&HCougar, T2, DARROW, 0, 0, 0, 0, 0);
	MapKeyIOUMD(&HCougar, T3, UARROW, 0, 0, 0, 0, 0);
	MapKeyIOUMD(&HCougar, T4, RARROW, 0, 0, 0, 0, 0);
	MapKeyIOUMD(&HCougar, T5, LARROW, 0, 0, 0, 0, 0);
	MapKeyIOUMD(&HCougar, T6, L_ALT, 0, 0, 0, 0, 0);
	MapKeyIOUMD(&HCougar, T7, PULSE+'d', 0, 0, 0, 0, 0);
	MapKeyIOUMD(&HCougar, T8, PULSE+'j', 0, 0, 0, 0, 0);
	MapKeyIOUMD(&HCougar, T9, L_CTL+'b', 0, 0, 0, 0, 0);
	MapKeyIOUMD(&HCougar, T10, 'b', 0, 0, 0, 0, 0);
	MapAxis(&HCougar, JOYX, DX_X_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&HCougar, JOYX, 0, 0, 0, 0, 0);
	MapAxis(&HCougar, JOYY, DX_Y_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&HCougar, JOYY, 0, 0, 0, 0, 0);
	MapAxis(&HCougar, RUDDER, 0, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&HCougar, RUDDER, 0, 0, 0, 0, 0);
	MapAxis(&HCougar, THROTTLE, DX_Z_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&HCougar, THROTTLE, 0, 0, 0, 0, 0);
	MapAxis(&HCougar, ANT_ELEV, DX_THROTTLE_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&HCougar, ANT_ELEV, 0, 0, 0, 0, 0);
	MapAxis(&HCougar, MAN_RNG, DX_SLIDER_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&HCougar, MAN_RNG, 0, 0, 0, 0, 0);
	MapAxis(&HCougar, RDR_X, 0, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&HCougar, RDR_X, 0, 0, 0, 0, 0);
	MapAxis(&HCougar, RDR_Y, 0, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&HCougar, RDR_Y, 0, 0, 0, 0, 0);

}
int EventHandle(int type, alias o, int x)
{
	DefaultMapping(&o, x);
}


Edited by The Nephilim (03/02/12 06:53 PM)
_________________________
Intel i5 3570K @ 4.10ghz / Corsair XMS 8gb / CM Hyper 212+ Heatsink & DualFan / Asus P8Z68-V Gen3 Mobo / 2- Evga 660GTX's SLI / RocketFish SC 7.1 / 3 - Sharp DLP XR-10XL's / 3 - 45" Screens w/Screen Goo / nVidia 3D vision / Win7 64bit OS / ThrustMaster Cougar HOTAS w/CH Rudder Pedals / Cougar MFD's / CM HAF 932 Full Tower / Boatload of Joy

Top
#3530943 - 03/02/12 07:42 PM Re: HOLD Command??? [Re: The Nephilim]
Teej Offline
Member

Registered: 07/02/05
Posts: 1503
Neph...I'm sorry I ever had you do that 'view script' thing, it was just a diagnostic.

When you're working in GUI, what you see there in the "script" format is 100% irrelevant. Line 21 has absolutely zero to do with that file you pasted.

That said, I know exactly what your problem is.

***IN THE GUI, NOT IN THAT SCRIPT FILE*** go to the mapping where you define trigger stage 1 to the '.' on the keypad. Go into the virtual keyboard and click the "use USB codes" checkbox. So far as I know that's only required for using the numeric keypad '.' button.

Just a little bug.
_________________________
Virtual Thunderbirds, LLC | Sponsored by Thrustmaster

Top
#3530959 - 03/02/12 08:03 PM Re: HOLD Command??? [Re: The Nephilim]
The Nephilim Offline
S3D GuRu
Senior Member

Registered: 01/26/02
Posts: 3992
Loc: 3rd Stone from the Sun !!
OK Will NOT post Script unless asked I thought there was valuable info there that would be needed,, hehe!!

Now that seemed to make the Profile launch but I am unable to get any of the Keypresses on the stick to work.. I load the BMS 4.32 Profile goto test it and no keypresses work?? they are programmed just none are working??


I just checked the TAW Profile that works NP's??? I have no idea what could be wrong perhaps a wrongly programmed key or similar??


Edited by The Nephilim (03/02/12 08:30 PM)
_________________________
Intel i5 3570K @ 4.10ghz / Corsair XMS 8gb / CM Hyper 212+ Heatsink & DualFan / Asus P8Z68-V Gen3 Mobo / 2- Evga 660GTX's SLI / RocketFish SC 7.1 / 3 - Sharp DLP XR-10XL's / 3 - 45" Screens w/Screen Goo / nVidia 3D vision / Win7 64bit OS / ThrustMaster Cougar HOTAS w/CH Rudder Pedals / Cougar MFD's / CM HAF 932 Full Tower / Boatload of Joy

Top
#3530986 - 03/02/12 08:58 PM Re: HOLD Command??? [Re: The Nephilim]
Teej Offline
Member

Registered: 07/02/05
Posts: 1503
Sorry - I thought you were looking for "line 21" in the script...that was my concern. biggrin

Stunningly, I don't have any Falcon installed right now...but I know it works in concept as I wrote a very Jagstang-like profile for F4AF with the Warthog.

T
_________________________
Virtual Thunderbirds, LLC | Sponsored by Thrustmaster

Top
#3531000 - 03/02/12 09:22 PM Re: HOLD Command??? [Re: The Nephilim]
The Nephilim Offline
S3D GuRu
Senior Member

Registered: 01/26/02
Posts: 3992
Loc: 3rd Stone from the Sun !!
Well I guess Ill just start from scratch with the F4 Profile,,, Crap!!



Edited by The Nephilim (03/03/12 06:59 PM)
_________________________
Intel i5 3570K @ 4.10ghz / Corsair XMS 8gb / CM Hyper 212+ Heatsink & DualFan / Asus P8Z68-V Gen3 Mobo / 2- Evga 660GTX's SLI / RocketFish SC 7.1 / 3 - Sharp DLP XR-10XL's / 3 - 45" Screens w/Screen Goo / nVidia 3D vision / Win7 64bit OS / ThrustMaster Cougar HOTAS w/CH Rudder Pedals / Cougar MFD's / CM HAF 932 Full Tower / Boatload of Joy

Top
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
Hop to:

Moderator:  531 Ghost, RacerGT 
 

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