AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)

Post your working scripts, libraries and tools
bar3nd
Posts: 3
Joined: 18 Nov 2019, 08:24

Re: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)

Post by bar3nd » 21 Nov 2019, 03:25

Cool. That works, but I immediately run into the next challenge:

1) the image I'm loading into the button is much bigger than the 72x72 pixels, for reasons I can't really control. But I'd like the image to be scaled to the button size in the same way that loading an image into the button in the Streamdeck app works. Is that doable within this tool? I'm trying to avoid runninga global script that keeps resizing and replacing the thumbnail image that Streamdeck makes for itself...

2) I'm using two Streamdeck devices, I see how the buttons of Streamdeck 1 are 1 - 15. But how to load the image into a button on the second device? I tried '16' but it didn't work.

Thanks for any help.

User avatar
evilC
Posts: 4787
Joined: 27 Feb 2014, 12:30

Re: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)

Post by evilC » 22 Nov 2019, 10:37

1) I don't think there is any way in AHSD to auto-size an image
Does it change? If not, then just manually resize it using a paint app or something and use that
2) At the start of each example script is a line that calls AHSD.Instance.GetDeck() which is passed the number of the deck to connect to. This gives you a deck object with which you can interact with that streamdeck. One deck object controls one streamdeck

bar3nd
Posts: 3
Joined: 18 Nov 2019, 08:24

Re: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)

Post by bar3nd » 22 Nov 2019, 12:50

Thanks,

Yes the image changes a lot. Here's my scenario: I use a video colourcorrection tool in which I can store specific presets to one of 10 gallery slots for quick recall. The software stores an example still as a .jpg in a specific folder, which it overwrites when I save a new preset to the memory slot.

If I load that image into a button through the Streamdeck app I get a nice thumbnail. But there's no way to reload that image after I store a new version, other than through the GUI. I could do some kind of watch folder script that automatically resizes and saves the image to the specific location where the Streamdeck software stores its thumbnails, but I was trying to avoid that, but it looks like it may be the best solution after all.

Barend


PublicBenemy
Posts: 6
Joined: 20 Jun 2020, 16:13
GitHub: PublicBenemy

Animated GIF support

Post by PublicBenemy » 24 Aug 2020, 11:51

Hi there, thank you very much for this amazing tool!

The Elgato Stream Deck configuration software supports animated GIF images for the key icons
https://help.elgato.com/hc/en-us/articles/360028237271-Elgato-Stream-Deck-Customizing-Key-Icons [Mod edit: Link fixed.]

When I try to do so with the Wrapper

Code: Select all

canvas.AddImage("On", AHSD.Instance.CreateImageFromFileName(A_ScriptDir "\elgato_fx_gooey_001.gif"))
it loads only a frame of the GIF into the key.

I fear that's because the underlying StreamDeckSharp maybe doesn't support it?
Unfortunately, I cannot check that.

User avatar
evilC
Posts: 4787
Joined: 27 Feb 2014, 12:30

Re: AutoHotStreamDeck - AHK wrapper for Elgato Stream Deck (Keys with screens in them!)

Post by evilC » 25 Aug 2020, 09:28

My library uses StreamDeckSharp as the underlying library that communicates with the SD, so I doubt it is something I can add support for myself.
Maybe ask on their page if it supports GIFs for button images, or if it is a planned feature? Looks like he is still updating it...
https://github.com/OpenMacroBoard/StreamDeckSharp

Post Reply

Return to “Scripts and Functions”