* User Profile

Welcome, Guest. Please login or register.

Login with username, password and session length

Who's Online

  • *Users: 1
  • *Guests: 6
  • *Total: 7

Our Discord

Author Topic: XML to Lua ??  (Read 101 times)

Offline Stinger2k2

  • Forum GURU
  • *
  • Posts: 15
  • Aviation Enthusiast
  • First Name: Keith
  • Home Location: Bexhill , England
XML to Lua ??
« on: February 27, 2019, 01:55:26 PM »
Hi Guys and thanks for looking,
I have found the following XML code in a which operates
a keypad on a Garmin GCU477.(The code is only for the letter A, there
is more covering the rest of the alphabet)

I didn't find anything on a FSUIPC/LINDA trace so somehow I am
looking to use this code but operate it from a hardware button.

My question is this....Can I use part of this code directly as a Lua script?
If not, what do I need to do to have it operated from a joystick button?

I am fairly conversant in Lua and have many other buttons operating other

Here's the code....

<MouseArea id="Letter A">
      <MouseClick id="MouseClick">
         <Script>65 chr (&gt;@c:IcaoSearchEnterChar) 1 (>L:BUFFER_BTN_FMC,number)</Script>

Offline Trevor Hale

  • Administrator
  • I am chained to this website!
  • *
  • Posts: 3,793
  • First Name: Trevor
  • Home Location: New Liskeard, Ontario
Re: XML to Lua ??
« Reply #1 on: February 28, 2019, 02:09:11 PM »
That looks to me like "KEY press to TO MOUSE function code"

The function of assigning a key press to a mouse location for clicking is easy to do with FSUIPC.
I am guessing the gauge your talking about has a button your supposed to use your mouse on to control the gauge.  If you try pressing the letter A on your keyboard I am guessing it will also control the gauge.
With that being said, I see no issues why you couldn't have the joystick button send keypress "A" when the joystick button is pressed..  Again this would be done in FSUIPC.

« Last Edit: February 28, 2019, 02:09:32 PM by Trevor Hale »
Trevor Hale


Director of Operations
Worldflight Team USA



FlightSimExpo 2019




Will Depart in...

Recent Posts

Assortment of Phidgets Cards for Sale
by kenrosefire
[Today at 01:07:08 AM]
SLAVX Model 4 Panel For Sale
by kenrosefire
[Today at 12:50:30 AM]
Join me on Vatsim Tonight
by Trevor Hale
[March 23, 2019, 11:12:30 AM]
Complete 737-800 cockpit - moving sale
by Trevor Hale
[March 23, 2019, 11:10:21 AM]
Screen coming together
by jackpilot
[March 23, 2019, 10:11:50 AM]
Wanted: 737 CDU
by Fabian
[March 22, 2019, 07:07:59 PM]
Flight Scoring Platforms....
by bernard S
[March 22, 2019, 05:55:18 PM]
SALE! Airbus A320 trainer, located near Gatwick UK
by nic
[March 21, 2019, 09:35:58 PM]
Help with wiring up FDS map light
by Skysurfer170
[March 21, 2019, 02:36:03 PM]
Boeing 737-800 Next Generation Simulator
by blueskydriver
[March 21, 2019, 07:42:41 AM]
Great US switch supplier
by Bob Reed
[March 20, 2019, 09:21:11 PM]
Great video on a Caravelle project
by Lomaric
[March 20, 2019, 06:10:00 PM]
Holy Grail ?
by bernard S
[March 20, 2019, 06:05:06 PM]
737 MAX
by FredK
[March 19, 2019, 11:07:27 PM]
Sim Speaker System in a small package...
by sagrada737
[March 19, 2019, 01:32:30 PM]
Prosim and RSP TQ interfacing
by jfuenmayor
[March 18, 2019, 02:04:20 PM]
OEM 737 classic liners for sale
by Gallie
[March 18, 2019, 09:54:39 AM]
B737-200 throttle quadrant for sale
by Gallie
[March 18, 2019, 08:56:25 AM]
What have you done for your simulator today?
by 757Simulator
[March 18, 2019, 04:20:49 AM]
JetMax TQ for Sale...
by sagrada737
[March 16, 2019, 02:57:19 PM]
Revolution Simproducts V2.0 Plug & Play Throttle help
by jfuenmayor
[March 14, 2019, 10:13:05 PM]
Attention All Members and Guests
by Trevor Hale
[March 13, 2019, 06:25:07 PM]
Creality CR-10S 3d printer.
by sagrada737
[March 12, 2019, 07:57:11 PM]
CPFlight EFIS737Pro2
by Lomaric
[March 11, 2019, 05:18:20 PM]
Homebuilt seats and a question
by Trevor Hale
[March 11, 2019, 01:32:17 PM]
777 Throttle - sold
by mattking247
[March 10, 2019, 07:13:29 PM]
General Aiation FLIGHT GEAR, For sale
by fairchild
[March 10, 2019, 05:17:41 PM]
I HAD an idea for an inexpensive B737 cockpit - Not so inexpensive now!
by bernard S
[March 10, 2019, 01:03:02 PM]
B737 Heads Up Guidance Systems (HUD)
by navymustang
[March 10, 2019, 12:48:09 PM]
JetMax components for sale - ALL SOLD
by 737SimGuy
[March 08, 2019, 02:41:41 PM]