Directly check & control your FlightSim from the StreamDeck!
PilotsDeck is a Plugin for Elegato's StreamDeck with the Ability to trigger Cockpit-Controls in different Ways and especially reading & displaying a Control's State on the StreamDeck as Text, Image, Bar/Arc or a Combination thereof. It is lean & mean, flexible, completely Open-Source and Free-to-Use.
StreamDeck-wise it behaves like any other StreamDeck Plugin: it runs alongside other Plugins and you can Drag, Drop, Copy, Paste the Actions like any other Action in the StreamDeck Software between your Folders, Pages or even different StreamDecks. The Action Configuration is done through the standard "Property Inspector" of the StreamDeck UI (for the "classic" Actions) or it's own "Action Designer" UI (for the new Composite Action). But regardless of the UI: the Configuration is stored in the StreamDeck Profile - You can create, export and share Profiles with the Plugin's Actions. On Top of the StreamDeck builtin Copy & Paste, it has also it's own Mechanic allowing to share single Actions via Text with someone else.
Installation is done through its own Installer which will check all Requirements and installs them for you if necessary. With the included Profile Manager App you can easily install Profile Packages (containing the Profiles, Images and Scripts) and can map your existing StreamDeck Profiles for specific Airplanes or Simulators so that the Plugin automatically switches the Profile(s) on the StreamDeck(s). You can write Scripts to directly read Values from a Function, or trigger a Function as Command - all in its own internal Lua Engine (Credits to: Neolithos for NeoLua!).
The Plugin supports different StreamDeck Models: Mini, Standard/15-Key, XL, Mobile and Plus. Other Models might work, but an indented Support for Non-Display Models is not planned. The Plugin runs only on Windows. There are no Plans for Linux or macOS Support (the first is not supported by StreamDeck at all, both do not run or support all Sims and some essential .NET Libraries are only available on Windows).
Simulator-wise it supports all major Platforms on Windows - MS Flight Simulator, X-Plane and Prepar3D. Depending on the Sim, it either uses SimConnect, FSUIPC or UDP Connection (remote capable). Either way it will connect automatically as soon as a Simulator is running. All Variables and Commands these Connections allow are usable with the Plugin. You can can directly switch from one Sim to another without reconfiguring anything.
For Prepar3D (and theoretically FSX) FSUIPC is a Requirement, for MSFS it is Optional and for X-Plane not used at all. Either Way: you do not need a registered (bought) Copy of FSUIPC to make the Plugin in Work! (Though some old Profiles may require a registered Copy).
It is designed for advanced Sim-Users which "know how to do Stuff": it does not give you any Lists to select Stuff from. If you know how to read Control-States for your Plane (e.g. which Variables to use) and how to trigger these Controls (e.g. which Command to use), you can quickly define Actions for that on the StreamDeck. Since it does not limit your Selection by a predefined List, you can do everything the Connection/Simulator currently allows π
If you don't: be eager to read & learn! π
I'll try to give some Background in the Readme, but you have to take it from there!
Note: PilotsDeck is 100% free and Open-Source. The Software and the Developer do not have any Affiliation to Flight Panels. You basically spend Money instead of Time to let a Power-User create the Profile(s) for you. That is totally fine - IF you knew you had the Option. Choose the Approach that suits you best! π
User-Contributed and my Profiles for specific Planes are shared/linked under Integrations. Since there aren't that many: If your Plane is not among these, they can at least serve as Example on what you could do:
Other Examples can be found under here.
Simulator | Supported | Tested | Connection |
---|---|---|---|
Flight Simulator 2024 | yes | yes | SimConnect & MobiFlight WASM (Secondary: FSUIPC7) |
Flight Simulator 2020 | yes | yes | SimConnect & MobiFlight WASM (Secondary: FSUIPC7) |
Flight Simulator X | yes | no | FSUIPC4 |
Flight Simulator 2004 | yes | no | FSUIPC 3 |
Prepar3D v5 | yes | yes | FSUIPC 6 |
Prepar3D v4 | yes | no | FSUIPC 5/6 |
Prepar3D v1-3 | yes | no | FSUIPC 4 |
X-Plane 12 | yes | yes | UDP (local/remote) |
X-Plane 11 | yes | yes | UDP (local/remote) |
X-Plane <=10 | yes | no | UDP (local/remote) |
Supported is understood as "technical and basically supported by the Connection Method". Support in Terms of ensured Compatibility, Fixing Issues and giving Support exists only for the latest Version of the three Major Simulators: MSFS2020, X-Plane 12, P3D v5. I'm happy if it works for older Versions, but I won't make any Effort for them. It is time to go back to the Future! π
And yes: the latest Version for Prepar3D is still considered v5, since v6 was just DOA with nearly every Addon-Dev announcing to not support it.
Here a quick Overview of what you can send to the Simulator ("Command") or from what you can read Values from the Simulator ("Variable"). One of the Things which make the Plugin flexible: Variables can also be used as Commands. For Example to move a Cockpit-Control by writing a different Value to a Variable.
How Commands and Variables are configured and the different Options how they can be executed is described under 2.1 - Defining Commands & Variables.
ID | Description | Command | Variable | Simulators |
---|---|---|---|---|
MACRO | Execute any Macro known to FSUIPC | βοΈ | βοΈ | MSFS, P3D, FSX |
SCRIPT | Run any Lua-Code known to FSUIPC | βοΈ | βοΈ | MSFS, P3D, FSX |
CONTROL | Send any SimEvent defined by its numerical ID | βοΈ | βοΈ | MSFS, P3D, FSX, FS9 |
LVAR | Read from / Write to any L-Var ("Local Variable") | βοΈ | βοΈ | MSFS, P3D, FSX |
OFFSET | Read from / Write to any FSUIPC Offset | βοΈ | βοΈ | MSFS, P3D, FSX, FS9 |
VJOY | Toggle/Clear/Set a Button of a virtual Joystick from FSUIPC | βοΈ | βοΈ | MSFS, P3D, FSX |
VJOYDRV | Toggle/Clear/Set a Button of a virtual Joystick from the known vJoy Device Driver (if installed) | βοΈ | βοΈ | ALL |
AVAR | Read from / Write to any Simulation Variable (also known as A-Var) | βοΈ | βοΈ | MSFS |
KVAR | Send / Write to any Event-ID (also known as K-Var / SimConnect Event) | βοΈ | βοΈ | MSFS |
HVAR | Trigger any HTML Event in the Simulator (also know as H-Var) | βοΈ | βοΈ | MSFS |
BVAR | Trigger InputEvents (also known as B-Var) - but only those that MSFS enumerates via SimConnect | βοΈ | (βοΈ)* | MSFS |
CALCULATOR | Run any Calculator/Gauge Code in the Simulator | βοΈ | βοΈ** | MSFS |
XPCMD | Send any Command known to X-Plane (as command_once) | βοΈ | βοΈ | XP |
XPWREF | Read from / Write to any X-Plane DataRef | βοΈ | βοΈ | XP |
LUAFUNC | Run a Lua Function in the Plugin's own Lua Engine | βοΈ | βοΈ | ALL |
INTERNAL | Read from / Write to an internal Variable (available everwhere within the Plugin) | βοΈ | βοΈ | ALL |
* = Per Default, B-Vars treated as Command-only Type - only some B-Var have an actual Value to read.
** = While you can read the Result from a RPN Expression, you can not write to it (like with other Variable Types).
:grey_exclamation: Please mind that the Command Types Script, Macro, Lvar (on P3D/FSX) and vJoy can only work with a registered Version of FSUIPC!
:grey_exclamation: Both vJoy Command Types are independent of each other and are two different Things! "VJOY" can only be assigned within FSUIPC (and not in the Simulator). The "VJOYDRV" can be assigned by anything which understands a Joystick Button (Simulator, FSUIPC, Addons, ...).
All Actions work on the Keypads (the normal/square StreamDeck Buttons). The Dial/Touchpad (aka Encoder) on the SD+ is supported by most Actions.
Action Name | Keypad / Encoder | Description | |
---|---|---|---|
Display Value* | Keypad / Encoder | Display a Sim Variable as Number or Text (display "ON" instead of "1"). You can scale/round/format the Value as needed and customize the Font-Settings. | |
Simple Button | Keypad | Can only send Commands and always shows the same (configurable) Image. Supported in StreamDeck Multi-Actions! | |
Dynamic Button | Keypad / Encoder | This Action dynamically changes the displayed Image based on a Variable (in Addition to sending Commands). Different Values trigger different Images. | |
Korry Button | Keypad / Encoder | Intended for Korry-Switches in the Cockpit: the Action displays two "Sub-Images" independently of each other. They are shown/hidden based on their own Variable, but will not change the Image based on the Value. | |
COM Radio | Keypad / Encoder | Intended for Com Frequencies: the Action shows two different Variables which can be independently scaled/rounded/formatted but share the same Font-Settings. | |
Display Gauge | Keypad / Encoder | This Actions renders the Value dynamically on a Bar or Arc. Size, Color, Position and Font-Settings can be tweaked. It can optionally send Commands. | |
Display Gauge (Dual) | Keypad | As before, but it renders two Values dynamically on the same Bar or Arc. | |
Composite Action | Keypad / Encoder | Not a fixed Template as the other Actions, more a Canvas to draw on: you can add and freely configure different "Elements" (like Text, a Value, an Image) which can be dynamically altered via "Manipulators" on certain "Conditions". Configured in it's own dedicated "Action Designer" UI. | |
Profile Switcher | Keypad | This not a "real" Action like the others, it only serves to enable/disable Profile Switching. |
* = As an experienced User you might miss the "Display Value with Switch" Action - it was renamed to "Display Value" in Version 0.8.0. The Former "Display Value" Action (without Switch) is still there and will keep working, it is just hidden from the Selection now. You can not create them anymore, but still run them!
See 2 - Action Configuration how to configure these Actions.
How to add Custom Images is described under 3.3 - Custom Images.
Just Download & Run the Installer Binary! It will check and install all Requirements and installs/updates the Plugin (or remove it).
It is highly likely that you need to Unblock/Exclude the Installer & Plugin from BitDefender and other AV-/Security-Software. It's the number one Reason for "the Plugin is not working"-Issues because either the Binary is blocked from running or is blocked when connecting to the StreamDeck Software.
DO NOT run the Installer, Plugin or StreamDeck Software "as Admin". It is not recommended to MSFS or FSUIPC7 "as Admin" - it might work, it might fail.
If it still does not work right or at all, please check 4.2 - Troubleshooting.
The Requirements for the Plugin:
The Plugin will be installed to:
%appdata%\Elgato\StreamDeck\Plugins\com.extension.pilotsdeck.sdPlugin
It is automatically started with the StreamDeck Software. It will spawn its own Icon in the System-Tray / Notification Area. Use this Icon to see if an Plugin Update is available, to access the Developer UI or open the Profile Manager to configure Profile Switching.
Note: Since FSUIPC is only a "secondary" Connector for MSFS, you do not need to have it installed anymore (for MSFS). If you not plan to install/run FSUIPC7, please set the Parameter UseFsuipcForMSFS to false in the Plugin Configuration File (PluginConfig.json) after Installation!
But be aware that some older Profiles might still use Commands and Variables from FSUIPC and might not fully work then.
Note for Users of MobiFlight Connect Software: The Plugin will alter L-Vars per Frame Setting of the WASM Module to 100 (default is 30).
Starting with Version 0.8.0, the Plugin greatly improves Distribution and Installatin of Profiles:
See 3.6 - Profile Packages on how to create a Profile Packages to share your own Profiles!
Since the Plugin is very flexible, there is a "little" Learning Curve π³ So I tried to break it down into 4 Parts:
Some Command/Variable Types have a Reference to look them up - you can quickly open those References in the "QRH" Section of the Developer UI (accessible via the Tray-Icon of the Plugin).
One of PilotsDeck's Core-Concepts is: everthing has/is an Address. So whether it is a Variable to read (e.g. L-Var/DataRef/Offset) or a Command to send (e.g. Control, Script, Calculator-Code): it is identified by the Address. A Command is defined by its Type and Address in the UI. A Variable for reading only by the Address.
Every Type needs a specific Address Syntax to be used in the Command Address Field. Some Commands/Variables require extra Parameter and some Commands can also be sequenced. That means the Plugin will send multiple Commands with just one Button-Press!
The Property Inspector UI/Action Designer UI has a Syntax-Check build in for every Type except for Calculator: When the Syntax is correct, you see a little Check-Mark in the Input Field or a red/green Border around the Input Field. Everything you enter will also checked more thourougly by the Plugin before it executes a Command (if possible/trackable).
If a Command could not be executed by any Reason (invalid Syntax, Sim not connected) the Keypad will show an yellow Alert Sign briefly on the Display. On an Encoder the Touch-Display will shortly flash in red in that Case. (The standard StreamDeck Mechanic how Actions can show an Error/Warning)
Commands available on all Actions except the Composite Action:
Commands available on the Composite Action:
Command | MSFS, P3D, FSX | File:Macro(:Macro)* |
---|
Examples:
QW787_MAIN:QW_ENG1_START
- Run Macro QW_ENG1_START from Macro-File QW787_MAIN.MCRO.FSLA3XX_MAIN:ACPACK1:ACPACK2
- Run Macro ACPACK1 from Macro-File FSLA3XX_MAIN.MCRO and then ACPACK2 from the same File.Background:
Macro Files are a rather "rudimentary and legacy" Way to Script Actions in FSUIPC. In my Profiles I only use them in Prepar3D for "Mouse-Macros" which are able to Click Controls that can only be triggered with the Mouse (note: Mouse-Macros are not supported on MSFS). So if you don't know and have Macros, your Time is better invested to look at Lua (or maybe even RPN) :wink:
If you want to learn more about Macros, look at the "FSUIPC7 for Advanced Users" Document in your My Documents\FSUIPC7 Folder (or \FSUIPC6 for P3D)!
Command | MSFS, P3D, FSX | `(Lua\ | LuaToggle\ | LuaSet\ | LuaClear\ | LuaValue):File(:Flag)*` |
---|
Examples:
Lua:Baro_Toggle
- Run Lua-Script Baro_Toggle.lua.LuaToggle:FNX320_AUTO:12
- Toggle Flag 12 for Script FNX320_AUTO.lua.LuaValue:Pilotsdeck_FSL:271:1
- Send Value 271 to Script Pilotsdeck_FSL.lua and then send Value 1 to the same Script.Background:
The ability to run Lua Files is the greates Benefit of the registered (bought) FSUIPC Version - at least for me! Lua-Code is easier to write, understand and are more flexible than Marcos and allow to read or send anything that FSUIPC can read or send from/to the Simulator. They allow to run more advanced Logic on Joystick-Buttons (i.e. let the Button do two different Things depending on being on the Ground or in the Air). The Plugin allows you to run such Scripts via the StreamDeck.
If you want to learn more about Lua-Scripts, look at the "FSUIPC Lua Plug-Ins" and "FSUIPC Lua Library" Documents in your My Documents\FSUIPC7 Folder (or \FSUIPC6 for P3D)! Look at the event.flag and event.param Functions to understand how to use the LuaToggle and LuaValue Lua-Controls.
NOTE: Do not confuse with the Scripts for the internal Lua Engine - this Command is only to trigger Scripts in FSUIPC that are written for FSUIPC!
Note for X-Plane Users: You can achieve the same (and sometimes more) with the FlyWithLua Plugin for X-Plane! The Lua-Scripts there can define "Custom Commands" and "Custom DataRefs" which then can be used from the Plugin (or the Sim) like any other X-Plane Command or DataRef.
Command | MSFS, P3D, FSX, FS9 | Control=Parameter(:Parameter)*(:Control=Parameter(:Parameter)*)* |
---|
:
Sign.=
and following Parameter are separated with :
again.Examples:
66168:65567
- Send Control 66168 and then send Control 65567.66587=72476:72478
- Send Control 66587 with Parameter 72476 and then Control 66587 with Parameter 72478.67195=3:67191=3:4
- Send Control 67195 with Parameter 3 and then Send Control 67191 with Parameter 3 and after that with Parameter 4.Background:
In Essence, these Control-Codes are the numerical ID of the standard SimEvents documented in the MSFS/P3D/FSX SDK. Some Planes might react to every Event, some only to a Part/Fraction, some can't be interfaced with any of those Events. Some might even use an existing Event and use the Parameter for "custom Events" (e.g. PMDG and FSLabs with their "ROTOR_BRAKE" Events).
Note that these are the same as "Simconnect Events", "K-Vars" or "Key-Events" - For MSFS, you can achieve the same with using KVAR (or CALCULATOR) and the textual ID of that Event! It's two different Sides of the same Coin :wink:
You can find a full List in the "Controls List..." Text-File in your My Documents\FSUIPC7 Folder (or \FSUIPC6 for P3D) - Check the "QRH" Section of the Developer UI for a direct Link (accessible via the Tray-Icon of the Plugin)!
Command & Variable | MSFS, P3D, FSX | (L:)Name |
---|
L:
. Since L-Vars in MSFS can have very "unsual" Characters in their Name, it is recommended get into the habit to always add the L: Prefix!Examples:
L:I_OH_FUEL_CENTER_1_U
- Read from the L-Var I_OH_FUEL_CENTER_1_U.When used as Command, you need to specify the On Value and the Off Value. The Plugin will toggle between these two Values and writes them to the Variable.
In addition to writing plain Values, the Plugin can also do simple Operations like increasing/decreasing the Value or toggling the Value in a defined Sequence. Look under Command Options for Details.
NOTE for MSFS: The L-Vars will be requested without an Unit from the Sim. Depending on how the Developer writes the Variable, this can lead to strange Results (e.g. getting the Value 0.174533... for an Heading of 10). If you come across such Variables, use a Calculator Variable with an Expression to read the L-Var in a different Unit!
Background:
Local Variables (sometimes "Local Gauge Variables") are created and updated by the Plane. There are no standard L-Vars which could be used on every Plane. There is also no communality if and which L-Vars a specific Plane has. For some Planes it is the official Way to Read and Trigger Cockpit-Controls (e.g. Fenix, QualityWings). For some it is only for Read (e.g. PMDG). For some they exist, but are not really supported or usable sometimes (e.g. FSLabs).
But they are not only used by Planes. Some Addons like GSX also create and update L-Vars which can be used to interface with them!
You can list all currently registered L-Vars in the FSUIPC7 UI (Add-ons -> WASM -> List Lvars).
Another great Source for L-Vars and (other Stuff) is HubHop by MobiFlight - Check the "QRH" Section of the Developer UI for a direct Link (accessible via the Tray-Icon of the Plugin)!
Command & Variable | MSFS, P3D, FSX, FS9 | `(0x)Address:Size(:Type:Signedness\ | BitNum)` |
---|
0x
is Optional.i
, Float/Double f
, Bit b
or String s
. Defaults to :i
if not specified.s
or Unsigned u
. Defaults to :u
if not specified (only relevant for Integers).Examples:
2118:8:f
- Read a 8 Byte long float Number from Address 2118 ("Turbine Engine 2 corrected N1").3544:4:i:s
- Read a 4 Byte long signed integer Number from Address 3544 ("standby alitmeter in feet").0x0ec6:2:i
- Read a 2 Byte long unsigned integer Number from Address 0EC6 ("Pressure QNH").0x5408:10:s
- Read a 10 Byte long String from Address 5408.0x0D0C:2:b:1
- Read Bit 1 from the 2 Byte long Bitmask at Address 0D0C (Nav Lights).Before you use an Offset as Command, make sure that it is writeable (some are read-only)! When used as Command, you need to specify the On Value and the Off Value. The Plugin will toggle between these two Values and writes them to the Variable. Use only 1 or 0 for Bit-Offsets.
In addition to writing plain Values, the Plugin can also do simple Operations like increasing/decreasing the Value or toggling the Value in a defined Sequence. Look under Command Options for Details.
Background:
These Offsets are the way how FSUIPC makes Simulator Variables (also known as A-Vars) accessible to outside Applications (like my Plugin or some Flight Trackers for Example). FSUIPC sticks with that Concept for historical and compatibility Reasons. But not all Offsets are Simulator Variables: the Benefit of that System is that Applications can exchange Data through FSUIPC Offsets. For Example PMDG or Project Magenta use assigned Offset Ranges to share their Data.
Since most Offsets represent Simulator Variables, you can achieve the same Thing with the AVAR Type in MSFS. Not all Simulator Variables are exported by FSUIPC (like "FUELSYSTEM PUMP SWITCH" for Example) - in that Cases you need to read this Variable via AVAR.
You can find the full List of available/official Offsets in the "FSUIPC Offsets Status" Document in your My Documents\FSUIPC7 Folder (or \FSUIPC6 for P3D) - Check the "QRH" Section of the Developer UI for a direct Link (accessible via the Tray-Icon of the Plugin)!
Command | MSFS, P3D, FSX | Joystick:Button(:t) |
---|
Examples:
64:4
- The Keypad on the StreamDeck is recognized as Joystick 64, Button 4 in FSUIPC.72:2:t
- The Keypad on the StreamDeck will toggle Joystick 72, Button 2 between pressed and unpressed in FSUIPC.The additional Long Press Command will not be available when you use a non-toggling vJoy for the normal/short Press!
The VJOY Command can also be used on the Encoders and the Touch-Display. On these Interactions a non-toggle vJoy will be shortly pressed. A toggling vJoy will be toggled on every Interaction.
Background:
The virtual Joystick Facility of FSUIPC has nothing to do with the System Driver and can be used independently. So the Use-Cases are very narrow, but it can be a useful Feature. When you want to stick of doing your Mappings and Assignement mainly in the FSUIPC UI, you could use these vJoys to map the StreamDeck Keypads/Encoders.
Command | ALL | Joystick:Button(:t) |
---|
Examples:
1:2
- The Keypad on the StreamDeck will set/clear Button 2 on the virtual Joystick 1.2:3:t
- The Keypad on the StreamDeck will toggle Button 3 on the virtual Joystick 2 between pressed and unpressed.Non-Toggling vJoy Buttons will behave like any normal Joystick Button - they are down/set as long as the StreamDeck Key/Dial is down (and go up/cleared when the Key/Dial goes up again). NOTE: On the Composite Action, you have to map the intended (non-toggling) vJoy Address to both the KEY_UP and KEY_DOWN (or DIAL_UP/DIAL_DOWN) Events!
The additional Long Press Command will not be available when you use a non-toggling vJoy for the normal/short Press!
The VJOYDRV Command can also be used on the Encoders and the Touch-Display. On these Interactions a non-toggle vJoy will be shortly pressed. A toggling vJoy will be toggled on every Interaction.
Background:
Using virtual Joysticks is really a great Feature and Solution for specific Use-Cases! For Example when you want to press and hold Cockpit-Controls from the StreamDeck (e.g. Fire-Test Buttons). Or when the Simulator has Commands which can only be triggered with a Joystick-Mapping (e.g. Custom Cameras in MSFS). It is especially useful in X-Plane to circumvent the API-Limitation that X-Plane Commands can only be send as "command_once".
Command & Variable | MSFS | (A:Name(:index), Unit) |
---|
A:
and the whole Expression must be enclosed by Parenthesis ( )
.,
from the Name.Examples
(A:FUEL RIGHT QUANTITY, Gallons)
- Reading the A-Var FUEL RIGHT QUANTITY using Gallons as Unit.(A:FUELSYSTEM PUMP SWITCH:2, Bool)
- Reading Index 2 of the A-Var FUELSYSTEM PUMP SWITCH as Bool Value.(A:LIGHT POTENTIOMETER:13, percent over 100)
- Reading Index 13 of the A-Var LIGHT POTENTIOMETER as Percent over 100 Value (0.0 - 1.0).Before you use an A-Var as Command, make sure that it is writeable (some are read-only)! When used as Command, you need to specify the On Value and the Off Value. The Plugin will toggle between these two Values and writes them to the Variable. Use only 1 or 0 for Booleans.
In addition to writing plain Values, the Plugin can also do simple Operations like increasing/decreasing the Value or toggling the Value in a defined Sequence. Look under Command Options for Details.
Background:
A-Var (or SimVars) are the standard Simulator Variables defined by Flight Simulator (2020 and Predecessors). There are no "custom" A-Vars. Default Planes normally only use A-Vars but complex and externally simulated Planes use/update only a Fraction of them. MSFS still sticks to the legacy System of many different and weird Units which have to be passed for Access to a Variable.
Since the Plugin can access all A-Vars, you can use Variables which are not exported as FSUIPC Offset without the Need of defining a myOffsets File for FSUIPC. Or even to completely circumvent FSUIPC Offsets at all if you prefer calling Things by their Name :wink:
A full List of all A-Vars with their according Unit (and if writable) can be found in the SDK under Simulation Variables - Check the "QRH" Section of the Developer UI for a direct Link (accessible via the Tray-Icon of the Plugin)!
Command | MSFS | Name(:Parameter1(:Parameter2))(:Name(:Parameter1(:Parameter2)))* |
---|
K:
. You can send multiple Event in a Sequence if you separate them with a :
Sign.Examples
K:TOGGLE_ALTERNATOR1
- Send the Event TOGGLE_ALTERNATOR1.AP_SPD_VAR_INC:AP_SPD_VAR_INC
- Send the Event AP_SPD_VAR_INC two Times.K:FUELSYSTEM_PUMP_TOGGLE:3
- Send the Event FUELSYSTEM_PUMP_TOGGLE with Value 3.Background:
Think of K-Vars are the standard SimConnect Events defined by the Simulator. Some Planes might react to every Event, some only to a Part/Fraction, some can't be interfaced with any of those Events. Some might even use an existing Event and use the Parameter for "custom Events" (e.g. PMDG and FSLabs with their "ROTOR_BRAKE" Events).
Although they are called "Variable" and you can set a Value on some, they can not be read - typically the Sim Event (K-Var) updates the according Sim Variable (A-Var)!
A full List can be found in the Flight Simulator SDK under Event IDs - Check the "QRH" Section of the Developer UI for a direct Link (accessible via the Tray-Icon of the Plugin)!
Another great Source for K-Vars and (other Stuff) is HubHop by MobiFlight - Check the "QRH" Section of the Developer UI for a direct Link (accessible via the Tray-Icon of the Plugin)!
Command | MSFS | Name(:Parameter)(:Name(:Parameter))* |
---|
H:
. You can activate multiple H-Vars in a Sequence if you separate them with a :
Sign.Examples
A32NX_EFIS_L_CHRONO_PUSHED
- Activate the H-Var named A32NX_EFIS_L_CHRONO_PUSHED.A320_Neo_CDU_1_BTN_F:A320_Neo_CDU_1_BTN_L
- Activate H-Var A320_Neo_CDU_1_BTN_F first and then activate H-Var A320_Neo_CDU_1_BTN_L.H:A2A_AVIONICS_SWITCH:1
- Activate H-Var A2A_AVIONICS_SWITCH with Value 1.Background:
H-Vars are a new Simulation Variable Type that came with MSFS and work roughly similiar like K-Vars - they trigger an Event but can not be read. Note that you don't need to configure and use the Hvar-Files from FSUIPC for the Plugin. You can use any known and existing H-Var from the Plugin directly.
A great Source for H-Vars and (other Stuff) is HubHop by MobiFlight - Check the "QRH" Section of the Developer UI for a direct Link (accessible via the Tray-Icon of the Plugin)!
Command or Variable | MSFS | Name(:Parameter)(:Name(:Parameter))* or B:Name |
---|
Command:
B:
. You can activate multiple B-Vars in a Sequence if you separate them with a :
Sign.Variable:
B:
!Examples
B:AUTOPILOT_Heading_Sync
- Send the InputEvent named AUTOPILOT_Heading_Sync.B:AUTOPILOT_Heading:-1
- Send the InputEvent name AUTOPILOT_Heading with Value -1.AUTOPILOT_Heading:-1:AUTOPILOT_Heading:-1
- Send the Input Event name AUTOPILOT_Heading with Value -1 two Times.B:AIRLINER_Knob_Seatbelts
- Read the InputEvent Value of AIRLINER_Knob_Seatbelts.Background:
B-Vars (or InputEvents) are an new Addition from MSFS to the "Variable-Zoo", but they come with a Twist: Some of those work like any other Variable Type (e.g. L-Var, A-Var) - you can read and update their Value.
Some (most?) of those work like any other Command Type (e.g. K-Var, H-Var) - you can not read their Value, but you can send/activate them with an optional Parameter.
On top of that, MSFS only makes certain InputEvents (the "_Set" Events) available to outside Applications via SimConnect (although you can see more B-Vars in MSFS' Developer Mode).
Because B-Vars / InputEvents have this "Split Personality", the Plugin defaults to run them as Command-only Type: it will not request the Value, but you can use it as Command with the according Options. If a B-Var is actually readable, you can tell the Plugin to treat a specific Address as Variable-Type - and read and update its Value like with other Types.
The Plugin exports all available B-Vars (with their correct Name to use!) as soon as the Simulator Session starts in the File "InputEvents.txt" in the Plugin Directory - Check the "QRH" Section of the Developer UI for a direct Link (accessible via the Tray-Icon of the Plugin)!
A great Source for B-Vars and (other Stuff) is HubHop by MobiFlight - Check the "QRH" Section of the Developer UI for a direct Link (accessible via the Tray-Icon of the Plugin)!
Command or Variable | MSFS | `RPN-Code \ | $Name:Step(:Limit) \ | $K:Name(:Parameter1(:Parameter2))or C:RPN-Code` |
---|
For simple Tasks like increasing/decreasing a L-Var you can use the $Name:Step(:Limit(:Reset))
Template (the Plugin will build the right RPN-Code for that):
L:
.For simple Tasks like triggering a K-Var (Event) you can use the $K:Name(:Parameter1(:Parameter2))
Template (the Plugin will build the right RPN-Code for that):
K:
.If you want to read the Result of the RPN-Code as a Variable, prefix your Code with C:
in any of the Variable Address Fields! Note that you can not write to those special Type of Variable.
Examples
(A:LIGHT POTENTIOMETER:13, percent over 100) 0.0 > if{ (A:LIGHT POTENTIOMETER:13, percent over 100) 0.1 - 100 * (>K:LIGHT_POTENTIOMETER_13_SET) }
- Example of RPN Code (Decreasing Cabin Lights in the Fenix Airbus).$E_FCU_SPEED:+1
- Increase L-Var E_FCU_SPEED by 1.$A_ASP_VHF_1_VOLUME:-0.05:0
- Decrease L-Var A_ASP_VHF_1_VOLUME by 0.05 until it is 0.$A_ASP_VHF_1_VOLUME:0.05:1:0.5
- Increase L-Var A_ASP_VHF_1_VOLUME by 0.05 as long it is smaller then 1. When it reaches 1, the Variable will be reset to 0.5.$K:FUELSYSTEM_PUMP_TOGGLE:2
- Trigger the Standard Event FUELSYSTEM_PUMP_TOGGLE with Parameter 2.$K:FUELSYSTEM_PUMP_TOGGLE:2:3
- Trigger the Standard Event FUELSYSTEM_PUMP_TOGGLE with Parameter 2 and 3. Resulting RPN Code: 3 2 (>K:FUELSYSTEM_PUMP_TOGGLE)
$K:A32NX.FCU_SPD_DEC
- Trigger the Custom Event A32NX.FCU_SPD_DEC.C:(A:FUELSYSTEM PUMP SWITCH:1, Enum) 1 == (A:FUELSYSTEM LINE FUEL PRESSURE:2, KPa) 0 == and if{ 1 } els{ 0 }
- RPN Code to read the correct State of the (MSFS) 787 left Center Pump Pressure.Templates have to start with the Dollar-Sign!
Note that there is no Syntax-Checking at all for Calculator Code (except for the Templates). Only use direct RPN-Code if you are used to it.
Background:
Calculator-Code or sometimes Gauge-Code are an internal Mechanic of the Simulator - very roughly spoken it is how the modeled Aircraft Panels work inside for Ages.
The Template for increasing/decreasing L-Vars is especially useful on the Right/Left Turn of the Encoders: The Plugin will incoporate the number of Ticks received by the StreamDeck Software in the Code it generates (instead of repeating it). That means that it is the "smoothest" Option to manipulate a L-Var with an Encoder!
Although RPN Syntax is very hard to understand (I still struggle π΅), it can be quite powerful. If you really want to go down the Rabbit Hole of using direct RPN-Code, start in the Flight Simulator SDK under Reversed Polish Notation.
Command | XP | Path(:Path)* |
---|
:
Sign.Examples
toliss_airbus/aircondcommands/Pack1Toggle
- Single CommandAirbusFBW/PopUpPFD1:AirbusFBW/PopUpND1
- Two Commands in SequenceBackground:
Every Command in X-Plane - whether it is from the Simulator, Plane or other Addons - has an unique Path.
You can lookup these Paths in the UI or on the Internet like on siminnovations.com - Check the "QRH" Section of the Developer UI for a direct Link (accessible via the Tray-Icon of the Plugin)!
Or you can use the DataRefTool Plugin to explore all Commands (including Custom) currently known to the Simulator.
Command & Variable | XP | `Path([index]\ | :sNUM)` |
---|
:s
to the Path followed by the Number of Characters to read.Examples
ckpt/lamp/74
- Reading a Value from a normal DataRef.AirbusFBW/FuelOHPArray[2]
- Reading a Value (on Index 2) from the Array under this Path.sim/aircraft/view/acf_relative_path:s32
- Reading a String of Length 32 from that Path.Before you use a DataRef as Command, make sure that it is writeable (some are read-only)! When used as Command, you need to specify the On Value and the Off Value. The Plugin will toggle between these two Values and writes them to the Variable.
In addition to writing plain Values, the Plugin can also do simple Operations like increasing/decreasing the Value or toggling the Value in a defined Sequence. Look under Command Options for Details.
Background:
Every Simulator Variable (called DataRef) in X-Plane - whether it is from the Simulator, Plane or other Addons - has an unique Path. DataRefs are Everthing and Everything is defined by DataRefs π
You can lookup the default Sim DataRefs in the X-Plane SDK under Datarefs - Check the "QRH" Section of the Developer UI for a direct Link (accessible via the Tray-Icon of the Plugin)!
Or you can use the DataRefTool Plugin to explore all DataRefs (including Custom) currently known to the Simulator.
Command & Variable | ALL | `lua:File:Function(Parameter, ...) \ | lua:File(:Parameter)` |
---|
lua:
Prefix is always necessary! The File Name is case-insensitive.NOTE: For Image Scripts the Syntax is different! As the Function-Name is fixed, you don't need to pass a Function-Name. The Parameter is optional (depends on the Script if it is used).
Examples
lua:fnx-a320:INIT_AIRCRAFT
- Run the Function INIT_AIRCRAFT in File fnx-a320.lua.lua:gsx:MENU_SELECT(1)
- Run the Function MENU_SELECT with Parameter 1 in File GSX.lua.When you use a Lua Function as Variable Address, the Plugin will use the Value returned by the called Function (and handles it as every other Variable Type).
If you use a Lua Function for a Command Address, the Plugin ignores the return Value (if the Function should return anything at all).
-TODO- See the Section BLA how to use the Plugin's own Lua Engine.
Command & Variable | ALL | X:Name |
---|
X:
.Examples
X:GSX_MENU_LINE1
- Read the internal Variable GSX_MENU_LINE1.Like the Name suggests, these Variables are internal to the Plugin and can only be read or written to within the Plugin.
They are useful in specific Use-Cases when you need to share a Value only within the Plugin - i.e. to track a certain State or something.
On Value / Off Value:
These Fields are required for all Command & Variable Types. The Plugin will toggle between these two Values: when the current Value matches the Off Value, it will write the On Value. In every other Case the Off Value will be written.
But the Plugin can also do simple Value Manipulations on the Variable to increase/decrease the Value or write a Sequence of Values. These Value Manipulations always start with a $
Sign and need to be entered in the On Value Field (the Off Value Field is not used then).
The Syntax for increasing/decreasing is $Step(:Limit(:Reset))
$1
- A simple Increment by 1.$1:4
- Increment by 1 up to a Value of 4.$1:4:2
- Increment by 1 up to a Value of 4. When 4 is reached, the Variable will be set to 2.The Values in a Sequence are defined as ,
separated List. The Plugin will compare the current Value with the List - if the Value is matched, it will write the next Value from the List to the Variable. If there is no match, it will use the last Value in the List. One Value can optionally be defined as Default with a =
in Front of it. A Sequence must contain at least two Values with an optional Default Value or exactly one Value defined as Default. All Values in the List must be unique with the Exception of the last one.
A optional <
at the End lets the Value "bounce off" - if the current Value is already the last one in the List, the previous Value is written.
Examples
$0,1,2<
- When the Control is in Position 0, it will be moved to Position 1. Then from 1 to 2. When at 2, it will go back to 1. (e.g. for toggling Taxi Lights OFF>ON<>T.O.)$=4
- The Control is always moved to Postion 4, regardless of the current Position. (e.g. for setting ND Mode to PLAN from any Position)$2,=3<
- The Control will toggle between Position 2 and 3. If the Control is in any other Position it will default to 3. (e.g. for toggling ND Mode between NAV<>ARC and go to ARC from any other Position)$0,1,2,3,1
- Moves the Control from Position 0 to 3. When in Position 3 it starts over at Position 1.Toggle Switch:
This Option is available for all Commands but not for Variables. It allows you to control/toggle a Switch with a second Command defined by the Alternate Command Address - for Example for Push/Pull or Left/Right. Both Commands need to be of the same Type. Which Command is used will be deciced by the Plugin based on the current Value of the Variable you define in the Monitor Address Field.
When the current Value matches the configured Off Value, the Plugin will use the alternate Command. In every other case the normal Command will be used. You can specify a Comparison like >5
which will be interpreted as "if the current Value is > 5, then use the alternate Command". The On Value Field is not used with this Option.
Note that this Option is only available for the Main Command - (short) Pressing the Keypad or Encoder.
Examples when to use: Push/Pull Knobs like for Barometers or the Autopilot are a great Use-Case for that Option.
Hold Switch:
This Option is available for all Commands and Variables except both vJoys, because the Keypad or Encoder behaves like a (non-toggle) vJoy then! The Difference to a vJoy is: you can directly define which Command or Value is send in the StreamDeck UI. If it makes Sense for a specific Cockpit-Control: the Control needs to stay in Position (does not reset the Position itself) and needs to have two distinct Commands or Values for pressed and unpressed (click<>release, down<>up)!
If you use it with a Command(-only) Type, you need to define an Alternate Command Address. The normal Command will be send on KeyDown and the alternate Command on KeyUp.
If you use it with a Command & Variable Type, you need to define the On Value and the Off Value. Then On Value will be written on KeyDown and the Off Value on KeyUp. You can not use a Value Manipulation with that Option.
Note that when Hold Switch is enabled, the Action can not have another Command for Long Press. It is also only available for the main Interaction.
Also note that this Option is only available Main Command, but will be applied to the Guard Command if configured!
Examples when to use: Buttons you need to press & hold like Fire-Test or other Test Buttons are a great Use-Case for that Option.
Reset Switch:
This Option is only available for Variable Types. When activated, the Plugin will write the On Value to the Variable and after 100ms it will write the Off Value to the Variable. You can not use a Value Manipulation with that Option.
Note that this Option affects all Commands on that Keypad/Encoder! So for Example if enabled on the Main Command, it will also applied to the Second Command or Touch Command (if these are also a Command & Variable Type).
Examples when to use: Buttons which do not reset their Position when being pressed (but should not stay pressed). Like the MCDU Keys of the Fenix Airbus for Example! Prefer a Reset Switch over an Hold Switch in such Cases (the Button just has to be pressed and unpressed shortly).
Use Delay:
This Option is available for some Command(-only) Types - the ones which allow to chain Commands / execute multiple Commands in a Sequence. Some Planes/Cockpit-Controls don't recognize the Commands correctly when they come in too fast. In these Cases you can enable the Option so that the Execution of the next Command is delayed by 25ms. The Delay is only used if there is more than one Command/Parameter.
Note that this Option affects all Commands on that Keypad/Encoder! So for Example if enabled on the Main Command, it will also applied to the Second Command or Touch Command (if these are also belong to these Command Types).
Run as Command:
Only available when B-Var is selected as Command Type. If this Option is unchecked, the B-Var is treated as Variable Type and will present the respective Options.
Generally, most of the Configuration is defined in Text-Input-Fields. This is on Purpose so that Parts of the Configuration can quickly be changed and easily be copied between Actions.
If a Field requires multiple numeric Values - like Sizes, Positions and Ranges - the Values must be separated by a semicolon. For Example: 0; 10
or 9; 14; 54; 20
Mostly all Fields which accept numeric Values understand Float-Values also with either Decimal-Character independent of your System Locale (so 0,5
and 0.5
is the same for the Plugin). All Float-Values rendered by the Plugin will use a Decimal-Point .
though!
If a Field/Syntax requires multiple Parameters, the Parameters are separated by colon :
If a Field/Syntax requires a Mapping or Assignment it is defined by an equal-Sign =
. Some allow even simple Value-Comparisons like <=
, >=
, <
or >
.
>=5
will be interpreted as "if the current Value is >= 5, then use/trigger this Option". Equality is automatically tested if just a Number is present (do not add the Equal-Sign for that).<=
or >=
) and a Comparison like 5>=X
will be interpreted as "if 5 is >= the current Value, then use/display X".COPY / PASTE:
When COPY is clicked, the Configuration of the selected Action is exported to your Clipboard as base64-encoded String.
When PASTE is clicked, the Configuration in your Clipboard is applied to the selected Action (regardless if it already configured or not). You can only Paste to an Action of the same Type.
The Benefits over the normal Copy & Paste you can do in the StreamDeck UI: you can transferr Settings between Keypads and Encoders and can share the resulting String with someone else to quickly share the Configuration of a single Action.
Decode BCD:
If the Value is a binary coded decimal (BCD), the Plugin can decode it for you with that Checkbox!
Scalar:
Multiply the Value by that Number to scale it, if it needs to be converted. Defaults to 1.
One Example would be "Pressure QNH as millibars" - it is delivered as multiple of 16 (e.g. 1013 = 16208). So we would scale it by 0.0625
(1/16) to have the right Value.
Format:
Add leading Zeros, Round the Value and/or add Text to it. Syntax: Zeros.Fraction:Text %s Text
%s
in the Text you specify here. E.g. to add Units to the Value with %s kg
or a Percent-Sign with %s %
. Or put something in Front of it. Every %s will be replaced by the Value. If Zeros/Digits are not specified, you don't need to add a colon.1
One fractional Digit after the Decimal Point, a Value of 20.522534 will be displayed as 20.5
. Match for zero would be 0.0.2:1%s
Two fractional Digits and add an "1" before the Text - useful for the BCD encoded Frequencies!%s ft
Add "ft" after the Value, 300 will show as 300 ft
3.3
The Value will have 3 Digits before and after the Decimal Point, a Value of 20.522534 will be displayed as 020.523
.The Order in which these Options are applied: DecodeBCD -> Scale -> Round -> Format. If the Value is to be matched or mapped, it is done after Round and before Format.
Font Settings:
Actions which render Text will default to inherit the Font Settings configured in the Title Settings. When the Inherit Font Checkbox is disabled, you can specify the Font, Size, Color and Style separately! Note that the Plugin can use all Fonts installed on your System, so it offers way more Choices then the default Title Settings allow.
Background:
All Actions have a Background Image they draw their Contents on to. Some Actions have addtional Images that can be selected. See 3.2 - Custom Images) on how to use your own Images.
In all Cases, the Images are selecteable from a Dropdown Box which will show little Preview of the currently selected Image in Front of it.
Image Mapping:
Enable that Option to provide an Image Map to determine the active Image. The Mapping is similiar to the Text-Mapping in the Display Value Actions. You write the Number and assign it with =
to the Image's Filename (without Extention, but with the Folder Name if it is in a Subfolder). Comparisons can also be used (only with Equality). Each Mapping is then separated by a :
and you can have as many you want.
The Address/Variable used for the Comparison differs from Action to Action. Note that you can also use Lua Function (from a specialized Image Script) to return the Image to be used.
Example:
0=IRS_off:1=IRS_nav:2=IRS_att
- Assigning each different Value/Position of the IRS Switch (0, 1, 2) to its specific Image.If there a multiple Sizes of the Images entered, the Plugin will select the correct itself like with other selected Images. You don't need to add the @2x
Suffix on the XL for Example!
Tweak Position:
Some Actions allow you to manipulate the Position & Size of some Objects (Text, Images). It is expressed as Draw Rectangle defined by these 4 Parameter: Pos-X; Pos-Y; Width; Height
- with a Position of X=0 and Y=0 being the Top-Left Corner. These are not absolute Numbers in Pixel, it is the Position and Size on a 72x72 Grid which then is scaled/adapted to the reals Size used for Rendering. So you can copy an Action between a SD and XL and the Position will stay the same.
Switch Guarded:
This Option enables an additional Command to be run when the Keypad/Dial is pressed. You need to specifiy an Guard Address which is checked for the Guard Value if the Guard is active. When the Guard is active, the Guard Command will be executed (otherwise the normal Main Command).
You can specify a Comparison for the Guard Value.
While the Guard is active a dedicated Guard Image is drawn on Top of the current Content - so if the Image has transparent Parts, the underlying Content can be seen.
You can also use an Image Map or Image Script to have different Images showing up. The Value used for the Comparison differs from Action to Action:
This Action draws the current Value of the configured Variable on the Keypad or Encoder.
Even though it is "only" Text-based, it can cover a wide Set of Cockpit-Controls and -Displays! What makes it so flexible is the Fact that numeric Values can be mapped to Text (e.g. the different Positions of a ND Mode Switch) and that you can use any Font installed on your System (e.g. a nice Quartz- or LCD-Display-Font). It is great for controling/showing Multi-State-Switches without the Need of having an Image for each State!
Mappings: In this Field you can map numeric Values to Text. You can have any number of Mappings and each Mapping is separated with a :
Sign. A numeric Value is mapped to its Text with a =
Sign. Comparisons are also allowed, but only with Equality: a Comparison like 5>=FOO
will be interpreted as "if 5 is >= the current Value, then display the Text FOO". Example:
0=LS:1=VOR:2=NAV:3=ARC:4=PLAN
- Mapping the Positions of the ND Mode Switch to their Name (Fenix).Special State: If a Control or Value displayed does have special State which should have different visual Appearance, you can configure it here:
>2
will be interpreted as "if the current Value is > 5, then use the Special State.Draw Frame: You can disable the Frame drawn arround the Value by default with that. You can customize the Thickness, Color and its Size & Position. If you use a Different Color in the Special State, that Color is also applied to the Frame.
Note that toggling this Options changes the Values and Behaviour of the Draw Rectangle: When the Frame is enabled, the Rectangle is relative to the Center of the Frame.
Everything you can configure here is already described: You set a Command to be excecuted (with an optional Guard) and the Background Image to show at all Times. This Action is great for Keyboards found on (M)CDUs, Transponders or some COM Radios. Or Chrono-, Test- and View-Buttons. A straight and honest Button, not much to describe here π
The Basic Idea of this Action is simple: it swaps between two Images (On/Off), depending on the configured Variable being in it the On State or Off State. This Action is great for Multi-State-Switches where a visual Representation is more suited or preferred - like Light-Switches for example.
On Image / On Value: Select the Image to be shown when the current Value matches the On Value (required). You can use a Comparison here.
Off Image / Off Value: Select the Image to be shown when the current Value matches the Off Value (required). You can use a Comparison here.
Special State: You can define an optional third State which shows its own Special Image. You either use a plain Value or a Comparison used for matching. Alternatively you can enable Any Value which will use this State for any Value which is not On or Off.
The Order the Value matching is done is: On Value -> Off Value -> Special Value. So watch out when using Comparisons.
Note that technically, all Images are drawn on Top of the Background - so you can play with Transparency in the On/Off/Special Image to mask certain Parts of the Background!
This Action is intended for Use Cases where you have two different Variables and for each an independent Sub-Image should be either displayed or hidden on the Background Image. For that this Action is best suited for Korry Switches you find in the Overhead Panels and all around (modern) Cockpits (hence the Name). But it can adapted to other Use-Cases, for Example the Buttons on the Airbus ACP where you have green Light/Bar for selected and a Call Lamp that can flash independently.
It can also reduce the Need to create separate Images for the same Annunciation in different Positions: create and add the Annunciation as \korry
Sub-Image and let it draw on the same Background but on different Positions on different Actions!
Top: Configure the Top Address with the Variable that Half should use and the Image that will be shown. The Show Value defines on which Value the Image will be shown. If the Image should be shown whenever the Value is not Zero you can activate Show while non-zero. Alternatively you can use a Comparison in the Show Value!
The Position and Size of the Image can be tweaked with the Top Rectangle.
Bottom: It works exactly as its counterpart.
Images: You can disable/enable each of the Halves independently here.
You also can enable Image Mapping for the whole Action, where each Half can have its own independent Map (matching against the Variable of the respective Half).
This Action is specialized for displaying the active and standby COM Frequencies, but it could be used in other Use-Cases where you have two different Variables which should be displayed independently.
Frequency Variables: The two Variables used are identified as Active (shown on the Top) and Standby (shown on the Bottom).
Value Format: These common Options work as described, but you can have separate Options for Active & Standby Value with the Different Format Checkbox. If not checked, the same Options are applied to both Variables!
Font Settings: Both Values will always use the same Font Settings. The Style can not be configured here: The Active Value is always drawn in Bold-Style and the Standby Value always in Regular-Style.
Background: In Addtion to the Background Image, this Action has an Additional Swap Image which is shown after the Button was pressed. The Duration is configured in ms with Swap Active. You could disable that Feature by using the same Image for Default and Swap.
If you want to use it on an Encoder so that you can both alter the Inner and Outer Knob with one Dial: Create an Encoder-Stack! Then configure the COM Radio Action as you want to use it and then copy & paste it in the same Stack. Configure the Commands for either the Outer and Inner Knob on the Left/Right Command and the Swap on the Touch Command. You can use the Format-Option on the Standby for Identification which Action (Knob) is currently selected - for Example with a ">" in Front for the Outer Knob and a "<" behind the Frequency for the Inner.
You then can basically turn -> push -> turn -> tap to set and swap your Frequency on one Encoder!
Generally spoken, this Action can draw a visual Representation of a continuous Value within its minimum and maximum Value. For example the Position of a Flight Control, the Fuel in a Tank, Engine Parameters or even Volume-Knobs on the Airbus ACP. It is not meant to draw the exact Graphics like seen in the ECAM, EICAS or analog Gauges. It is there to give a quick Approximation which is easy to read on the tiny StreamDeck Displays!
Has Command: By default this Action does have Input Fields to define Commands. But you can check Has Command to define the various Commands.
Value Format: Here you can define the Minimum and Maximum Values of the configured Variable. It is the Value Range the Gauge will use. The Scalar can be used to scale/normalize the Value to another Range. The Minimum and Maximum must match the scaled Value!
Gauge Settings: By Default this Action will render a Bar on the Display, with Draw Arc it can display an Arc instead.
Width; Height
and for an Arc it is defined as Radius; Thickness
Indicator Settings: The Indicator is drawn as Triangle at will represent the current Value on the Bar/Arc. You alter the Size to make it smaller or bigger and can change the Color it is using. With Flip you can alter on which Side it is drawn (outer<>inner, top<>bottom). The Color is not influenced by the Color Change Option.
Center Line: You can draw a Line in the middle of the defined Value Range (50%) which can have its own Color and Size.
Warning Range: If there is a "warning" and "critical" Area in the defined Value Range, they can be visualized with these Options. Both can have a separate Color and Range which can be anywhere in the defined Value Range (between Min and Max). With Symm. Range they can be drawn on both Ends.
You can 'trick' the Plugin to show only one Range when you set both to the same Color and Numbers.
Text Settings: By Default this Action will also draw a Text-Representation of the current Value on the Display, but you can disable that. The Options you find here work exactly like in the Display Value Actions: you can Format it, have Value-to-Text Mappings, configure the Font Settings and change the Position with the Draw Rectangle. By Default the Option Range Color is checked: when the Warning Range Option is used and the Value is currently in one of the Ranges, the Text will use the Color configured there.
This Action can be used when you have two different Values which share the same Range. For Example the Fuel in the Left/Right Tank or the Position of the Left/Right Aileron. The Variables to read from are configured in 1st Address and 2nd Address.
All Options work the same here and are applied to both Values. Flip will swap the Position of both Values on the Bar/Arc. A Text-Representation will be drawn for both Values with a Bar but with an Arc only the first Value will also be displayed as Text.
This new Action (introduced with 0.8.0) is so powerful and flexible that it needs a dedicated Chapter π
To get a rough a Idea of the Capabilities: A Fenix FCU Display can be done without any external Program/Script with individual Labels, Dashes, Dot, different Value Variables and Formatting all reacting correctly (also to the Light-Test) and dimmed by the Knob in the Cockpit - all in one single Action! Or an Action that can show a Knob on one Plane Variant and be a Korry Switch on another Variant.
It can use the exact same Resources as the "classic" Actions (Commands, Variables, Images, Scripts), but follows a totally different Approach on how they are used and arranged. While the other Actions have fixed Layout of the Elements displayed and have a fixed Logic how Commands are triggered, the Composite Action let's you freely design what Elements the Action consits off and allows to freely map one (or more!) Commands to the Events received from the StreamDeck. Hence it's Name: it is a Compound of its individual Elements.
Display Elements
The Action can be composed of any of the following Elements (in any Amount):
Element | Description |
---|---|
Text | Draw a "static" Text on the Canvas. |
Value | The textual Representation of a Variable with more advanced Options to format the Value. |
Image | Draw a "static" Image on the Canvas. |
Gauge | Draw a Bar or Arc on the Canvas. Can grow/shrink dynamically in Size by a Variable. |
Primitive | Draw a basic geometric Form (Line, Rectangle, Ellipse) on the Canvas. |
Each Element has its own specific Location, Size, Rotation, Orientation, Color and Font (if applicable) used to draw that Element on the Canvas.
The Elements may sound a bit "boring" at first, but it is the free Combination of them what makes the Composite Action so powerful. Together with the Manipulators you can attach:
Element Manipulators
Manipulators change the Appearance of an Element dynamically or based on a Set of Conditions
You can add one or more different Manipulators to each of the Elements of the Action.
Manipulator | Elements | Description |
---|---|---|
Color | ALL | Change the Color used to draw the Element when the Conditions are true. |
Visible | ALL | Show or Hide the Element when the Conditions are true. |
Size / Position | ALL | Change the Size/Position continuously by a Variable or to fixed Size/Position when the Conditions are true. |
Rotation | ALL | Change the Rotation continuously by a Variable or to fixed Rotation when the Conditions are true. |
Transparency | ALL | Change the Transparency continuously by a Variable or to fixed Transparency when the Conditions are true. |
Format | Value | Change the Format used on the Variable's Value when the Conditions are true. |
Indicator | Gauge | Draw an Indicator using its own Variable on the Gauge it is attached to. |
Conditions
Each Manipulator can have one ore more Condition(s) to determine if that Manipulator is active (if it will be used to manipulate the Element).
Each Condition uses its own Variable, Comparison and (fixed) Value to be evaluated.
Conditions can also be attached to Commands so they are only triggered when the Conditions are true.
Commands
For every StreamDeck Event that can be received, you can add one ore more Command(s) that should be triggered then (when the attaced Conditions allow it to run).
They don't have Options like Hold or Toggle Switch - theses are just a logic Consequence of they Way Commands can be attached and defined with that Action.
Creating a Composite Action starts as with every other Action: Drag the Action from Action List to a free Keypad/Encoder on the StreamDeck.
When you select a Composite Action on the StreamDeck, you will find a Open in Designer Button to open the dedicated Action Designer UI used to configure this Action. (The Copy/Paste Actions work exactly like as with the other Actions)
In Contrast to the StreamDecks Property Inspector, you can have multiple of these Windows open (but only as long as the Action is still visible on the StreamDeck). Every Change you do is directly applied to the Configuration of this Action (like with the other Actions).
The Top Buttons (1) act on the currently selected Item in the Tree View (3). You can either Delete the selected Item, Move it up or down, or Copy/Paste between Parent Nodes (which also works between different Instances of the UI).
NOTE that the Order of Elements/Manipulators is important: everything is drawn/executed in the Order seen in the UI - so an Image Element to draw the Background should be the first Thing in the List (on the Top)!
When you select an Item in the Tree View (3), you can view or change its Parameters in Settings View (4).
The Dropdown/Button (2) above the Settings View (4) will change dynamically depending on the currently selected Item. On the "Elements" Root it allows to add Elements, on an Element it allows to add Manipulators, on Manipulators it allows to add Conditions.
When you open a new/unconfigured Action, the UI allows you to apply one of several Templates resembling the other "classic Actions" to have a rough Layout predefined. That is purely optional, the default is "No Template" which will add nothing.
All Elements share a common Set of Settings:
On Input-Fields, the Setting is stored when the Field loses Focus or when the Enter Key is pressed. On every other Field the Setting is stored on Click.
Copy/Paste:
Besides most Setting you'll find a Copy/Paste Button. It allows you to transfer the copied Setting to another Element or Manipulator - also not restricted to the current Window!
When something was copied, only the Setting that can paste it will have the Button active. You need to paste it to copy something new again.
Font: (Text, Value)
Click on the Font-Name to open a Font Selection Dialog to configure what Font is used to draw Text. To quickly change the Size only, use the arrow Buttons on the right Side.
Below the Font you'll find Button to change the horizontal (left, center, right) and vertical (top, center, bottom) Alignment of the Text drawn.
Note: Font-Styles like "SemiBold" don't work - stick to the "default" Styles (Regular, Bold, Italic, Bold+Italic).
Color:
Click on the Color to open a Color Selection Dialog to configure what Color is used to draw that Element or Manipulator. The Dialog automatically remembers selected Colors (persistently).
It is also available for Images, where it is used to fill the Background of the Image (so only makes Sense when the Image has Transparency).
Position:
The absolute Position on the Canvas. In Contrast to the classic Actions, there is now "default Raster" of 72x72. E.g. a Position of 10, 10 shows up differently on the SD and the XL (or on an Encoder).
Use the arrow Buttons to move the Element left/right/up/down 1 Pixel on the Canvas for fine-tuning. The Button on the Center resets the Position!
The Plugin tries to scale all Position and Sizes when the complete Action is copied between StreamDecks with different Resolution - but that is only a rough Estimation. You absolutely need to fine-tune the Action.
For the Line Primitive, the Fields specifiy the Starting Location.
Centering:
Allows you to align the whole Element horizontally, vertically or both on the Canvas. You can still use the Position Fields, but they act as an Offset from that aligned Position.
Size:
The absolute Size (Width, Height) used to draw the Element. A Size of zero defaults either to the Canvas Size or Default Size (e.g. the native Size of the selected Image).
Use the arrow Buttons to change the Size of Element by 1 Pixel for fine-tuning. The Button on the Center resets the Size to the default!
Scaling:
You can apply a Scaling to the Element, which is either the Relation between the current Canvas Size and the Default Raster (72x72) -or- the Relation between the current Canvas Size and the Size of the Element.
Scaling can either keep the Aspect Ratio or stretch the Element on the Canvas. E.g. an Image can be scaled to completely fill out the Canvas.
Rotation:
The Angle the Element is rotated when drawn. An Angle of Zero means "facing up".
Transparency:
The Transparency used to draw the Element in the Range from 0 to 1 where 1 means fully visible.
Custom Name:
A User-defined Name to better identify an Element, Manipulator or Command. The Name is used in the Item List.
Conditions always behave and look the same, regardless to what they are attached to:
The current Value of the Variable is compared with the specified Comparison to the specified (fixed) Value.
Comparisons for lesser/greater (with or without Equality) are only applied to numeric Values. Equality and Unequality will act on both numeric and string Values.
Additionaly you can do Sub-String Searches with contains and not contains.
You can also use has changed so that the Condition is only true one time: when the Variable had changed since the last Refresh Cycle. The Value is ignored on this Comparison.
Element Text:
The static Text to draw on the Canvas.
It may sound boring first, but it can be very helpful to draw Labels that would normally require you to modify the Image used. E.g. you can use it to mark the Positions of a Knob, create a free customizable Title or for Labels on an Autopilot Panel.
Variable Address:
The Value of the Variable configured will be drawn on the Canvas. The Syntax is completely the same as with the other Actions, the Syntax Check is just a bit more nice in the Visuals π
The raw Value as it is read from the Sim is displayed below the Input-Field.
NOTE that all the following Settings are applied in the exact Order you seem them in the UI.
Preferred Type:
Some Variable Types can hold both a Number or String and the Plugin will to default to treat Numbers as Numbers - even when stored in a String! This Setting tells the Plugin how to treat the Value.
In some Situations (e.g. you generate a preformatted Number as a String in a Lua Script), you do not want that the Plugin tries to convert back the Value to a Number. In exactly these Situations you can force the Plugin to handle the Value as String and do not apply any (Number) Formatting on it (all from Decode BCD to Digits is not applied)!
Decode BCD:
Decode a Binary-Coded-Decimal.
Absolute Value:
Use the absolute Value for all consecutive Formatting.
Scale:
Apply a Scale / Factor to the Value.
Offset:
Add a fixed Number (positive or negative) to the Value. You can optionally check to apply that before Scaling is done!
Round:
Round the Number to the specified Number of fractional Digits. A Value of -1 means "do nothing".
Instead of Rounding you can also apply the Ceiling or Floor Function to the Value. When one of these Options is selected, the current Round Value is disabled (it doesn't play a Role)
Digits:
Here you can format the Value to a fixed Number of integral (Leading) and fractional (Trailing) Digits. A Value of -1 means "do nothing".
With Insert + Sign ... you can force the Sign on positive Values. If you just need the String to be the same Length regardless of a positive or negative Value, you can use Insert Space... instead.
By default the Formatting will "fill up" Zeros to match the Number of Digits specified - greater/longer Numbers will not be touched. If you want to cut-off Digits, you can use the Cut off Digits Checkbox to limit the Digits (the Values act now as a Maximum, not a Minimum).
Sub-String:
Cuts out a Part of the Value (as it is currently formatted). An Index of -1 means "do nothing"
The Index 0 is the first Character in the String, it is the Postion where the Sub-String starts.
The second field denotes the Length read starting from the Index.
Value Mappings:
Map a Value (as it is formatted currently) to a fixed Text (Value = Text). In Contrast to the classic Actions, you can only use Equality here.
When you have entered a Value and Text, hit the Enter Key in Text Field or click on the + Button. To remove a Mapping, select it and click on - Button.
When a Mapping is selected it is displayed in the Input Fields where you can change it - click on the Pencil to update the Mapping.
String Insertion:
Allows you to insert the Value (as it is formatted/mapped currently) in a static Text. Use %s
to specifiy where the Value is inserted.
Gauge Type:
Choose between a Bar or Arc to draw on the Canvas in the specified Color (as with the classic Display Gauge Action).
For an Arc the Width determines the Size and the Height the Thickness of the Arc.
Min / Max Value:
The Minimum and Maximum Value specifiy the "Range" that is displayed on the Gauge. You scale the Value optionally.
Note that these Values are applied to every Indicator that is attached, or put differently: Every Indicator attached can only display Values of that Range.
Angel Start / Sweep (Arc):
Used to specifiy at what Angle the Arc starts and how "long" the Arc is.
Color Ranges:
You can specifiy multiple "Sub Ranges" with their own Min, Max and Color Value on Top of the Gauge to denote "Critical" or "Warning" Ranges.
Click on the + Button to add a Range and the - Button to remove the currently selected Range.
To change a Range: select it in the List, change the Parameters as needed and click the Pencil to update the Range.
Gauge Markers:
These Fields allow to define Markers/Ticks/Lines on the Gauge. Each can have it's individual Position (Value), Thickness, Offset, Height and Color.
Click on the + Button to add a Marker and the - Button to remove the currently selected Marker.
To change a Marker: select it in the List, change the Parameters as needed and click the Pencil to update the Marker.
You can use a Shorthand/Template in Value to add a Range of Markers: $step:start:end
(replace with the respective Numbers). The other Parameters (Thickness, Offset, Height, Color) will be applied to all Markers as entered.
Grow Gauge:
By default a Gauge the gauge is drawn static in the Size specified. When you enable that Checkbox, you can specifiy a Variable used to grow (and shrink) the Gauge - i.e. the Bar/Arc itself will get bigger or smaller.
The Variable used is scaled by the specifed Number and must be within the specified Min / Max Value in order to work as intended.
The Color Ranges can still be statically drawn (regardless of how "big" the Gauge is currently) with the Always draw colored Ranges Checkbox. Else they will show up as the Gauge grows.
With Reverse Direction you can let the Gauge grow in the opposite Direction - i.e. a Bar grows from Right to Left instead.
Primitive Type:
Choose between a Line, Rectange or Ellipse (just the outline or filled) to be drawn in the specified Color on the Canvas.
Note that for a Line, the Position and Size Field will be used as Start and End Point of the Line!
Line Size:
The Thickness use to draw the Line, Rectangle or Ellipse (outline). Use the arrow Buttons on the Side to increment/decrement the Line Size.
A general Word on Condition Handling: You can have as many Conditions you need on a Manipulator, each using a different Variable/Comparison/Value.
BUT: You can not do any individual Logic between the Conditions. Either they must all be true (logical AND) -or- when the Checkbox Trigger Manipulator when any Condition is true ... is checked, at least one needs to be true (logical OR).
Note that per Default, an empty List of Conditions is considered as "false" - meaning the Manipulator will never be triggered (some Manipulators allow to be Condition-less).
Use this Manipulator to change the Color of an Element.
The Color selected in the Manipulator will be used to draw the Element it is attached to - when the Conditions are true. If they are false, the Element continues to use its configured Color.
Use this Manipulator to show or hide an Element.
The default Behavior of this Manipulator is to show the Element it is attached to - when the Conditions are true. If they are false, the Element is hidden (not drawn).
When you check Reset Visible State after, the Element is hidden again after the specified Time (in ms) - even when the Conditions are still true. The Element will only ever be shown for the specified amount of Time, when the Conditions change from false to true.
Use this Manipulator to modifiy the Size and/or Position of an Element. You can change single Parameters (e.g. only the Position on the X-Axis or only the Height) or all at once.
In the default Behavior, the Manipulator will change the selected Parameters with the specified Value on the Element it is attached to - when the Conditions are true. If they are false, the Element continues to use its configured Size/Position.
Alternatively the selected Parameters can be change dynamically based on the Value of a Variable - to enable that Behavior check Change Size/Position dynamically by Value and configure the Monitor Address. The minimum/maximum Position or Size that will be set is always within the current Canvas Size.
Specify the correct Minimum Value and Maximum Value to map the Variable's Value Range accordingly. When the current Value is at the Minimum Value, the Element Size or Position will be set to (almost) Zero. At the Maximum Value the Height/Width/Bottom-Right-Corner of the Canvas will be set.
You don't need Conditions with that Behavior, they can be empty. If you have Conditions configured, the Element will only be changed when the Conditions are true.
Values outside of the Min/Max Range will be ignored and will be considered at Min/Max.
Use this Manipulator to modifiy the Rotation of an Element.
In the default Behavior, the Manipulator will set the specified Rotation on the Element it is attached to - when the Conditions are true. If they are false, the Element continues to use its configured Rotation.
Alternatively the Rotation can be continously changed based on the Value of a Variable - to enable that Behavior check Continously rotate Element by Value and configure the Monitor Address.
Specify the correct Minimum Value and Maximum Value to map the Variable's Value Range accordingly. When the current Value is at the Minimum Value, the Element will be at Angle Start. When the current Value is at the Maximum Value, the Element will be at the Start + Angle Sweep.
You don't need Conditions with that Behavior, they can be empty. If you have Conditions configured, the Element will only be changed when the Conditions are true.
Values outside of the Min/Max Range will be ignored and will be considered at Min/Max.
Use this Manipulator to modifiy the Transparency of an Element.
In the default Behavior, the Manipulator will set the specified Transparency on the Element it is attached to - when the Conditions are true. If they are false, the Element continues to use its configured Transparency.
Alternatively the Transparency can be dynamically changed based on the Value of a Variable - to enable that Behavior check Change Transparency dynamically by Value and configure the Monitor Address.
Specify the correct Minimum Value and Maximum Value to map the Variable's Value Range accordingly. When the current Value is at the Minimum Value, the Element will be at 0 (not visible). When the current Value is at the Maximum Value, the Element will be 1 (full visible).
You don't need Conditions with that Behavior, they can be empty. If you have Conditions configured, the Element will only be changed when the Conditions are true.
Values outside of the Min/Max Range will be ignored and will be considered at Min/Max.
Use this Manipulator to modifiy the Formatting of a Value Element.
When the Conditions are true, the specified Formatting Settings are applied to the Value Element it is attached to (all Settings are replaced). If they are false, the Element continues to use its configured Format Settings.
Every Setting behaves exactly the same as in the Value Element.
Use this Manipulator to add an Indicator to a Gauge Element
You do not need to configure Conditions on this Manipulator. But if you do, the Indicator is only drawn when the Conditions are true.
The value of the Variable specified by Indicator Address is drawn on the Gauge Element the Manipulator is attached to. The Range of its Movement is predefined by the Minimum / Maximum Value of the Gauge Element. You can apply an individual Indicator Scale on the Value to get it into this Min/Max Range.
When Reverse Direction is checked, the Indicator will move the opposite Direction - e.g. from right to left.
The Type/Style of the Indicator is set by Indicator Type, you can select between: Triangle, Circle, Dot, Line or even an Image! When an Image is used, ensure its default Orientation is either up or down (so it will correctly point on to the Gauge).
Depending on the Type selected, you change the Line Size used and/or the Color used to draw the Indicator.
For Types with Orientation (Triangle, Image) you can check Flip Indicator to mirror the Indicator and change its Orientation.
For all Types you can configure the Size and Offset used to draw the Indicator. The Offset changes how far away from the Center of Bar/Arc it is drawn. Together with Flip you can an modify an Indicator to be drawn on the Inside of the Arc, for Example.
Commands are assigned to StreamDeck Events: KEY_DOWN/_UP, DIAL_DOWN/_UP, DIAL_LEFT/RIGHT, TOUCH_TAP). When you select one of these Events in the List View, you click on the Command + Button to add a new Command to the selected Event.
Each Composite Action will always have these StreamDeck Events, regardless of the Hardware. Assigning Commands to Events that can not be received (like DIAL_LEFT on a Keypad), does not hurt, but will also don't do anything meaningful π
A Command can have Conditions attached to it - if Conditions are attached, the Command is only triggered/send to the Simulator when the Conditions are true. Configuring a Condition works and looks the same as with the Manipulators. Select a Command in the List View and click the Condition + Button to add a new Condition.
You can configure multiple Commands per StreamDeck Event to send a Chain of Commands to the Simulator. They will be send in the Order seen in the UI (the top Command is send first). Note that on Encoders, that this Chain of Commands is execute on every Tick.
Per default, the Plugin will delay the Execution of the next Command in the Chain by 15ms. You can change that Delay by selecting the StreamDeck Event itself and set the Inter-Command Delay Field. A Value of 0 disables this Delay.
Be aware that Commands can not depend on each other, for Example when the first Commands updates a Variable, do not expect a following Command to have that changed Value already available (the Execution of Commands is decoupled from refreshing Variables & Actions).
Defining Commands share some communality with the classic Actions. The available Command Types and their Syntax is exactly the same. For Variable based Commands, you can use the same Value Manipulations in the On/Write Value Field.
For Variable based Commands, the Reset Switch Option is also available and works the same as with the other Actions - but each single Command has its own individual Setting and Delay/Hold Time!
For Command-only Types that allow to be sequenced, the Command Delay Option is also available to delay Execution of the Commands contained in the Sequence. Each single Command has its own individual Setting and Delay Time!
The Long Press Option is also available when the Command is placed on an _UP Event. Each Command can have its own individual Time for the Duration of the Press. There can even be multiple Commands with different Durations - the Plugin will select the highest valid Duration. For Example, when you have 3 Commands at 1000, 2000 and 3000ms and the press the Button for 2500ms, the second Command is send. In Essence, every Command is a timed Command - since the Long Press Duration default to 0ms, every Command will have the highest valid Duration.
Other Options like Hold Switch or Toggle Switch do not exist on the Composite Action. The first one is accomplished by assigning two different Commands on the _DOWN and _UP Events and the second one is accomplished by assigning a Condition to two different Commands. With the "small" Difference that the Conditions can be far more advanced now π
Note that for VJOY / VJOYDRV Commands you need to manually assign a Command for the same Joystick & Button to both the _DOWN and _UP Event (for non-toggled)!
The Plugin has 3 different States that affect how the Actions are displayed:
Text Coloration
The Plugin will ignore the currently configured Text Color if the String to draw contains a special start Sequence with the Color embeded in Html/Hex Format like "[[#BFBFBF"
Can be useful for Applications/Scripts to directly control the Color of their Output. Or in other Words: I wanted it for my GSX Script, so it is there π
The Developer UI is a separate Window that can be opened via the Tray-Icon of the Plugin. It currently offers two Views:
Monitor View
The Monitor View some essential Information and Statistics of the Plugin as well current Messages from the main Log File (anything greater/equal to LogLevel Information).
Clicking on the Resource Counts will spawn a List with the respective Resource Names (e.g. the List of loaded Image Files).
QRH View
The QRH View is basically a Compilation of Links to quickly navigate to useful References or Plugin Folders.
For Example: you can directly open the InputEvents File in your Text-Editor, go directly to the Script Folder in your Explorer, or directly open the MSFS SDK in your Browser.
The Plugin includes a basic Set of Images with a more "iconograpic" Look for better Readability instead of realistic Looks. But if you want a different visual Style, you can easily add & select own Images or Images from great IconPacks like from Guenseli or others! Just copy/save it to the Images Folder of the Plugin - Check the "QRH" Section of the Developer UI for a direct Link (accessible via the Tray-Icon of the Plugin):
%appdata%\Elgato\StreamDeck\Plugins\com.extension.pilotsdeck.sdPlugin\Images
You can organize different Image Packs in Sub-Folders to help navigating the Images easier ("Sub-Sub-Folders" are ignored) or keep them better separated.
You don't have to restart the Plugin, every new Image will be selectable/usable when you open the next Property Inspector. When an Image is updated, it needs to be "uncached" (=no Action is using it and Plugin in Idle State) before it is read again. You can also restart the Plugin via it's Tray-Icon to force reloading.
The included Images can also be changed or even deleted - but these Changes will be overwritten when the Plugin is updated.
To be usable the Image needs to be in PNG Format and must be "square" - having the same Height and Width. It will be automatically scaled to fit (but not stretched on an Encoder). For Encoders the Image should be "rectangular" - having a higher Width than Height.
But for optimal Visual Results it is recommended to provide an Image in specific and multiple Sizes. The Plugin will then automatically select the Image-Size which is optimal for the StreamDeck an Action is on (respectively the optimal for the Draw Rectangle Size). These are:
myImage.png
- it will be used for the Mini, SD and Mobile.@2x
Suffix: myImage@2x.png
- it will be used for XL, Plus Keypads.@3x
Suffix: myImage@3x.png
- it will be used for the Plus Encoders (Touch-Display). Make the Background transparent if possible/applicable.myImage
- the other Size-Variants are not visible in the UI.It is only really needed if you have multiple StreamDeck Types in use. For Example, if you have only have a XL and all your Icons are already 144px: just copy over the Images!
You can also add new Images for the "Sub-Images" selectable in the Korry Button Action. These are stored in the \korry
Sub-Folder of the above mentioned Path. These use the following Sizes (also PNG Format, preferrably with transparent Background):
@2x
Suffix.Note that the Images itself are not stored in the StreamDeck Profile: if you want to share a Profile with someone, you need to provide the Images you used in that Profile. β IF you have the Permission to share these Images - check and ask if you are allowed to do so! The Images which came with the Plugin don't need to be shared, just make sure to be at the same Plugin-Version.
If you want to share your Profile and Images together, check out how to create Profile Packages to make Distribution and Installation easier!
The Plugin is able to switch the current active Profile automatically on each on your StreamDeck depending on the current Aircraft or Simulator. For Example, you can fly an A320 with all your Buttons and Dials "speaking Airbus", load up a Boeing Aircraft after that and have all your Buttons and Dials "speak Boeing" now in a blink of an Eye π
To enable Profiles for Switching and to map Profiles to specific Aircraft, you need to open the Profile Manager App (introduced with 0.8.0) from the Plugin Icon in the System-Tray / Notification Area and click on Profile Mapping:
1. It is recommended to stop the StreamDeck Software (the App will ask) if you plan to make Changes!
2. To enable a Profile for Switching, click on the Checkbox StreamDeck Profile modified for Switching. The Profile Files will be modified on Disk, so that the Plugin can switch to it (StreamDeck API Mumbo-Jumbo).
3.
4. If you have multiple Profiles that should use the same Settings, you can use the Copy/Paste Button to transfer the Settings to another (enabled) Profile
5. If you are finished with mapping Profiles, be sure to click the Save Button.
6. Done - Your Profiles will be switched automatically from now!
Use the Profile Switcher Action on the StreamDeck to enable / disable Profile Switching globally.
Some Tips & Hints:
Starting with Version 0.8.0 of the Plugin, it has its very own Lua Engine to run Scripts internally - you do not need a registered Copy of FSUIPC or need to install FlyWithLua anymore to run advanced Logic for some Commands or Displays!
Scripts can read & write any Variable Type and can run any Command Type the Plugin supports. The Functions of these Scripts can then be used as Variable or Command in any Action the Plugin has.
All Scripts need to be placed in the Scripts Folder - Check the "QRH" Section of the Developer UI for a direct Link (accessible via the Tray-Icon of the Plugin):
%appdata%\Elgato\StreamDeck\Plugins\com.extension.pilotsdeck.sdPlugin\Scripts
Like any other Plugin-Resource, the Scripts are loaded on-demand and will be unloaded when no Action is using them anymore. You can add Scripts while the Plugin is running and already loaded Scripts are automatically reloaded when modified (based on the last modified Time of the File).
They can also be distributed via Profile Packages to share your Profiles as working Unit (or to just share a Script for the Plugin and make Installation easier).
The general Logic for the Scripts is: the Plugin will only run Functions within the Script. The whole Script is only executed globally one-Time: when it is (re)loaded.
The State of the Script is persistent as long as it is loaded. For Example, when you want to remember a State (i.e. a Button was pushed), you can store that Information in a (Lua) Variable inside the Script and access that stored Information when a Function (any within the Script) is run again (regardless if used as Command or Variable).
The Plugin supports 3 different Types of Scripts. Depending of the Script Type the available Lua Globals from the Plugin are different and the Conditions when the Script is loaded/unloaded changes:
\global
) are started when the Sim Session becomes ready (and are stopped when the Session ends). They run constantly on an individual Interval (or on specific Simulator Events). The starting Conditions can be specified to only start a Script for a specific Aircraft and/or Simulator.\image
) are only loaded when an Action uses that Script for Image Mapping (as an Alternative to hand-typed & text-based Maps). The Plugin will run a predefined Function when it need to fetch an Image (on every Refresh Cycle, when the Action has Changes). They can not be used as a Command or Variable (but of course can also read any Variable the Plugin supports)Some rough Guidelines:
lua.log
File in the log Directory of the Plugin.The following Lua Globals are available for Standard Scripts:
SimVar | SimVar("Address") |
---|
Every Variable used for reading in the Script has to be registered first.
Use the known Plugin Syntax to define Variable Addresses - it is recommended to add optional Prefixes.
Typically placed at the Beginning of the File (globally).
Example:
SimVar("L:AP_VNAV_ARMED")
SimRead | SimRead("Address") |
---|
Read a Variable from the Sim.
The Plugin tries to return Value in it "native" Form - a Number will be returned as Number and a String as String.
Use the known Plugin Syntax to define Variable Addresses - it is recommended to add optional Prefixes.
Example:
if SimRead("L:AP_VNAV_ARMED") == 1 then --do something end
SimReadString | SimReadString("Address") |
---|
Force to read a Variable as String - even when it a Number!
So a Value of 1
is returned as "1"
.
Use the known Plugin Syntax to define Variable Addresses - it is recommended to add optional Prefixes.
Example:
if SimReadString("L:AP_VNAV_ARMED") == "1" then --do something end
SimWrite | SimWrite("Address", Value) |
---|
Write a Value to a Variable (and only to Variables).
When you only use a Variable for writing, you do not need to register it with SimVar.
Use the known Plugin Syntax to define Variable Addresses - it is recommended to add optional Prefixes.
Example:
SimWrite("L:AP_VNAV_ARMED", 1)
SimCommand | SimCommand("Address") |
---|
Send a Command to the Sim.
Use the known Plugin Syntax to pass Parameters for Commands - it is required to add optional Prefixes.
Example:
SimCommand("K:APU_GENERATOR_SWITCH_TOGGLE:1")
SimCalculator | SimCalculator("RPN CODE") |
---|
Run Calculator Code in the Sim.
Does not return a Value - use SimRead on a "C:" Variable instead.
Example:
SimCalculator("(A:LIGHT POTENTIOMETER:60, percent over 100) 100 * (>L:LIGHTING_POTENTIOMETER_60)")
Log | Log("Message") |
---|
Log a Message to the current Log File.
Example:
Log("Loaded Fenix A321")
UseLog | UseLog("File") |
---|
Use a dedicated Log File for this Script instead of the general lua.log.
Place it with your SimVar Statements on the Beginning of the File.
Example:
UseLog("gsx.log")
Sleep | Sleep(ms) |
---|
Let the Script sleep for the defined amount of milliseconds.
Example:
Sleep(150)
GetAircraft | GetAircraft |
---|
Holds the current Aircraft String the Plugin knows (as received by the Sim).
Example:
string.find(GetAircraft, "FNX_321", 0, true)
SharpFormat | SharpFormat("format", parameters ...) |
---|
Use the string.Format Function of C# as an Alternative to Lua builtin string.format.
(uses the "Invariant Culture" for Formatting).
Example:
SharpFormat("{0:0.}", SimRead("INI_Altitude_Dial"))
SharpFormatLocale | SharpFormatLocale("format", parameters ...) |
---|
Use the string.Format Function of C# as an Alternative to Lua builtin string.format.
(uses the the "Current UI Culture" for Formatting).
Example:
SharpFormatLocale("{0:0.}", SimRead("INI_Altitude_Dial"))
Migration from FSUIPC
Most FSUIPC Scripts can be easily migrated:
Example Script
SimVar("L:FS2CREW_RAASPRO_MASTER_SWITCH")
SimVar("C:(E:ZULU TIME, number)")
--Variable Example: generate a String containing the current (Sim) UTC Time
function ZULU_CLOCK()
local clock = SimRead("C:(E:ZULU TIME, number)")
if clock >= 0 then
local hours = math.floor(clock / 3600.0)
local minutes = math.floor((clock - (hours * 3600)) / 60)
local seconds = math.floor(clock - (hours * 3600) - (minutes * 60))
return string.format("%02u", hours) .. ":" .. string.format("%02u", minutes) .. ":" .. string.format("%02u", seconds)
else
return ""
end
end
--Command Example: toggle some Cockpit Switches to get the Plane initialized
function INIT_AC()
SimWrite("L:XMLVAR_Battery_Switch_State", 1)
Sleep(750)
SimCommand("K:TOGGLE_NAV_LIGHTS")
Sleep(50)
SimCommand("K:TOGGLE_LOGO_LIGHTS")
Sleep(50)
SimWrite("L:XMLVAR_Baro_Selector_HPA_1", 1)
SimCommand("K:TOGGLE_EXTERNAL_POWER:1")
Sleep(50)
SimCommand("K:TOGGLE_EXTERNAL_POWER:2")
Sleep(50)
SimCommand("K:TOGGLE_EXTERNAL_POWER:3")
if SimRead("L:FS2CREW_RAASPRO_MASTER_SWITCH") ~= 1 then
SimWrite("L:FS2CREW_RAASPRO_MASTER_SWITCH", 1)
end
end
Global Scripts have additional Lua Globals available to them:
RunInterval | RunInterval(time, "function") |
---|
The specified function is called on the defined Interval (in ms). If no Function Name is specified, the Plugin will default to "OnTick".
It is required to have a RunInterval Call in your Script - if you do not need it, the Script propably doesn't need to be global π
There can only be one Call to RunInterval per Script and it need to be placed at the Beginning of the Script (globally) - typically with your SimVar Statements.
Example:
RunInterval(500, "MAIN_LOOP")
RunAircraft | RunAircraft("match") |
---|
The Script will be only started at Session Start when the passed Text is contained in the current Aircraft String (matching is case-insensitive).
It is not required to have that Call if you want to start a Script for every Aircraft.
There can only be one Call to RunAircraft per Script and it need to be placed at the Beginning of the Script (globally) - typically with your RunInterval Statement.
Example:
RunAircraft("fnx_3")
RunSim | RunSim("sim") |
---|
The Script will be only started at Session Start when current Sim matches. Allowed Values: "FSX", "P3D", "MSFS", "XP"
It is not required to have that Call if you want to start a Script on every Simulator.
There can only be one Call to RunSim per Script and it need to be placed at the Beginning of the Script (globally) - typically with your RunInterval Statement.
Example:
RunSim("MSFS")
RunEvent | RunEvent("event", "callback") |
---|
The specified callback Function is called as soon as the Plugin receives a Notification for the specified event.
This is currently only supported for MSFS (as the other Connectors do not offer an Event-based API). Check the Flight Simulator SDK for Event IDs
There can multiple Calls to RunEvent per Script to track different Events (in different Functions). These need to be placed at the Beginning of the Script (globally) - typically with your RunInterval Statement.
Example:
RunEvent("EXTERNAL_SYSTEM_TOGGLE", "SYSTEM_EVENT")
Migration from FSUIPC
Most FSUIPC Scripts can be easily migrated:
Example Script
--This Script will sync the FD/LS Button between Captain and FO - dynamically configurable via Internal Variables.
--It will also track which Aircraft Variant is currently used so other Actions can use that Information to act and appear differently.
SimVar("L:I_FCU_EFIS1_FD")
SimVar("L:I_FCU_EFIS2_FD")
SimVar("L:I_FCU_EFIS1_LS")
SimVar("L:I_FCU_EFIS2_LS")
SimVar("X:PLD_FNX_SYNC_FD")
SimVar("X:PLD_FNX_SYNC_LS")
SimVar("X:PLD_FNX_IS_A321")
RunInterval(500, "CheckButtons")
RunAircraft("fnx_3")
RunSim("MSFS")
SimWrite("X:PLD_FNX_SYNC_FD", 1)
SimWrite("X:PLD_FNX_SYNC_LS", 1)
local FDswitched = true
local LSswitched = true
function CheckButtons()
if SimRead("X:PLD_FNX_SYNC_FD") == 1 then
SyncFD()
end
if SimRead("X:PLD_FNX_SYNC_LS") == 1 then
SyncLS()
end
if string.find(string.lower(GetAircraft), string.lower("fnx_321"), 0, true) then
if SimRead("X:PLD_FNX_IS_A321") == 0 then
Log("Loaded Fenix A321")
SimWrite("X:PLD_FNX_IS_A321", 1)
end
elseif SimRead("X:PLD_FNX_IS_A321") == 1 then
Log("Loaded Fenix A319/320")
SimWrite("X:PLD_FNX_IS_A321", 0)
end
end
function SyncFD()
local posCapt = SimRead("L:I_FCU_EFIS1_FD")
local posFO = SimRead("L:I_FCU_EFIS2_FD")
if posCapt ~= posFO and not FDswitched then
SimWrite("L:S_FCU_EFIS2_FD", 1)
Sleep(125)
SimWrite("L:S_FCU_EFIS2_FD", 0)
FDswitched = true
Log("FD Button toggled")
elseif FDswitched then
FDswitched = false
end
end
function SyncLS()
local posCapt = SimRead("L:I_FCU_EFIS1_LS")
local posFO = SimRead("L:I_FCU_EFIS2_LS")
if posCapt ~= posFO and not LSswitched then
SimWrite("L:S_FCU_EFIS2_LS", 1)
Sleep(125)
SimWrite("L:S_FCU_EFIS2_LS", 0)
LSswitched = true
Log("LS Button toggled")
elseif LSswitched then
LSswitched = false
end
end
Image Scripts have a reduced Set of Lua Globals since their Purpose is very specific:
MapImage | MapImage("Image", index) |
---|
Every Image used in the Script has to be registered first and mapped to an self defined index. Your Script's GetMappedImage Function must return the respective Index to select an Image.
If the Image is in a Sub-Folder, you need to add that. The base Folder ("Images/") can be omitted. The Extension can be omitted too.
The MapImage Statements have to be placed at the Beginning of the File (globally).
Example:
MapImage("Images/A320/FIRE_open.png", 0)
SimVar | SimVar("Address") |
---|
Every Variable used for reading in the Script has to be registered first.
Use the known Plugin Syntax to define Variable Addresses - it is recommended to add optional Prefixes.
Typically placed at the Beginning of the File (globally).
Example:
SimVar("L:S_OH_FIRE_ENG1_BUTTON")
SimRead | SimRead("Address") |
---|
Read a Variable from the Sim.
The Plugin tries to return Value in it "native" Form - a Number will be returned as Number and a String as String.
Use the known Plugin Syntax to define Variable Addresses - it is recommended to add optional Prefixes.
Example:
if SimRead(""L:S_OH_FIRE_ENG1_BUTTON"") == 1 then --do something end
SimReadString | SimReadString("Address") |
---|
Force to read a Variable as String - even when it a Number!
So a Value of 1
is returned as "1"
.
Use the known Plugin Syntax to define Variable Addresses - it is recommended to add optional Prefixes.
Example:
if SimReadString(""L:S_OH_FIRE_ENG1_BUTTON"") == "1" then --do something end
Log | Log("Message") |
---|
Log a Message to the current Log File.
Example:
Log("Loaded Fenix A321")
GetAircraft | GetAircraft |
---|
Holds the current Aircraft String the Plugin knows (as received by the Sim).
Example:
string.find(GetAircraft, "FNX_321", 0, true)
Callback Function
The Name of the Callback Function (to get mapped Image) is always: GetMappedImage
and needs to have at least one Parameter for the current Value used for the Mapping.
The passed Value is what the Plugin would use for text-based Image Map. You do not need to use it (just accept it as Parameter)!
You can have additional Parameters to the Function to reuse the Script on different Cockpit-Switches.
The Function is expected to return a Number - the Index to one of the Image mapped with the MapImage Calls.
Example Script
--This Script return the fitting Image for the different States of Fenix A320 Fire Push Buttons
MapImage("Images/A320/FIRE_open.png", 0)
MapImage("Images/A320/FIRE_open_up_off.png", 1)
MapImage("Images/A320/FIRE_on_open_down.png", 2)
MapImage("Images/A320/FIRE_on_open_up.png", 3)
SimVar("L:S_OH_FIRE_ENG1_BUTTON")
SimVar("L:S_OH_FIRE_ENG2_BUTTON")
SimVar("L:S_OH_FIRE_APU_BUTTON")
function GetMappedImage(currentValue, funcParam)
Log("Param "..funcParam)
local btnState = SimRead("L:S_OH_FIRE_"..funcParam.."_BUTTON")
Log("BtnState "..btnState.." currentValue "..currentValue)
if currentValue == 0 then --no fire indication
if btnState == 0 then
return 0
else
return 1
end
else
if btnState == 0 then
return 2
else
return 3
end
end
end
Profile Packages (.ppp - PilotsDeck Profile Package) allow Profile Authors to share their Work as coherent Unit and greatly simplify Installation for the Users! (introduced with 0.8.0)
The Package File contains (almost) everything needed by the User to use a Profile or a Set thereof: Images, Scripts and of course the StreamDeck Profiles. A Package File does not need to have all of the three - you can create also Packages to only distribute an Image Pack or a Script or just a Profile. An User only has to take Care to get the correct Fonts now. (Since most Fonts have Limitations on the Distribution, it didn't make much Sense to add them as Feature/Content)
Requirements / Guidelines for creating Package Files:
Package Description
The Package Description is saved in package.json File and should look like that:
{
"packageformat": 1,
"title": "A fancy Profile for some Aircraft",
"versionpackage": "0.1",
"aircraft": "Airplane! (Version 1982 and greater)",
"author": "Otto",
"url": "https://www.google.com",
"notes": "A \"fancy\" Profile for an Airplane including:\r\nJust Switches, Lights & Knobs!\r\nFor Instructions on the blinking, beeping and flashing lights: consult Buck Murdock.",
"versionplugin": "0.8.0"
}
packageformat
For the Future, to keep track of Changes in the Fileformat - just leave it at 1 for the Moment!
title
A short meaningful Title, so the User knows what she/he is looking at.
versionpackage
A Version-Number assigned by the Author so that both the Author and the Users can keep track of updated Packages.
It is just displayed, there is no Version-Checking involved.
aircraft
A short Description for what Aircraft (and eventually Variants thereof) this Package is intended.
It is just displayed, there are no active Checks involved.
author
Your Name, the Name of the Author π
url
An URL to the Readme and/or to the Download-Page - a Place Users can go to.
notes
Use this Property to inform the User about necessary addtional Steps (e.g. Fonts) or other vital Information.
Be aware to escape Characters properly for the json Format! Quotation Marks must be escaped like \"
. To have a Newline in the Output, use \r\n
.
versionplugin
This is the minimum Plugin Version required to use the included Images/Scripts/Profiles.
The Version specified will be checked agains the current Plugin Version the User has. If it is below this Minimum, the Package Installation will not be allowed
Folder Structure
\
|--\Extras
| |--Additional Files
|
|--\Images
| |--image.png
| |--\imagesubfolder
| |--image.png
|
|--\Profiles
| |--profile.streamDeckProfile
|
|--\Scripts
| |--standardscript.lua
| |--\global
| |--globalscript.lua
| |--\image
| |--imagescript.lua
|
|package.json
File Format
A Package File is just a normal Zip-Archive with another Extension (.ppp instead of .zip).
So when your finished with you Package Contents, just zip everything into an Archive and change the File Extension.
Make sure the Folder Structure is preserved (relative Paths) and that the package.json File is at the Root of the Archive. Do not use any fancy Options - just create a plain Zip File!
Some of the Plugin Settings can be tweaked in the File PluginConfig.json
in the Plugin Folder (where the Binary is). The File will be persisted through Updates - changed Settings will survive Updates.
Normally you don't need to do anything here, it is best to keep the Settings and their Defaults unless instructed otherwise:
A Note on networked Installations for X-Plane: the Plugin has no Way to determine if the Simulator is in the loading State - the Plugin will directly jump to Idle to Session Ready when X-Plane has finished loading the Flight. Changing Aircrafts/Loading another Flight will cause the Plugin to consider the Simulator as stopped until it has finished loading.
First, check if you see the Plugin's Actions available in the StreamDeck GUI (on the right Side). If you don't see them, verify that the Plugin was installed in the correct Path. The Path to the Executable should be: %appdata%\Elgato\StreamDeck\Plugins\com.extension.pilotsdeck.sdPlugin\PilotsDeck.exe
.
Second, if you see the Actions but you can not configure any Action because the Dropdown Boxes for Command Types and Images are not filled: it is very likely that the Executable and/or its DLLs are blocked by some Security Mechanic. The Dropdowns not working is only the "first Symptom" - the Actions/Buttons on the StreamDeck will generally not work in any Sim!
One Reason could be the Windows Explorer / Zip Folder Mechanic for "Files downloaded from the Internet". Run that in Powershell (change \<USERNAME> accordingly):
dir -Path C:\Users\<USERNAME>\AppData\Roaming\Elgato\StreamDeck\Plugins\com.extension.pilotsdeck.sdPlugin -Recurse | Unblock-File
If that is not the Culprit, check your AV Scanner and try if it works if you add an Exception for the Plugin. With Avast this is not necessary (does only a thourough "Cyber Scan" upon first Launch, requiring to restart the StreamDeck Software), but other AV Scanners might behave differently and just silently block it!
And it is not only File-Scanning: Security-Tools / Firewalls blocking Network-Traffic could also be the Reason! The Connection between StreamDeck Software and it's Plugins is done via local Sockets (also the Connection to X-Plane).
If it still doesn't work, contact me on one of the Platforms or Forums! To help you I will need:
dotnet --list-runtimes
Sorry I've tricked you, there is no real Tutorial here π€£ - but I can at least try to give some basic Guidance where to start with all that.
The Thing is: there are so many different Aircrafts out there which each handle Things differently, even in the same Simulator, that there can be one or few Tutorials which could explain everything. Don't ask for Tutorial-Videos, they will not exist (at least from me): I don't specifically hate such Videos, I just strongly Belief that Reading is the Key to get a fundamental Understanding of any Topic. On that Fundament, other Mediums like a Video can be great Addition.
So after Reading this Document - where do you start? π
Before you can really start with anything in the Plugin, you must have some kind of SDK/API/whatever Reference from anywhere for the Aircraft you want to create StreamDeck Actions for. You need to know how you can read the Control-States and how you manipulate them! Some Aircraft a purely based on L-Vars, others only for read, other not at all. Some use Custom Events, some use Rotor-Brake-Codes. Some things just can't be read. If you are lucky, it is a Default Plane or a Plane which reacts to Standard-Commands and -Variables. For such "defaulty" Planes, you can use the various References for Standard Commands and Variables I have linked in Defining Commands and Variables.
You can use other Sources like MobiFlight's HubHop to lookup if someone else already found out what Variables / Events can be used on a specific Plane. You can also use the ModelBehaviour Debugger of the MSFS DevMode to search for Events & Variables. The great Sebastian (Mr. MobiFlight himself) did a Guide on YouTube how to use that! β€οΈ
Try to follow the KISS Principle. Don't start with Complex Controls or even Displays. Focus on the Cockpit-Controls with the greatest "discomfort" in a normal Simulator Session. Usually the ones where fiddling arround with the Mouse is just annoying. Things like the Aircraft-Lights, because you have to quickly control these when entering/leaving a Runway for Example. Being able to quickly control & check such Controls without loosing Focus on Flying/Taxiing the Aircraft will give you the most Benefit and greatly improves the Simulation Experience.
Lights and Signs are a good starting Point (except on the FBW...) because the Variable to read can relatively easily be found. They only have 2 or 3 States and most of the Time you want to toggle them. That calls for a Dynamic Button! Enter the Command, enter the Variable, enter the Values for On/Off (and Special) and select the Light... Images. You have defined your first Light. Just copy and paste that Action for the next similar working Light and change the Command and Variable. Now you have your Light Panel on the StreamDeck!
-TODO- Update Examples
The essential Stuff from the A320 Overhead. Everything displayed here was done with the Korry Button Action. In Case of the Fenix everything is done with LVAR Variables and Commands. For the FBW it is mostly LVAR but also AVAR and CONTROL (they call them "MSFS Var" and "MSFS Event").
The essential Stuff from the A320 Main Panel. The Korrys are again done with the Korry Button Action. The Anti-Skid Switch is done with the Display Value with Switch Action (and Text-Mapping). The Display-Brightness and Brake-Pressure is done with the Display Gauge Action. The Clock is just a Display Value, Buttons for +/- are just Simple Buttons. The Clock-Display-Content is read from a Lua Function which calculates the Value and returns a formatted String.
A StreamDeck Folder with the most common Actions when in Flight. The Lights & Signs Switches are done with Dynamic Buttons, as well as the EFIS, FCU and ECAM Buttons. The EFIS ND Mode and Range are done with Display Value with Switch again (Text-Mappings!).
A StreamDeck Folder for the ACP. The Buttons are Korry Buttons, just with an non-empty Background. The Volume-Displays are Display Gauge Actions. Increasing & Decreasing with Simple Buttons.
A StreamDeck Page on the Plus for the FCU. The Encoders use the Composite Action for an accurate FCU Display and pushing the Dial automatically toggles between Managed/Selected. The Keypads are Dynamic Buttons with two different Images for On & Off.
A complete MCDU Keyboard, with Subpages for Numbers and Letters, on the XL. It is all Simple Buttons!
The Plugin is published under the MIT License.
Using NeoLua Engine from neolithos
Using Code from "StreamDeckToolkit" from FritzAndFriends, published under MIT License
Uses "FSUIPC Client DLL for .NET" from Paul Henty (License) and "FSUIPC" from Pete and John Dowson.
Code for X-Plane Connection inspired by MaxFerretti's XPlaneConnector.
Code for SimConnect / WASM Connection inspired by MobiFlight.
Using Icons from Bootstrap
Prepar3D is a Trademark or Registered Trademark of Lockheed Martin Corporation.
X-Plane is a Trademark or Registered Trademark of Laminar Research.
StreamDeck is a Trademark or Registered Trademark of Elgato Systems and/or Corsair Gaming, Inc.
Windows and Flight Simulator is a Trademark or Registered Trademark of Microsoft Corporation.
All Rights belong to their respective owners.