2 Commits

Author SHA1 Message Date
108731b4cf add RunMacrobuttons(), CloseMacrobuttons() 2023-08-17 03:19:05 +01:00
e7c648f1d0 fix function names 2023-08-17 03:05:32 +01:00
2 changed files with 7 additions and 3 deletions

View File

@@ -402,6 +402,8 @@ The following commands are available:
The following methods are available:
- Load($filepath): string
- RunMacrobuttons(): Launches the macrobuttons app
- CloseMacrobuttons(): Closes the macrobuttons app
example:
@@ -411,6 +413,8 @@ $vmr.command.show
$vmr.command.lock = $true
$vmr.command.Load("path/to/filename.xml")
$vmr.command.RunMacrobuttons()
```
### Recorder

View File

@@ -53,7 +53,7 @@ function RunVoicemeeter {
function P_Dirty {
$retval = [Voicemeeter.Remote]::VBVMR_IsParametersDirty()
if ($retval -notin @(0, 1)) {
throw [CAPIError]::new($retval, "VBVMR_RunVoicemeeter")
throw [CAPIError]::new($retval, "VBVMR_IsParametersDirty")
}
[bool]$retval
}
@@ -61,7 +61,7 @@ function P_Dirty {
function M_Dirty {
$retval = [Voicemeeter.Remote]::VBVMR_MacroButton_IsDirty()
if ($retval -notin @(0, 1)) {
throw [CAPIError]::new($retval, "VBVMR_RunVoicemeeter")
throw [CAPIError]::new($retval, "VBVMR_MacroButton_IsDirty")
}
[bool]$retval
}
@@ -156,7 +156,7 @@ function MB_Get {
New-Variable -Name ptr -Value 0.0
$retval = [int][Voicemeeter.Remote]::VBVMR_MacroButton_GetStatus($ID, [ref]$ptr, $MODE)
if ($retval -notin @(0)) {
throw [CAPIError]::new($retval, $MyInvocation.MyCommand)
throw [CAPIError]::new($retval, "VBVMR_MacroButton_GetStatus")
}
[int]$ptr
}