mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-18 05:23:32 +00:00
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.
This commit is contained in:
19
example.ps1
19
example.ps1
@@ -3,24 +3,19 @@
|
||||
try {
|
||||
$vmr = [Remote]::new('potato')
|
||||
|
||||
$vmr.Login()
|
||||
|
||||
$vmr.button[0].state = 1
|
||||
$vmr.button[0].state = $true
|
||||
$vmr.button[0].state
|
||||
$vmr.button[0].state = 0
|
||||
$vmr.button[0].state = $false
|
||||
$vmr.button[0].state
|
||||
|
||||
$vmr.strip[0].mono = 1
|
||||
$vmr.strip[0].mono = $true
|
||||
$vmr.strip[0].mono
|
||||
$vmr.strip[0].mono = 0
|
||||
$vmr.strip[0].mono = $false
|
||||
$vmr.strip[0].mono
|
||||
|
||||
$vmr.bus[2].mute = 1
|
||||
$vmr.bus[2].mute = $true
|
||||
$vmr.bus[2].mute
|
||||
$vmr.bus[2].mute = 0
|
||||
$vmr.bus[2].mute = $false
|
||||
$vmr.bus[2].mute
|
||||
}
|
||||
finally
|
||||
{
|
||||
$vmr.Logout()
|
||||
}
|
||||
finally { $vmr.Logout() }
|
||||
|
||||
Reference in New Issue
Block a user