#3124104 - 10/26/10 03:57 PM
Re: Control Manager - How Do I?
[Re: 531 Ghost]
|
Joined: Jan 2001
Posts: 40,112
20mm
Site Emeritus Honorary Forums Manager
|
Site Emeritus Honorary Forums Manager
Sierra Hotel
Joined: Jan 2001
Posts: 40,112
Tucson AZ
|
Outstanding Ghost! Thanks, after all these years, I'm still a dummy!
Pat Tillman (1976-2004): 4 years Arizona State University, graduated with high honors. 5 seasons National Football League player, Arizona Cardinals. Forever United States Army Ranger.
|
|
#3167823 - 12/29/10 06:54 PM
Re: Control Manager - How Do I?
[Re: 531 Ghost]
|
Joined: Sep 2002
Posts: 11,273
531 Ghost
USMC
|
USMC
Veteran
Joined: Sep 2002
Posts: 11,273
Elizabeth City NC
|
At its simplest, programming the CH Fighterstick and CH Pro Throttle through Control Manger involves defining commands in a command file, which allows those commands to be referenced in descriptive text instead of actual keystrokes. The user then selects these commands from a list and assigns one or more to each button, based on the mode and shift state. Additional programming control is available through a text-based scripting language called CMS (Control Manager Scripting), allowing access to CH devices’ more powerful programming options. A cycle switch on the joystick or throttle can cycle through three modes. An option also exists to use CMS and have four modes. Programming for each mode is accessed via tabs in Control Manager for each joystick button, allowing the user to click through these quickly to fully understand the overall HOTAS programming. As you may, or may not have noticed, on either the FighterStick or the ProThrottle as you pressed either Button 3 (FS) or Button 1 (PT) the LEDs cycled each push of the button on either the FS or PT. If you've selected either the FighterStick or ProThrottle to select hardware modes, as Joe states, you'll have three hardware modes. Now, if you select CMS as your hardware mode selecter well, you'll have up to four hardware modes. This however requires some scripting. For this example we'll assume we have a FighterStick and wish to use Hat 3 to control the four Modes. Hat 3 generates Buttons 13 through 16. The script itself is straightforward, just a series of nested IF/THEN/ELSE blocks that set the CURRENTMODE variable based on which of the current position of Hat 3. It's useful to remember when using hats that they can only have one position active at a time so we don't need to make any allowance for a situation where B13 and B14 were closed at the same time. The script might look like this: SCRIPT IF( JS1.B13 ) THEN CURRENTMODE = MODE1; ELSE IF( JS1.B14 ) THEN CURRENTMODE = MODE2; ELSE IF( JS1.B15 ) THEN CURRENTMODE = MODE3; ELSE IF( JS1.B16 ) THEN CURRENTMODE = MODE4; ENDIF ENDIF ENDIF ENDIF ENDSCRIPT Assuming the above is true type the following in CM Editor... And there ya have it. Using a Command File, and setting up Mode Control, explained.
America will never be destroyed from the outside. If we falter and lose our freedoms, it will be because we destroyed ourselves.
|
|
#3206005 - 02/12/11 04:04 PM
Re: Control Manager - How Do I?
[Re: 531 Ghost]
|
Joined: Sep 2002
Posts: 11,273
531 Ghost
USMC
|
USMC
Veteran
Joined: Sep 2002
Posts: 11,273
Elizabeth City NC
|
Here's a question that gets asked a time or two: How do I get my mini-joystick to press buttons in [ insert sim name that does not support DX axes for a TDC ]? Or, how do I get my mini-joystick (or any axis for that matter) to press a button? Okay, here is a simple solution for that... First, you'll need CMS capabilities. Remember when you were creating a .map with Map Wizard and Control Manager asked if you wanted CMS capabilities? Didn't click Yes? No worries. You can still add CMS capabilities. How? Follow along... Next, you'll need a script to press the button you want on the axis... Assuming the mini-joystick is joystick 2 (typically it is)... You would use a script that looks something like this: // CMS Script File // // Game Title: // Written By: // Date: // script cms.b1 = [js2.a2 < 70 ]; // TDC UP (KBUP) cms.b2 = [js2.a2 > 170 ]; // TDC Down (KBDOWN) cms.b3 = [js2.a1 < 70 ]; // TDC Left (KBLEFT) cms.b4 = [js2.a1 > 170 ]; // TDC Right (KBRIGHT) endScript Okay, you may, or may not be asking, where do I put this script? Well, in the CM Editor, like this... Once you've written the script, then you'd go into the CMS Controls (Buttons) and assign each of the four buttons you'd like to assign. Like so... And there you have it
America will never be destroyed from the outside. If we falter and lose our freedoms, it will be because we destroyed ourselves.
|
|
#4519714 - 05/05/20 08:12 PM
Re: Control Manager - How Do I?
[Re: 531 Ghost]
|
Joined: Apr 2020
Posts: 12
Dragon36
Junior Member
|
Junior Member
Joined: Apr 2020
Posts: 12
|
9 years later I come along and find answers to my burning questions, thank you
Last edited by Dragon36; 05/05/20 10:16 PM.
|
|
|
|
|
|
Exodus
by RedOneAlpha. 04/18/24 05:46 PM
|
|
|
|
|
|
|
|