CodeCode wrote: ↑December 9th, 2023, 12:34 am
Hello,
I am working on a skin that is entirely for the purpose of determining if vlc is the active window.
Is there a way I could prevent other active titles from showing. That is what happens when vlc is running. The upside is if vlc is not running the VLC INACTIVE output works and nothing else.
Is there a way for Usage Monitor to do this? I tried a couple options - syntax and what to use. The catch might be that I don't know if Alias is mandatory, or what to put there if it is mandatory.
Is there a way I could prevent other active titles from showing. That is what happens when vlc is running. The upside is if vlc is not running the VLC INACTIVE output works and nothing else.
Is there a way for Usage Monitor to do this? I tried a couple options - syntax and what to use. The catch might be that I don't know if Alias is mandatory, or what to put there if it is mandatory.
You can disable the [MeasureActiveTitle] measure if vlc is not active. This will cause the value to "pause" on the last active title, so you may need to use your alternate method of setting the value of the 'Text' in the meters instead of having the MeasureName control the text.
eclectic-tech wrote: ↑December 9th, 2023, 2:56 am
You can disable the [MeasureActiveTitle] measure if vlc is not active. This will cause the value to "pause" on the last active title, so you may need to use your alternate method of setting the value of the 'Text' in the meters instead of having the MeasureName control the text.
[MeasureOnlyVlc]
Measure=Plugin
Plugin=UsageMonitor
Alias=CPU
Name=vlc
WhiteList=vlc
Index=1
IfCondition=MeasureOnlyVlc > 0
IfTrueAction=[!ShowMeterGroup MovieTitle][!SetOption CentreText Text [&MeasureActiveTitle]][!SetOption CentreTextVisible Text [&MeasureActiveTitle]][!Update]
IfFalseAction=[!SetOption CentreText Text ""][!SetOption CentreTextVisible Text ""][!HideMeterGroup MovieTitle][!Update]
It seems to work great, but the Meter group does not seems to want to stay on, so the group disappears and appears randomly? not sure as the read might be counting in bursts to provide a smooth playback - so the value goes to 0 then up, to 0 rinse repeat.
This might seem a nitpick, but don't intend it to be. But Process is not anymore a plugin, meantime it has been converted to an internal measure. It should be used accordingly, by replacing the Measure=PlugIn and PlugIn=Process options by Measure=Process.