Jump to content

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

(>K:THROTTLE_CUT)


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556

Interests: Gauge Programming - 3d Modeling for Milviz

Many Thanks to All That Donated To Our Server Drive!

Share this post


Link to post
Share on other sites
Guest SIDDickDastardly

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"


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556

Interests: Gauge Programming - 3d Modeling for Milviz

Many Thanks to All That Donated To Our Server Drive!

Share this post


Link to post
Share on other sites
Guest SIDDickDastardly

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    10%
    $2,505.00 of $25,000.00 Donate Now
×
×
  • Create New...