Types/StreamDeck.Profile/get_NextPage.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
foreach ($act in $this.Actions.psobject.properties) { if ($act.value.uuid -in 'com.elgato.streamdeck.page.next') { if ($this.Path) { $this.Path | ForEach-Object { if ($this.IsChild) { $_ | Split-Path | Split-Path } else { $_ | Split-Path | Join-Path -ChildPath Profiles } } | Join-Path -ChildPath "$($act.value.settings.profileUUID).sdProfile" | Get-StreamDeckProfile -ProfileRoot { $_ } } } } |