mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-12-05 05:07:47 +00:00
existing to methods
prelim manual testing passes for potato
This commit is contained in:
parent
77a8792377
commit
b5546aa56c
11
README.md
11
README.md
@ -418,15 +418,14 @@ $vmr.vban.outstream[3].bit = 16
|
|||||||
|
|
||||||
Certain 'special' commands are defined by the API as performing actions rather than setting values.
|
Certain 'special' commands are defined by the API as performing actions rather than setting values.
|
||||||
|
|
||||||
The following commands are available:
|
|
||||||
|
|
||||||
- hide
|
|
||||||
- showvbanchat: bool, (write only)
|
|
||||||
- lock: bool, (write only)
|
|
||||||
|
|
||||||
The following methods are available:
|
The following methods are available:
|
||||||
|
|
||||||
- Show()
|
- Show()
|
||||||
|
- Hide()
|
||||||
|
- Lock()
|
||||||
|
- Unlock()
|
||||||
|
- ShowVBANChat()
|
||||||
|
- HideVBANChat()
|
||||||
- Restart()
|
- Restart()
|
||||||
- Shutdown()
|
- Shutdown()
|
||||||
- Load($filepath): string
|
- Load($filepath): string
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
class Special : IRemote {
|
class Special : IRemote {
|
||||||
Special ([Object]$remote) : base ($remote) {
|
Special ([Object]$remote) : base ($remote) {
|
||||||
AddActionMembers -PARAMS @('restart', 'shutdown', 'show')
|
AddActionMembers -PARAMS @('restart', 'shutdown', 'show', 'lock')
|
||||||
}
|
}
|
||||||
|
|
||||||
[string] identifier () {
|
[string] identifier () {
|
||||||
@ -17,32 +17,21 @@ class Special : IRemote {
|
|||||||
Stop-Process -Name 'VoicemeeterMacroButtons'
|
Stop-Process -Name 'VoicemeeterMacroButtons'
|
||||||
}
|
}
|
||||||
|
|
||||||
hidden $_hide = $($this | Add-Member ScriptProperty 'hide' `
|
[void] Hide () {
|
||||||
{
|
$this.Setter('show', $false)
|
||||||
$this._hide = $this.Setter('show', $false)
|
|
||||||
} `
|
|
||||||
{}
|
|
||||||
)
|
|
||||||
|
|
||||||
hidden $_showvbanchat = $($this | Add-Member ScriptProperty 'showvbanchat' `
|
|
||||||
{
|
|
||||||
$this.Getter('DialogShow.VBANCHAT')
|
|
||||||
} `
|
|
||||||
{
|
|
||||||
param([bool]$arg)
|
|
||||||
$this._showvbanchat = $this.Setter('DialogShow.VBANCHAT', $arg)
|
|
||||||
}
|
}
|
||||||
)
|
|
||||||
|
|
||||||
hidden $_lock = $($this | Add-Member ScriptProperty 'lock' `
|
[void] Unlock () {
|
||||||
{
|
$this.Setter('lock', $false)
|
||||||
$this._lock = $this.Getter('lock')
|
}
|
||||||
} `
|
|
||||||
{
|
[void] ShowVBANChat () {
|
||||||
param([bool]$arg)
|
$this.Setter('DialogShow.VBANCHAT', $true)
|
||||||
$this._lock = $this.Setter('lock', $arg)
|
}
|
||||||
|
|
||||||
|
[void] HideVBANChat () {
|
||||||
|
$this.Setter('DialogShow.VBANCHAT', $false)
|
||||||
}
|
}
|
||||||
)
|
|
||||||
|
|
||||||
[void] Load ([string]$filename) {
|
[void] Load ([string]$filename) {
|
||||||
$this.Setter('load', $filename)
|
$this.Setter('load', $filename)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user