January 30, 200818 yr OK, I know the basics of XML gauge programming but one thing bothers me; how to make a key input do something? For example, I want that when user presses "K" key that my gauge cuts the throttle. I know how to achieve this with a click command, but what ever I do I can't make it react to key inputs:Code: <---this works fine but I want to do it by pressing a key on the keyboard-----------------------------------------------------"THROTTLE_CUT"this doesn't workI know that I'm suppose to use ... but that's as far as I go on this matter. One last thing, I know that the command for cutting the throttle is "F1" but I gave this only as an example.Thanx for any help
January 30, 200818 yr Moderator (>K:THROTTLE_CUT) Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
February 25, 200818 yr Hi guys,I've been trying to do something similar with the following code:AceXML Documenttest.xml"Space"...with no joy. The
February 25, 200818 yr Moderator Hint: Open the g1000.cab file and look at the code for the g1000_pfd.xml script...The section immediately follows the closing tag... ;) "Space" Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
February 25, 200818 yr Thanks a lot Bill, that did the trick :). Cheers,DDP.S. If anyone else is using the code above, I've subsequently discovered that the quotes within which I enclosed "Space" are superfluous i.e. the line should read:Space
Create an account or sign in to comment