Cockpit

* User Profile

Welcome, Guest. Please login or register.

Login with username, password and session length

Who's Online

  • *Users: 0
  • *Guests: 23
  • *Total: 23

Our Discord

Author Topic: XML to Lua ??  (Read 169 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,832
    • 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:

 

FlightSimExpo 2019

FsExpo

COUNTDOWN TO WF2019


WORLDFLIGHT TEAM USA

Will Depart in...

Recent Posts

Serial Key
by luisgordo
[May 21, 2019, 05:40:44 PM]
X-Plane 737-800 Build
by jackpilot
[May 21, 2019, 04:08:02 PM]
Piper Aztec PA23-250 (Help Needed)
by jackpilot
[May 21, 2019, 04:01:18 PM]
What have you done for your simulator today?
by blueskydriver
[May 20, 2019, 07:28:19 PM]
GSX across networked client visual computers
by zillmer
[May 20, 2019, 05:38:53 PM]
Jetmax TQ - motorized it?
by FredK
[May 20, 2019, 07:58:36 AM]
Mickey's Flightdeck - A Boeing 737-800 Cockpit on Youtube
by Extraterra
[May 20, 2019, 02:47:37 AM]
FDS CDU old
by kattz
[May 19, 2019, 01:13:46 PM]
Join me on Vatsim Tonight
by Trevor Hale
[May 15, 2019, 01:58:50 PM]
Gauge circuit
by jackpilot
[May 15, 2019, 01:56:51 PM]
Prosim and RSP TQ interfacing
by jfuenmayor
[May 15, 2019, 08:53:22 AM]
Arduino Mega question Newbie
by Yair1956
[May 15, 2019, 02:23:57 AM]
f18 mfd
by bernard S
[May 14, 2019, 11:15:44 PM]
Multi-Projector color calibration
by fsaviator
[May 13, 2019, 04:32:23 PM]
Immersive Calibration Pro help?
by jskibo
[May 13, 2019, 09:22:00 AM]
KBD03 Keyboard Emulator
by Yair1956
[May 12, 2019, 03:52:05 PM]
5 Position Rotary Spring return Switch
by Yair1956
[May 12, 2019, 03:09:25 PM]
Flyengravity desktop MIP
by patiju
[May 11, 2019, 05:11:05 PM]
Pfd display.
by Patt737
[May 08, 2019, 12:48:32 PM]
Mini Sim
by jskibo
[May 08, 2019, 08:36:28 AM]
F16 Simulator For Sale
by blueskydriver
[May 08, 2019, 12:14:40 AM]
Wanted: Collins Style radios
by jkbarr30
[May 07, 2019, 08:23:32 PM]
Crap! 26V on 5V backlight!
by Steenos
[May 07, 2019, 05:33:46 PM]
Complete 737-800 cockpit - moving sale
by Ed
[May 07, 2019, 08:01:22 AM]
Prosim 737 iOS help
by Aztrucker
[May 06, 2019, 11:56:30 PM]
Fly Elise Warping
by jskibo
[May 06, 2019, 11:14:31 AM]
CPFlight 737 NG MCP Pro and Efis Pro (SOLD)
by patiju
[May 05, 2019, 10:52:46 AM]
Operating System Blues
by 727737Nut
[May 03, 2019, 11:54:35 AM]
FOR SALE - 737 Sim items
by flymo
[May 02, 2019, 07:43:53 AM]
Cpflight MCP737PRO (SOLD)
by archen
[April 30, 2019, 02:07:33 PM]