Cockpit

* User Profile

Welcome, Guest. Please login or register.

Login with username, password and session length

Who's Online

  • *Users: 0
  • *Guests: 50
  • *Total: 50

Our Discord

Author Topic: XML to Lua ??  (Read 242 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 gauge.cab 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
functions.

Here's the code....

<MouseArea id="Letter A">
      <FloatPosition>16.000,151.000</FloatPosition>
      <Size>45,30</Size>
      <CursorType>Hand</CursorType>
      <MouseClick id="MouseClick">
         <Script>65 chr (&gt;@c:IcaoSearchEnterChar) 1 (>L:BUFFER_BTN_FMC,number)</Script>
         <ClickType>LeftSingle</ClickType>
         <ClickRepeat>True</ClickRepeat>
      </MouseClick>
   </MouseArea>

Offline Trevor Hale

  • Administrator
  • I am chained to this website!
  • *
  • Posts: 3,840
    • Cockpitbuilders.com
  • 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.
Trev

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

Owner
http://www.cockpitbuilders.com

Director of Operations
Worldflight Team USA
http://www.worldflightusa.com

VATSIM:

 

COUNTDOWN TO WF2019


WORLDFLIGHT TEAM USA

Will Depart in...

Recent Posts

Looking, second-hand B737 ICS MIP panels with subpanels
by fairchild
[Today at 10:57:07 AM]
items/oem from overhead
by mickc
[Today at 10:14:16 AM]
X-Plane 11 multi-monitor & Fly Elise-ng - tuto
by blueskydriver
[July 20, 2019, 05:33:45 AM]
FOR SALE: CA & FO Cockpit Seats with J Rails
by Philip
[July 19, 2019, 04:23:24 PM]
For sale
by TNT
[July 18, 2019, 07:57:29 PM]
For Sale: Dual Linked Rudder Pedals RSP
by Philip
[July 17, 2019, 06:47:22 PM]
737-800 Arduino X-Plane Build
by kurt-olsson
[July 17, 2019, 02:55:53 PM]
Boeing 737 Dual Linked Yokes
by tennyson
[July 16, 2019, 08:59:28 PM]
Flyengravity desktop MIP (SOLD)
by patiju
[July 16, 2019, 02:01:48 PM]
Flight deck solutions FDS-B737NG-PRO-MX- rudder pedal
by Mach7
[July 16, 2019, 04:52:26 AM]
Korry 318 gets hot.
by Joe Lavery
[July 16, 2019, 03:49:14 AM]
What have you done for your simulator today?
by blueskydriver
[July 14, 2019, 10:25:43 AM]
Where to find or how to make this switch guard?
by blueskydriver
[July 13, 2019, 03:46:30 AM]
NIB 747-400 ThrottleTek + FDS CDUs x2 [SOLD]
by blueskydriver
[July 12, 2019, 10:53:12 PM]
FDS 5V IBL Dimmer and Expansion Board / Pokeys 57E (SOLD)
by fsaviator
[July 10, 2019, 08:35:14 PM]
PM MCP.ini Question...
by ScottThePilot
[July 10, 2019, 12:56:38 PM]
Stab Trim Indicator...
by ScottThePilot
[July 09, 2019, 12:56:42 PM]
Teensy LC Throttle Quadrant
by kurt-olsson
[July 08, 2019, 08:09:41 AM]
Multiple Teensys, sketch upload question
by kurt-olsson
[July 08, 2019, 08:05:27 AM]
Anders Simparts - Summer info
by archen
[July 07, 2019, 03:30:31 AM]
Group buy - Oshino OL-2405BP lamps - interested?
by kattz
[July 03, 2019, 09:26:22 PM]
Prosim737 Ver 2 license for sale
by ifeliciano
[July 02, 2019, 09:58:37 AM]
Anyone have this connector and possibly a clamp as well for the yoke?
by mickc
[July 01, 2019, 08:01:04 PM]
Happy Canada Day
by jackpilot
[July 01, 2019, 10:09:40 AM]
MH 370 Article
by FredK
[June 30, 2019, 07:28:41 PM]
Calling any B747 mechs... please help
by kattz
[June 30, 2019, 06:08:50 PM]
International shipping?
by jackpilot
[June 27, 2019, 08:29:07 AM]
Flooring Installed!
by jackpilot
[June 25, 2019, 05:49:57 PM]
How much room between center pedestal and seat?
by jackpilot
[June 25, 2019, 08:19:42 AM]
2020 Microsoft Flight Simulator - new at E3 2019
by blueskydriver
[June 24, 2019, 02:29:16 PM]