April 11Apr 11 Greeting to all you Young Uns. It seems that I need to create a button to turn on and off the Altitude Hold in the CaptSim C130, Maybe the 'Normal\Manual' switch too. I have difficulty swinging my view around the cockpit to turn these (and other features) on and off with the mouse chasing it around the screen, especially when night flying. The event seems to be 'CS_INPUT_P17_003_SW2| (>IE: ' but I haven't a clue how to create a button with it that will turn on and off this function. I have watched many You Tube Videos but the creators seem to rush on as if we all know loads already. Any basic starting points would be very helpful. Thanking you all in advance. Regards Crusty Old Cold War Harrier Task Force Veteran
April 11Apr 11 Commercial Member You seem to have found this IE in the AAO event list that you opened from thecAdd Button dialog? In that list, click on that event once, so the sub-set of its generic bindings opens (the so-called BVars). There should be one named ..._Toggle. Double click that to transfer it to the button. Normally that does the trick for a momentary button. LORBY-SI
April 11Apr 11 Author I can create 2 buttons, one for on and one for off using '1' and '0'. Button 10=on and button 11=off on my yoke. Cannot make a single button do both actions though. Under top level CS_INPUT_P17_003_SW2| (>IE: there are entries for inc, dec, toggle, but they dont operate when tested. Thank you for your prompt reply
April 12Apr 12 Commercial Member 17 hours ago, Tony770 said: I can create 2 buttons, one for on and one for off using '1' and '0'. Button 10=on and button 11=off on my yoke. Cannot make a single button do both actions though. Under top level CS_INPUT_P17_003_SW2| (>IE: there are entries for inc, dec, toggle, but they dont operate when tested. Thank you for your prompt reply Strange that the Toggle-BVar wouldn't work. But you never know, developers can do whatever they want in that regard. Try scripting the toggle functionality 1 (IE:CS_INPUT_P17_003_SW2) - (>IE:CS_INPUT_P17_003_SW2) (I don't have this plane so I cannot test it. But if the IE behaves in the way that you describe, the script should do it. It reads the value of the IE, subtracts it from 1, and writes the result back into the IE) Small scripts like this one don't have to be implemented with the script editor. You can copy&paste them directly into the button assignment by switching the Key Down/Key Up to "MAN" (with the little green button below the box), then selecting "RPN" as the type and pasting the code into the box. Edited April 12Apr 12 by Lorby_SI LORBY-SI
Create an account or sign in to comment