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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...