mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-12-21 12:17:47 +00:00
if not in interactive, check a script was passed
This commit is contained in:
parent
eb3af982da
commit
be58d6a9e5
@ -54,6 +54,10 @@ function main {
|
|||||||
read-hostuntilempty -vmr $vmr
|
read-hostuntilempty -vmr $vmr
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if ($script.Count -eq 0) {
|
||||||
|
'No script provided, exiting' | Write-Host
|
||||||
|
return
|
||||||
|
}
|
||||||
$script | ForEach-Object {
|
$script | ForEach-Object {
|
||||||
msgHandler -vmr $vmr -line $_
|
msgHandler -vmr $vmr -line $_
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,11 +15,13 @@ You may pass the following optional flags:
|
|||||||
|
|
||||||
for example:
|
for example:
|
||||||
|
|
||||||
`powershell.exe .\CLI.ps1 -o -k "banana" -s "strip[0].mute", "!strip[0].mute", "strip[0].mute", "bus[2].eq.on=1", "command.lock=1"`
|
```powershell
|
||||||
|
.\CLI.ps1 -o -k "banana" -s "strip[0].mute", "!strip[0].mute", "strip[0].mute", "bus[2].eq.on=1", "command.lock=1"
|
||||||
|
```
|
||||||
|
|
||||||
Expected output:
|
Expected output:
|
||||||
|
|
||||||
```
|
```powershell
|
||||||
Getting strip[0].mute
|
Getting strip[0].mute
|
||||||
strip[0].mute = 0
|
strip[0].mute = 0
|
||||||
Toggling strip[0].mute
|
Toggling strip[0].mute
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user