mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-01-18 13:20:47 +00:00
add pipe example in readme
This commit is contained in:
parent
21e8b16cec
commit
caee87cf98
@ -81,10 +81,10 @@ Voicemeeter factory function can be:
|
|||||||
|
|
||||||
#### `Through the Shell`
|
#### `Through the Shell`
|
||||||
|
|
||||||
One liners should be run through a subshell
|
One liners should be run through a subshell, you may pipe the Remote object to a script block, for example:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
powershell { $vmr = Get-RemoteBanana; $vmr.strip[0].mute=$true; $vmr.Logout() }
|
powershell { Get-RemoteBanana | % { $_.strip[0].mute=$true; $_.Logout() } }
|
||||||
```
|
```
|
||||||
|
|
||||||
You may also save the object returned by a factory function to a local variable, then invoke any commands through the shell, for example:
|
You may also save the object returned by a factory function to a local variable, then invoke any commands through the shell, for example:
|
||||||
|
Loading…
Reference in New Issue
Block a user