744 Forum

Apron => Accessories => Topic started by: Gary Oliver on Fri, 1 May 2020 16:06

Title: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: Gary Oliver on Fri, 1 May 2020 16:06
All,

In our simulator we use a Elgato Streamdeck (https://www.elgato.com/en/gaming/stream-deck) to control a few basic functions of PSX such as ground services and Pushback.

A few people asked for it, so here it is in its very raw form of V0.0.0.0.0.0.0.0.0.1.  It does the job but I haven't had much time to update and tweak it. If anyone wants access to the C# code to extend it, then let me know and I can send it to you.

Requirements

.NET 4.7.2
Streamdeck (Normal Size not XL or Phone)

Install Instructions

1) Extract the Zip File Somewhere
2) Copy the Module into your PSX.NET Modules Folder
3) Double click the font and click 'Install'
4) Run PSX.NET and PSX.StreamDeck

The Services page works well, the Doors is a bit tempremental, if anyone wants to expand on let me know and I will send you the code.

Download Link

https://www.dropbox.com/s/7p967ih24b5agr7/PSX.Net.Streamdeck.zip?dl=1

Whats it look like

(https://i.imgur.com/CMP6QwT.png)

(https://i.imgur.com/U1nL06W.png)
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: GodAtum on Tue, 29 Dec 2020 12:21
Hi Gary, this looks fantastic! Would you mind releasing the source code for me to play with?
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: Matt Sheil on Tue, 29 Dec 2020 22:27
Amazing. Ordering 2 now
Was it easy to install in library?
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: Gary Oliver on Tue, 29 Dec 2020 22:42
Matt,

I used some superglue to stick them to the blanking plates in the middle of the library.

Godatum,

I'll email when I get it together.

Both,

I have a new version I'll post.


Cheers
Gary
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: Will on Tue, 29 Dec 2020 22:51
Is the idea behind the Elgato Streamdeck that it is a small external keyboard that runs macros? So you're assigning key presses and mouse clicks to the buttons?
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: Jeroen Hoppenbrouwers on Wed, 30 Dec 2020 00:07
Each button also is a mini LCD display, so you have a keyboard that sort of behaves a bit like a touch screen.

I probably miss something, but technically you could probably write a small app (or just a simple web site) for a cheap tablet and glue the tablet to the blanking plates to create the same effect?
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: beat578 on Wed, 10 Feb 2021 06:09
There is also an app called touch portal. you can do something similar, but with your handy or tablet. I don't know how that works, but it look interesting too. And it would be cheaper than a streamdeck. But i like the quality and look of the streamdeck. Can you recommend it as external keyboard to program some macros or key shortcuts?
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: Greg Hateley on Fri, 19 Feb 2021 04:04
Hi Gary,
The services tab is working but no luck with streamdeck.
The "streamdeck" software is seeing the device ok.
This error in the Windows log when starting PSXstreamdeck.exe
Application: PSXStreamDeck.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileLoadException at PSXStreamDeck.Program.Main()

Regards
Greg
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: kwieser76 on Fri, 14 Oct 2022 13:34
Hi Gary,

It is still in V0.0.0.0.0.0.0.0.0.1. :-)

And if they're a new download link as the old one doesn't work.

thx
Kurt
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: Hammerstan on Sat, 25 Nov 2023 08:31
Hi

Is anyone able to link to a version of this?  The download link is broken.
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: asboyd on Sat, 25 Nov 2023 21:51
I use my StreamDeck to control my GSX (and aircraft doors) in P3D and MSFS. That way I can call up the services menu and call for each of the items in turn. This makes external views more interesting, especially when it comes to push back and PSX is acting as slave for that instance.

Cheers,
AlexB
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: Swiso on Wed, 29 Nov 2023 12:15
Just got one XL on Black Friday, I have already programmed it to launch DCS, Xplane and other programs.
I tried with PSX, through AerowinxStart.jar file, but it doesn't start.
Any idea how to do to launch a java based program ?
Thanks.
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: asboyd on Wed, 29 Nov 2023 20:54
You may need to run a .bat file with the java.exe command in it to run AerowinxStart.jar.

Cheers,

Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: Jeroen Hoppenbrouwers on Thu, 30 Nov 2023 00:34
Or try creating a Shortcut and point the XL at that.
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: brian747 on Thu, 30 Nov 2023 09:03
I wanted to add a button to fire up WidePSX (also a jar file) but found that the batch file method (as I implemented it, at least) wasn't reliable — and I had some difficulty finding something that was. In the end I came up with a method that seems (OK, — it is) convoluted, but works reliably for me. I'll describe it for WidePSX, but I think it should work for any jar file. So, just in case it's of use for anyone else, here's a detailed description of how to do it:-

First, make a temporary desktop shortcut icon for WidePSX (the jar file, in my case), like this:
•   Right-click the desktop and select New Shortcut.
•   Browse to WidePSX.jar (or type in the location (e.g. "C:\MSFS Utils\WidePSX\WidePSX.jar")
•   Click Next
•   Give it a name (zzzz for example — nothing fancy, 'cos it won't exist for long).
•   Click Finish

Now make a shortcut to the temporary shortcut (I know, I know — but bear with me and you'll see how it develops):
•   Right-click the temporary shortcut and select Create shortcut.
•   Right-click the new latest shortcut and go to Properties. In the Target field place the cursor at the start of the field (i.e. before the "C:\MSFS Utils\WidePSX\WidePSX.jar" in my case) and type —
java.exe -jar
•   Make sure there's a space after the -jar! To be clear: it has now become java.exe -jar "C:\MSFS Utils\WidePSX\WidePSX.jar", for me.
•   Click on Apply and then on OK.

(Optional, just for interest) — if you now right-click the shortcut that you just edited and select Properties again, you should find that the target type is no longer "Executable Jar File" (it has become "Application" — a type which can be pinned to the taskbar); whilst the "Target location" has become "javapath"). Click Cancel to exit the Properties view.

To eliminate confusion, delete the original zzzz desktop icon (the temporary one, that you created first).

OK, now double-click your latest desktop shortcut to open the java application, and leave it open.
•   Go down to the icon that appeared on the right of the taskbar when you double-clicked the shortcut: right-click that new taskbar icon and select "Pin to taskbar". Now close the app.
•   Drag the toolbar icon to the left until it is one of the first nine icons (I made it the third one — that is, not counting the compulsory Start, Search, and Copilot (sic) icons which I have greyed in the pic below).
(https://i.postimg.cc/4dYyzqYc/Initial-3-icons-greyed.jpg)
•   Check that pressing the Windows key with (in this case) the 3 key (that's the figure 3 over the alpha keys, not on the numeric keypad) successfully opens the app.

Finally ( <sigh> ) in the Stream Deck application drag the Hotkey icon from the System group onto the desired Stream Deck button. Click in the 'Hotkey' field and type the activating key combination — in my case Windows and 3). Add a name and any other customisation you wish (an icon, etc.). And that's it.

If a batch file had worked reliably it would have been so much simpler.  (https://i.postimg.cc/dVxW1nzZ/rolleyes-less-anim.gif)  There's probably an easier way, but this wacky method works for me — maybe it will work for you?     (https://i.postimg.cc/NMzxWyPM/Search-Me-anim.gif)

(https://i.postimg.cc/g0SrLm2d/Wide-PSX-SD-btn-300-px-wide.jpg)

Cheers,

Brian


Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: Swiso on Thu, 30 Nov 2023 10:31
Quote from: Jeroen Hoppenbrouwers on Thu, 30 Nov 2023 00:34Or try creating a Shortcut and point the XL at that.
Hi Hoppie,
that's what I did, but it doesn't work.
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: Swiso on Thu, 30 Nov 2023 10:52
Hi Brian,

Brilliant solution, it work !!
Thanks a lot.

AA
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: brian747 on Thu, 30 Nov 2023 11:10
(https://i.postimg.cc/j5Y9JHFx/2thumbs.gif)  Terrific!  Well done!

(And thank you for letting me know  (https://i.postimg.cc/52rBYB9H/hatlift.gif)  ).

Cheers,

Brian
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: Swiso on Thu, 30 Nov 2023 11:35
Quote from: brian747 on Thu, 30 Nov 2023 11:10(https://i.postimg.cc/j5Y9JHFx/2thumbs.gif)  Terrific!  Well done!

(And thank you for letting me know  (https://i.postimg.cc/52rBYB9H/hatlift.gif)  ).

Cheers,

Brian


I posted the link to your solution on "Community Tech Help" -> "Streamdeck" channel of Elgato Discord server, because it might be useful to other people.
https://discord.com/channels/581549424518365226/1080643347070320700/1179740084464013426

Thanks !
AA
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: brian747 on Thu, 30 Nov 2023 14:38
Ah, thank you for that (although TBH I detest Discord, but hey...).

Perhaps, therefore, it's just as well that on Discord you mis-spelled my name.     (https://i.postimg.cc/gkGW7W4z/tongue_grin.png)    But — no problem at all.  (I've been known on the Internet as brian747 (with an i not a y) for decades prior to Discord being invented — and I was LongHaul before that, back in the far-off days of Bulletin Boards and 300 baud modems...  <sigh> ).

(As I used to tell my clients in those distant times "The best security of all is to unplug your modem from the telepone line!".     (https://i.postimg.cc/52vPMzdN/default-rofl.gif)      Ah, but I digress — as is all too often the case these days...).     (https://i.postimg.cc/7L2tCd8J/ashamed.gif)

So all is well,     (https://i.postimg.cc/wT4wwg9s/big-grin-teeth-smiley.jpg)

Cheers,

Brian
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: Swiso on Thu, 30 Nov 2023 22:43
Ah my bad !! 🙈🙈
You're right, and I promptly made amend.
Sorry.☺️

Discord I find it useful to get informations or help all in one place...
Even for flying online it could be useful.

And while today the Internet speed is from another world compared to that era, I agree with you about the modem.😅

Thanks again.
Cheers
Aris
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: Kurt on Fri, 1 Dec 2023 22:20
Any chance of an updated download link? - got a stream deck today :D

Thanks
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: Bluestar on Sat, 2 Dec 2023 17:19
I'm not sure I understand "steamdeck"?   Could someone explain it to me, especially since I'm only running two computers on a my local network.
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: cavaricooper on Sat, 2 Dec 2023 17:27
Bode-

This is the one I use- https://www.elgato.com/us/en/p/stream-deck-xl

Check out - https://flightsim.to/profile/Guenseli to give you an idea of what it's capable of.  I didn't use one for YEARS- now I cannot imagine flying without one.

HTH- C
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: brian747 on Sun, 3 Dec 2023 10:43
Hi Bode,

> "Could someone explain it to me..."

Well, they do say that a picture is worth a thousand words, so....    (https://i.postimg.cc/h45q7V0T/grin.jpg)

I have customised my Stream Deck to suit my way of working (I also have a VRi EFIS/MCP/COM unit, which handles many functions, although a few are duplicated on the 'Deck simply for convenience).

The top level screen is like this:-

(https://i.postimg.cc/Y02kn8Yf/Stream-Deck-top-level.jpg)

(The buttons in the left two columns trigger PSX Layouts). Whilst the two buttons lower right take you to:-

(https://i.postimg.cc/nrdx6718/Stream-Deck-EFIS.jpg)

...and...

(https://i.postimg.cc/tRD9ZQGr/Stream-Deck-EFIS-VIEWS.jpg)

(The eight buttons in columns six and seven trigger MSFS 'Showcase' external views).

I have made my own icons in all cases, although many are available from Guenseli and elsewhere. The somewhat eclectic choice of options is due to the fact that I run PSX and the scenery generator on the same machine, and so have a selection of views including PSX+MSFS, MSFS only, and PSX only — and the buttons semi-automate moving between them.

I hope that helps a little,

Cheers,

Brian


Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: kev32b on Sun, 3 Dec 2023 13:38
Brian,

That looks great could you let me if possible how you did that or how you coded it would love to set mine up similar to that

Any help be great

Thanks
Kev
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: brian747 on Mon, 4 Dec 2023 15:53
Hi Kev!

> "...could you let me if possible how you did that or how you coded it ..."

Well,  <*cough*>  that would inevitably be a very long document — but more to the point (as I mentioned in my previous post), my SD setup is heavily customised, both to my own hardware (so that, for example, the multiplicity of functions handled by the EFIS/MCP/COM unit are mostly missing on the SD) and also to my specific sim setup. Consequently, a description of my own setup is unlikely to be of much use to anyone else. And in any case, I'm beginning to feel that these generic discussions about using the Stream Deck are now in danger of hijacking Gary's PSX.NET.Streamdeck thread to an unreasonable extent (my apologies, Gary!), so if you need any more information on the topic of the Stream Deck in general (i.e. as opposed to Gary's PSX.NET.Streamdeck), it would be helpful if you could please start a new thread for it.

But now that I'm here (so to speak), as my final post on the topic in this thread I might as well go ahead and attempt to outline some basic information that should — hopefully — help you, and perhaps others....    (https://i.postimg.cc/hjDtKwFV/Whistle(anim).gif)

The beauty of the Stream Deck is that it is *made* to be readily customised to your own needs, and to your own hardware and software. And also, it has to be said that setting it up is rather fun, once you get the hang of it. So I would seriously encourage you to give it try.

The basics of setting the Stream Deck up from scratch are covered in dozens of online articles and, of course, YouTube vids — so there's no need whatsoever for me to go into all that. And once it's installed and ready to go, for the purposes of using it with PSX and MSFS you can do most things using just two of the tools in the System group on the SD menu.

1. The "hotkey" tool

(https://i.postimg.cc/ZRS7TTPY/Hotkey-2.jpg)

This will activate most of the controls in the PSX cockpit for you, when used in conjunction with the vast number of shortcut key combinations listed on pages 27 - 34 of Hardy's manual v10.1.7. But, in this connection, you should note also that some useful new key combinations have been added since the manual was published, thanks to Hardy's kindness:-

Update 168.01: Shortcuts added for direct gear up and down commands: CTRL+ALT+D moves the lever to the DN position, CTRL+ALT+U moves it directly to the UP position (or to OFF when locked on ground).
Update 172.02: Key combination CTRL+B added, which pulls the parking brake lever and simultaneously pushes the brake pedals.    (https://i.postimg.cc/bYn4jQXh/yahoo-anim.gif)

Then there's —

2. The innocuously-named "open" tool

(https://i.postimg.cc/QCNfT0nR/Open-2.jpg)

This one will enable you to trigger exe files and batch files, thus opening up an additional cornucopia of fun things to start from your Stream Deck.

Then, to touch very briefly on the topic of icons: although there are many SD icons available from flightsim.to, and even from some paid sources, it's fairly trivial to make your own, using your favourite photo editor. Any size seems to be OK as long as it's square: I standardised on 150 pixels square (for no particular reason) — but YMMV.

Which more or less says it all  — except that for the sake of completeness I should briefly mention two potential things that you need to be aware of.

The first relates to getting your Stream Deck to trigger a Java 'jar' file (such as PSX, or WidePSX, for example). Some people have had success using batch files (or compiled batch files) but I didn't find that method entirely reliable so I came up with my own (somewhat wacky) way of doing it, which I describe in detail in this post (https://aerowinx.com/board/index.php?msg=78453). But use any method you like, as long as it works for you.    (https://i.postimg.cc/gknrwfxD/StraightFace(anim).gif)

The second (and last point in this discussion, I promise) concerns the elephant in the room — the fact that when you trigger a PSX shortcut you need to ensure that PSX has the focus! (Notably if, like me, you run PSX and MSFS on the same machine). The easiest possible way is to click on it first, obviously, but if you want to get seriously adventurous you could perhaps consider going so far as using JoyToKey to configure a button on your stick or throttle hardware (or indeed, on your Stream Deck) to trigger an AutoHotKey script that changes the focus for you (you can see a very small fragment of AHK code being quoted, here (https://aerowinx.com/board/index.php?msg=77985))  — but that's more advanced stuff and, as they say, beyond the scope of this simple guide.    (https://i.postimg.cc/vTJ7WStc/NoWay.gif)

Good luck, and enjoy your Stream Deck with PSX! If by any chance you do encounter any seemingly-insuperable problems, start a new thread on this forum, and one of the Stream Deck enthusiasts here will no doubt leap in and do their best to assist you.     (https://i.postimg.cc/G3zsTFqc/Nerd(anim).gif)

Cheers,

Brian
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: Swiso on Tue, 5 Dec 2023 16:14
Quote from: brian747 on Sun,  3 Dec 2023 10:43Hi Bode,

> "Could someone explain it to me..."

Well, they do say that a picture is worth a thousand words, so....    (https://i.postimg.cc/h45q7V0T/grin.jpg)

I have customised my Stream Deck to suit my way of working (I also have a VRi EFIS/MCP/COM unit, which handles many functions, although a few are duplicated on the 'Deck simply for convenience).

The top level screen is like this:-

(https://i.postimg.cc/Y02kn8Yf/Stream-Deck-top-level.jpg)

Whilst the two buttons lower right take you to:-

(https://i.postimg.cc/nrdx6718/Stream-Deck-EFIS.jpg)

...and...

(https://i.postimg.cc/tRD9ZQGr/Stream-Deck-EFIS-VIEWS.jpg)

I have made my own icons in all cases, although many are available from Guenseli and elsewhere. The somewhat eclectic choice of options is due to the fact that I run PSX and the scenery generator on the same machine, and so have a selection of vews including PSX+MSFS, MSFS only, and PSX only — and the buttons semi-automate moving between them.

I hope that helps a little,

Cheers,

Brian




 :o  :o  :o
What a beauty !!!
Title: Re: PSX.NET.Streamdeck - V0.0.0.0.0.1
Post by: Swiso on Wed, 10 Apr 2024 10:45
Hi Brian,

I have a question...
Any suggestion as which command I should use to implement these functions in a Streamdeck Plus and use it to set the speed, heading, vertical speed change and altitude, like in these two videos?

https://www.youtube.com/watch?v=DUzdZQFyRio
From min. 1:15 onward: https://www.youtube.com/watch?v=tBhEC4M7NvM

Any suggestion?
Thanks.