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 GAUGE TO ALLOW IN-FLIGHT REFUELING.....

Featured Replies

Hi all.Can someone provide a solution to allow an XML Gauge when clicked onto trigger the CONTROL F5 KEY SEQUENCE?I am using FS2K2 and load the Arrestor Cable program once simulator is started. So, when I want to refuel in flight I simply hit the CONTROL F5 key sequence and the Arrestor Cable DLL starts to top offmy planes fuel tanks.What I would like is a small XML Gauge ( I have no problem making the bmp map etc..) and most of the main part of the XML gauge code, but DO NOT know how I can when clicking on the guage have it trigger (Activate) the CONTROL KEY/F5 KEY SEQUENCE.Can anyone help me with how to write the code?For instance: Can I replace the following line of code with something that would ACTIVATE THE CONTROL KEY/F5 KEY SEQUENCE, THEREBY STARTING THE REFUELING PROCESS THAT HAPPENS WHEN THE Arrestor Cable DLL senses that one has depressed those two keys?In-Flight-Refuel(G:Var1) ! (>G:Var1) 0 (>K:SOME_EVENT)I have looked through the Key Events Document that comes with the SDKand have found nothing relating to filling the fuel tanks.Is there some way to replace the K:SOME_EVENT with something thattells the simulator to ACTIVEATE THE MENTIONED TWO KEYS, and hopefully then tell the Arrrestor Cable program to start refueling the plane? Sorry if my question is worded poorly........Thanks in advance for any help.George

Hi, Only in FS2004 we have:(

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Jan,Thank you for the feedback/help. Sounds like FS2K2 doesn't have a KEvent for this function. If I may further bother you.......Is there a way in XML coding to send Keyboard Sequences to the simulator using the mouse click function? Example: Click on an icon AND THE RESULT WOULD BE THAT THE XML GAUGE SENDS/INFORMS THE SIMULATOR THAT IT SHOULD RESPOND TO A GIVENKEYBOARD KEY(S)?So......lets say we wanted a icon that when clicked on, would send theSHIFT KEY F5 Key sequence to the simulator. Now as mentioned in original question......in this case ( I made a mistake........the Arrestor Cable DLL reponses to SHIFT-F5 KEY sequence ...............not CONTROL-F5 KEY sequence), when onehits those keys the Arrestor Cable DLL senses key combo and thensets up a loop of some sort where it increases the fuel load to maximum over a period of time ......ex: 1200GPM.Thanks for any further feedback.George

George,As far as i know the only things you can do in xml with K-Events are the events described in the SDK.Jan"Procul Negotiis"

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Jan,Thanks for your answer. I was afraid you would say that. Guess the only way to be able to click on a guage and have it transmit givenkey strokes to the simulator or a third party dll ...whatever...would be to design the gauge with C code. No need to respond to this comment. You provided the answer.hang in there,George

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.