Sign in to follow this  
Guest SIDDickDastardly

XML Key action

Recommended Posts

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

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi guys,I've been trying to do something similar with the following code:AceXML Documenttest.xml"Space"...with no joy. The

Share this post


Link to post
Share on other sites

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"

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this