Hi again ![Smiler :)]()
I need a little help!
So, I finally got myself a microphone and now will be using the Mic skin I made a few years ago.
Trouble is, I have two skins:
A Volume/VUmetre skin
The Mic skin.
I've got it working, though probably not the best way, where when you plug in the mic, it's a USB lead, the Volume skin detects the Mic Volume and loads the Mic config. Unplug, and the config is deactivated. So far so good. Is there a better way to detect the mic is connected/disconnected?
However, The Volume skin needs updating as it doesn't react to the volume input of the mic until that skin is refreshed.
So I set up this code in the volume app to load and unload, but refreshing the app causes a 'Refresh' loop:So I then checked the manual to see if there was an option to do something similar to OnRefreshAction=[RefreshApp] in the Mic skin. Obviously using that would create another loop. So I wondered if there's a way to have something like OnStart=[RefreshApp] or OnLoad=[RefreshApp].
Any ideas? Thanks.![Thumbs Up :thumbup:]()

I need a little help!


So, I finally got myself a microphone and now will be using the Mic skin I made a few years ago.

Trouble is, I have two skins:
A Volume/VUmetre skin
The Mic skin.
I've got it working, though probably not the best way, where when you plug in the mic, it's a USB lead, the Volume skin detects the Mic Volume and loads the Mic config. Unplug, and the config is deactivated. So far so good. Is there a better way to detect the mic is connected/disconnected?
However, The Volume skin needs updating as it doesn't react to the volume input of the mic until that skin is refreshed.
So I set up this code in the volume app to load and unload, but refreshing the app causes a 'Refresh' loop:
Code:
[DeviceVolume]Measure=PluginPlugin=PowershellRMScriptFile=DeviceVolume.ps1[InputVolume]Measure=PluginPlugin=PowershellRMParent=DeviceVolumeLine=Get-Volume -Type InputIfCondition=InputVolume = 100IfTrueAction=[!ActivateConfig "RM\Mic" "Mic.ini"][!RefreshApp]IfFalseAction=[!DeactivateConfig "RM\Mic" "Mic.ini"]
Any ideas? Thanks.

Statistics: Posted by sl23 — June 12th, 2024, 10:59 pm — Replies 5 — Views 177