mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-01-18 13:20:47 +00:00
update to examples
moved examples into examples/ directory. Added two simple examples showing set and get float parameters and set multiple parameters.
This commit is contained in:
parent
94be34b3da
commit
14eb019202
28
examples/set_multi.ps1
Normal file
28
examples/set_multi.ps1
Normal file
@ -0,0 +1,28 @@
|
||||
Import-Module Voicemeeter
|
||||
|
||||
try {
|
||||
$vmr = Get-RemotePotato
|
||||
|
||||
$hash = @{
|
||||
"Strip[0].Mute" = $true
|
||||
"Strip[1].Mute" = $true
|
||||
"Strip[2].Mute" = $false
|
||||
"Strip[0].Mono" = $true
|
||||
"Strip[1].Mono" = $false
|
||||
"Strip[2].Mono" = $true
|
||||
}
|
||||
|
||||
$vmr.Set_Multi($hash)
|
||||
|
||||
$hash = @{
|
||||
"Strip[0].Mute" = $false
|
||||
"Strip[1].Mute" = $false
|
||||
"Strip[2].Mute" = $false
|
||||
"Strip[0].Mono" = $true
|
||||
"Strip[1].Mono" = $true
|
||||
"Strip[2].Mono" = $false
|
||||
}
|
||||
|
||||
$vmr.Set_Multi($hash)
|
||||
}
|
||||
finally { $vmr.Logout() }
|
@ -1,7 +1,7 @@
|
||||
. $PSScriptRoot\lib\voicemeeter.ps1
|
||||
Import-Module Voicemeeter
|
||||
|
||||
try {
|
||||
$vmr = [Remote]::new('potato')
|
||||
$vmr = Get-RemoteBanana
|
||||
|
||||
$vmr.button[0].state = $true
|
||||
$vmr.button[0].state
|
Loading…
Reference in New Issue
Block a user