voicemeeter-api-powershell/example.ps1
Onyx and Iris 8a3b8da635 auto login added, tests updated to take $true, $false
Added $this.Login() into Remote constructor to automatically log user in.

Updated test codes accordingly.

Boolean params take $true and $false

Updated readme to reflect changes.
2021-04-29 00:48:16 +01:00

22 lines
436 B
PowerShell

. $PSScriptRoot\lib\voicemeeter.ps1
try {
$vmr = [Remote]::new('potato')
$vmr.button[0].state = $true
$vmr.button[0].state
$vmr.button[0].state = $false
$vmr.button[0].state
$vmr.strip[0].mono = $true
$vmr.strip[0].mono
$vmr.strip[0].mono = $false
$vmr.strip[0].mono
$vmr.bus[2].mute = $true
$vmr.bus[2].mute
$vmr.bus[2].mute = $false
$vmr.bus[2].mute
}
finally { $vmr.Logout() }