Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

XML Key action

Featured Replies

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

  • Moderator

(>K:THROTTLE_CUT)

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

It works now, thank you.Take care

  • 4 weeks later...

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

  • 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

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.