VVEIRD / StreamDeckCore

Java implementation for the Elgato Stream Deck
MIT License
30 stars 14 forks source link

Can I activate a Stream Deck key from within Java - Does this integration exist ? #6

Closed Jason-Adams closed 3 years ago

Jason-Adams commented 3 years ago

I am writing a Java based Twitch Bot. I would like the Bot based on some viewer interaction - integrate with OBS and roll20... I have a stream deck which seems like the perfect middleware for such interaction. So my question that i cant seem to establish, is that from java code, can i have java actuate integration that causes a stream deck key depression?

VVEIRD commented 3 years ago

Its a bit late, but if you haven't found it by yourself: You can use StreamDeckController.pushButton:

    /**
     * Manually Pushing a button at the given id.
     * 
     * @param no Number of the button to be pushed, 0 - 14, right top to left
     *           bottom.
     */
    controller.pushButton(0);
       // Or with StreamDeck its the same procedure:
    streamDeck.pushButton(0);