It is currently September 16th, 2024, 8:42 pm
[!Refreshapp] when MIC skin loaded?
-
- Posts: 1686
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: [!Refreshapp] when skin loaded?
Do you think it is actually a bug then?
57686174 77696C6C 6265 77696C6C 6265
-
- Rainmeter Sage
- Posts: 8153
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
-
- Posts: 1686
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
-
- Posts: 1686
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: [!Refreshapp] when skin loaded?
I managed to remove the warnings in the log file by disabling the Mic Measures when unplugged and re-enabling when plugged in.
If anyone's interested:
If anyone's interested:
Code: Select all
[Rainmeter]
Update=50
AccurateText=1
DynamicWindowSize=1
OnRefreshAction=[!CommandMeasure mRunMicVol "Run"][!CommandMeasure mRunLineVol "Run"][!CommandMeasure mRunMicMute "Run"][!CommandMeasure mRunLineMute "Run"]
SkinHeight=44
[Metadata]
Name=Input Control
Author=sl23
Information=Adjust Mic and Line In volume.||Credits:||Help via forum: JSMorley, death.crafter, Yincognito.||Thanks to JSMorley for the AudioDeviceList skin. Massive thanks to Yincognito, without whom, this wouldn't have happened!
Version=2024.06.22
License=CC BY 3.0
[Variables]
AquaDark=0,255,255,200
Green=128,255,0,220
Orange=255,170,0
Red=255,100,100
Trans=0,0,0,1
White=255,255,255,200
White20=255,255,255,20
White60=255,255,255,60
Yellow=255,255,0,200
BgFill=0,0,0,150
VolLow=25
VolMax=80
InputStep=5
RMRun=0
MicVol=
LineVol=
; CmdFriendlyIDSyntax=DeviceName\Type\Name\Direction
; CmdFriendlyID=USB Audio\Device\Microphone\Capture
Mic=USB Audio\Device\Microphone\Capture
Line=Realtek(R) Audio\Device\Line In\Capture
MicID={0.0.1.00000000}.{7fb35683-1fea-4fa1-be4a-a3e49b15aeeb}
LineID={0.0.1.00000000}.{0633eb3a-04b7-4232-bc8f-5a95f6d9a8f5}
========================================
; BACKGROUND
========================================
[Bg]
Meter=Shape
Shape=Rectangle 0,0,170,40,5 | FillColor #BgFill# | StrokeWidth 2 | Extend StrokeAlpha
StrokeAlpha=Stroke Color #White60#
UpdateDivider=-1
X=1
Y=1
========================================
; STYLES
========================================
[sAllText]
FontFace=Trebuchet MS
StringStyle=Bold
StringAlign=Center
FontSize=10
FontColor=#White#
AntiAlias=1
DynamicVariables=1
[sHighlight]
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Green#"] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor ""] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
[sBar]
BarOrientation=Horizontal
SolidColor=#White60#
DynamicVariables=1
W=150
H=1
========================================
; GET DEVICE INFO
========================================
[mMicdbLevel]
Measure=Plugin
Plugin=AudioLevel
Port=Input
ID=
RMSAttack=50
RMSDecay=300
RMSGain=10
DynamicVariables=1
[mDeviceID]
Measure=Plugin
Plugin=AudioLevel
Parent=mMicdbLevel
Type=DeviceID
IfMatch="#MicID#"
IfMatchAction=[!ShowMeter MicPercent][!SetOption [mMicdbLevel] ID "#MicID#"][!EnableMeasureGroup MIC][!UpdateMeasureGroup MIC]
IfNotMatchAction=[!HideMeter MicPercent][!SetOption [mMicdbLevel] ID ""][!DisableMeasureGroup MIC][!UpdateMeasureGroup MIC]
[mDeviceStatus]
Measure=Plugin
Plugin=AudioLevel
Parent=mMicdbLevel
Type=DeviceStatus
Substitute="0":"Off","1":"On"
Group=MIC
[mDeviceList]
Measure=Plugin
Plugin=AudioLevel
Parent=mMicdbLevel
Type=DeviceList
Substitute="}: ":"} "
OnChangeAction=[!Refresh]
[mDeviceName]
Measure=Plugin
Plugin=AudioLevel
Parent=mMicdbLevel
Type=DeviceName
Substitute="(Realtek(R) Audio)":"(R)","(USB Audio)":"(USB)","Microphone":"Mic","Line In":"Line"
Group=MIC
[mDeviceFormat]
Measure=Plugin
Plugin=AudioLevel
Parent=mMicdbLevel
Type=Format
Group=MIC
[mDeviceMicRms]
Measure=Plugin
Plugin=AudioLevel
Parent=mMicdbLevel
Type=RMS
Channel=Sum
Group=MIC
[mLinedbLevel]
Measure=Plugin
Plugin=AudioLevel
Port=Input
ID=#LineID#
RMSAttack=50
RMSDecay=300
RMSGain=10
DynamicVariables=1
[mDeviceLineRms]
Measure=Plugin
Plugin=AudioLevel
Parent=mLinedbLevel
Type=RMS
Channel=Sum
[mDeviceNameLine]
Measure=Plugin
Plugin=AudioLevel
Parent=mLinedbLevel
Type=DeviceName
Substitute="(Realtek(R) Audio)":"(R)","(USB Audio)":"(USB)","Microphone":"Mic","Line In":"Line"
========================================
; GET AUDIO IN STATUS
========================================
[mRunMicVol]
Measure=Plugin
Plugin=RunCommand
Program=#@#Mic\svcl.exe
Parameter=/stdout /getpercent "#Mic#"
State=Hide
Timeout=250
OutputType=ANSI
FinishAction=[!SetOption MicVol Formula [mRunMicVol]][!UpdateMeasure MicVol][!UpdateMeter *][!Redraw]
RegExpSubstitute=1
Substitute="(?:\s+|[.]\d+)":""
DynamicVariables=1
Group=MIC
[MicVol]
Measure=Calc
Formula=0
MinValue=0
MaxValue=100
DynamicVariables=1
Group=MIC
[mRunMicMute]
Measure=Plugin
Plugin=RunCommand
Program=#@#Mic\svcl.exe
Parameter=/stdout /getmute "#Mic#"
State=Hide
Timeout=250
OutputType=ANSI
FinishAction=[!SetOption MicMute Formula [mRunMicMute]][!UpdateMeasure MicMute][!UpdateMeter *][!Redraw]
DynamicVariables=1
Group=MIC
[MicMute]
Measure=Calc
Formula=0
IfCondition=(MicMute=1)
IfTrueAction=[!SetOption MicIcon Text "[\xEC54]"][!SetOption MicIcon FontColor "#Red#"][!UpdateMeter *][!Redraw]
IfFalseAction=[!SetOption MicIcon Text "[\xE720]"][!SetOption MicIcon FontColor "#Green#"][!UpdateMeter *][!Redraw]
DynamicVariables=1
Group=MIC
[mRunLineVol]
Measure=Plugin
Plugin=RunCommand
Program=#@#Mic\svcl.exe
Parameter=/stdout /getpercent "#Line#"
State=Hide
Timeout=250
OutputType=ANSI
FinishAction=[!SetOption LineVol Formula [mRunLineVol]][!UpdateMeasure LineVol][!UpdateMeter *][!Redraw]
RegExpSubstitute=1
Substitute="(?:\s+|[.]\d+)":""
DynamicVariables=1
[LineVol]
Measure=Calc
Formula=0
MinValue=0
MaxValue=100
DynamicVariables=1
[mRunLineMute]
Measure=Plugin
Plugin=RunCommand
Program=#@#Mic\svcl.exe
Parameter=/stdout /getmute "#Line#"
State=Hide
Timeout=250
OutputType=ANSI
FinishAction=[!SetOption LineMute Formula [mRunLineMute]][!UpdateMeasure LineMute][!UpdateMeter *][!Redraw]
DynamicVariables=1
[LineMute]
Measure=Calc
Formula=0
Substitute="0":"UnMuted","1":"Muted"
IfCondition=(LineMute=1)
IfTrueAction=[!SetOption LineIcon Text "[\xEC54]"][!SetOption LineIcon FontColor "#Red#"] [!UpdateMeter *][!Redraw]
IfFalseAction=[!SetOption LineIcon Text "[\xE720]"][!SetOption LineIcon FontColor "#Yellow#"] [!UpdateMeter *][!Redraw]
DynamicVariables=1
========================================
; METERS
========================================
[MicIcon]
Meter=String
MeterStyle=sAllText
FontFace=Segoe Fluent Icons
FontSize=11
FontColor=#White60#
Text=[\xE720]
LeftMouseUpAction=[Play "#@#Volume\Copy.wav"][!SetClip "; Windows Default Input Device:#CRLF##CRLF#; Device Name: [mDeviceName]#CRLF#; Device ID: [mDeviceID]#CRLF#; Device Format: [mDeviceFormat]#CRLF#; Device Status: [mDeviceStatus]#CRLF##CRLF#; Device List:#CRLF##CRLF#[mDeviceList]"]
MiddleMouseUpAction=[!Refresh]
ToolTipIcon=Info
ToolTipTitle=[mDeviceName] - [mDeviceStatus]
ToolTipText=L ~ Copy Device List
X=30
Y=5
[MicPercent]
Meter=String
MeterStyle=sAllText | sHighlight
FontColor=#White#
Text=[MicVol]
LeftMouseUpAction=[!SetVariable MicVol 25]["#@#Mic\SoundVolumeView.exe" /SetVolume "#Mic#" 25][!CommandMeasure mRunMicVol "Run"][!Update]
MiddleMouseUpAction=["#@#Mic\SoundVolumeView.exe" /Switch "#Mic#"][!CommandMeasure mRunMicMute "Run"][!Update]
RightMouseUpAction=[!SetVariable MicVol 80]["#@#Mic\SoundVolumeView.exe" /SetVolume "#Mic#" 80][!CommandMeasure mRunMicVol "Run"][!Update]
MouseScrollUpAction=[!SetVariable MicVol (Clamp(#MicVol#+#InputStep#,0,100))]["#@#Mic\SoundVolumeView.exe" /ChangeVolume "#Mic#" 5][!CommandMeasure mRunMicVol "Run"][!Update]
MouseScrollDownAction=[!SetVariable MicVol (Clamp(#MicVol#-#InputStep#,0,100))]["#@#Mic\SoundVolumeView.exe" /ChangeVolume "#Mic#" -5][!CommandMeasure mRunMicVol "Run"][!Update]
X=25r
Y=-2r
[LineIcon]
Meter=String
MeterStyle=sAllText
FontFace=Segoe Fluent Icons
FontSize=11
Text=[\xE720]
LeftMouseUpAction=ms-settings:sound
MiddleMouseUpAction=[control mmsys.cpl]
ToolTipIcon=Info
ToolTipTitle=[mDeviceNameLine] - [mDeviceStatus]
ToolTipText=L ~ Main Sound Settings#CRLF#M ~ CP Sound Settings
X=55r
Y=5
[LinePercent]
Meter=String
MeterStyle=sAllText | sHighlight
FontColor=#White#
Text=[LineVol]
LeftMouseUpAction=["#@#Mic\SoundVolumeView.exe" /SetVolume "#Line#" 25][!CommandMeasure mRunLineVol "Run"][!Update]
MiddleMouseUpAction=["#@#Mic\SoundVolumeView.exe" /Switch "#Line#"][!CommandMeasure mRunLineMute "Run"][!Update][!Refresh]
RightMouseUpAction=["#@#Mic\SoundVolumeView.exe" /SetVolume "#Line#" 80][!CommandMeasure mRunLineVol "Run"][!Update]
MouseScrollUpAction=[!SetVariable LineVol (Clamp(#LineVol#+#InputStep#,0,100))]["#@#Mic\SoundVolumeView.exe" /ChangeVolume "#Line#" 5][!CommandMeasure mRunLineVol "Run"][!Update]
MouseScrollDownAction=[!SetVariable LineVol (Clamp(#LineVol#-#InputStep#,0,100))]["#@#Mic\SoundVolumeView.exe" /ChangeVolume "#Line#" -5][!CommandMeasure mRunLineVol "Run"][!Update]
X=25r
Y=-2r
======================================
[MicBarShape]
Meter=Shape
Shape=Rectangle 0,0,2,4,0 | Fill Color #Green# | StrokeWidth 0
DynamicVariables=1
X=([MicVol:]*[MicBar:W]/100)+9
Y=24
[MicBar]
Meter=Bar
MeasureName=mDeviceMicRms
MeterStyle=sBar
BarColor=#AquaDark#
X=11
Y=5r
[LineBar]
Meter=Bar
MeasureName=mDeviceLineRms
MeterStyle=sBar
BarColor=#Orange#
X=r
Y=2r
[LineBarShape]
Meter=Shape
Shape=Rectangle 0,0,2,4,0 | Fill Color #Yellow# | StrokeWidth 0
DynamicVariables=1
X=([LineVol:]*[LineBar:W]/100)+9
Y=2r
57686174 77696C6C 6265 77696C6C 6265