mixMugz / msfs2020-uimod

Little UImod for Microsoft Flight Simulator 2020
92 stars 7 forks source link

Connect to other devices such as StreamDeck #6

Open Djeez2 opened 3 years ago

Djeez2 commented 3 years ago

Hi,

I use a StreamDeck to toggle the POI markers and aircraft labels by emulating keyboard keys. However, this has the disadvantages that this only works when MSFS has focus and that I cannot see the state on my streamdeck. Therefore I would like to make a connection to my streamdeck, as an example of a custom "button box".

I am a professional software developer but I have no experience in web technology or javascript, so it is difficult for me to tap into your plugin. My idea was to open a websocket in the javascript and use that to get and set the state. However, my initial attempts failed miserable, as I have no idea when these scripts are executed and how to retain a connected socket.

Could you be of assistance, or is my plan plain impossible?

Thank you very much in advance,

-Emile.

streamdeck

stestino commented 3 years ago

I found your comment as I plan to do something similar with SimDashboard, which uses SimConnect as a way to communicate directly to MSFS. It does look like there's a plugin for StreamDeck/SimConnect integration here that might be worth a shot.

Djeez2 commented 3 years ago

I am actually using that plugin but it requires the sim to expose the variables through simconnect. If there is way the mugz could expose the mod settings as sim variables I can hook into those. That might actually be a neater solution than the websocket hack I described above.

mixMugz commented 2 years ago

I dont find any way to connect to stream deck. But still searching