Skip to content

Have stream deck return to 1st page of profile after a given period of time #153

Closed Answered by DhSufi
roveer24 asked this question in Help
Discussion options

You must be logged in to vote

Changing pages is only possible if the profile is distributed with your plugin. You can learn how to build a profile for your pllugin here: https://docs.elgato.com/streamdeck/sdk/guides/profiles

Once you are in your own profile. you can change to pages using the switchToProfile(device, profileName, Page) function.
Also note if you do not pass a profile name, then it siwtches automatically to the previous profile.

Finally to set a period of time you can use setTimeout(). However be careful with it, as long as you need to handle the cancelation of the timeout when necessary, otherwise it will run the callback.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChekTek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants