Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1056

Help: Rainmeter Skins • Re: Help

$
0
0
Hello guys I hope you're ok, after 3 days of studying the code of how the volume works, I had to turn to another skin that I got out there and modify it, there were really many things missing and that’s why the volume didn’t come out, now, from what I could understand and modify, this is what I got:

Code:

[Rainmeter]Update=35BackgroundMode=2SolidColor=0,0,0,1[mPlayer]Measure=PluginPlugin=NowPlaying.dllPlayerName=WMPPlayerType=VolumeIfCondition=mPlayer = -1IfTrueAction=[!SetOption MeterSlider X "(([mPlayer:] * (117 - 5) / 100) + 12)"][!SetOption MeterSlideBack LeftMouseDownAction """[!CommandMeasure mPlayer ToggleMute][!ShowMeter "MeterPercent"][!CommandMeasure MeasureMouse "Start"][!SetOption mPlayer IfCondition ""][!UpdateMeter *]"""][!UpdateMeter *][!Redraw][!SetOption MeterSlider LeftMouseDownAction """[!CommandMeasure mPlayer ToggleMute][!CommandMeasure MeasureMouse "Start"][!ShowMeter MeterPercent][!SetOption mPlayer IfCondition ""][!UpdateMeter *]"""]IfFalseAction=[!SetOption MeterSlider X "(([mPlayer:] * (117 - 5) / 100) + 5)"][!SetOption MeterSlideBack LeftMouseDownAction """[!ShowMeter "MeterPercent"][!CommandMeasure MeasureMouse "Start"][!SetOption mPlayer IfCondition ""][!UpdateMeter *]"""][!UpdateMeter *][!Redraw][!SetOption MeterSlider LeftMouseDownAction """[!CommandMeasure MeasureMouse "Start"][!ShowMeter MeterPercent][!Redraw]"""]; IfCondition2=(mPlayer = 0); IfTrueAction2=[!SetOption MeterMuteIcon ImageName "volume_0.png"]; IfCondition3=(mPlayer > 0) && (mPlayer <= 34); IfTrueAction3=[!SetOption MeterMuteIcon ImageName "volume_1.png"]; IfCondition4=(mPlayer > 34) && (mPlayer <= 67); IfTrueAction4=[!SetOption MeterMuteIcon ImageName "volume_2.png"]; IfCondition5=(mPlayer > 67); IfTrueAction5=[!SetOption MeterMuteIcon ImageName "volume_3.png"]IfConditionMode=1; MeasureMouse is the meat and potatoes of creating a slider. MeasurePercent is used to turn the position into a percentage for use various places.[MeasureMouse]Measure=PluginPlugin=MouseLeftMouseDragAction=[!SetOption MeterSlider X "(Clamp(($MouseX$-15),5,117))"][!SetOption MeterSlider Shape "Rectangle 16,0,6,10 | Fill Color 205,205,205,255 | Stroke Color 255,0,0,255"][!SetOption mPlayer IfCondition ""][!ShowMeter MeterPercent][!UpdateMeter "MeterPercent"][!UpdateMeasure MeasurePercent][!UpdateMeter *][!Redraw]LeftMouseUpAction=[!CommandMeasure MeasureMouse "Stop"][!SetOption mPlayer IfCondition "mPlayer = -1"][!SetOption MeterSlider Shape "Rectangle 16,0,6,10 | Fill Color 247,247,247,255 | StrokeWidth 0"][!UpdateMeter *][!Redraw][!UpdateMeasure MeasurePercent][!HideMeter MeterPercent][!UpdateMeasure mPlayer]RelativeToSkin=1RequireDragging=1DynamicVariables=1[MeasurePercent]Measure=CalcFormula=[MeterSlider:X]MinValue=5MaxValue=117DynamicVariables=1IfCondition=mPlayer > -1IfTrueAction=[!CommandMeasure "mPlayer" "SetVolume [MeasurePercent:%,0]"]IfConditionMode=1[MeterSlideBack]Meter=ShapeShape=Rectangle 0,0,120,10 | Fill Color 0,0,0,1 | StrokeWidth 2 | Stroke Color 255,0,0,255X=20Y=20LeftMouseDownAction=[!ShowMeter "MeterPercent"][!CommandMeasure MeasureMouse "Start"][!SetOption mPlayer IfCondition ""][!UpdateMeter *]LeftMouseUpAction=[!SetOption mPlayer IfCondition "mPlayer = -1"][MeterSlideBar]Meter=ShapeX=20Y=20Shape=Rectangle 1,1,[MeterSlider:X],8,0 | Fill Color 150,0,0,180 | StrokeWidth 0DynamicVariables=-1[MeterSlider]Meter=ShapeY=20Shape=Rectangle 16,0,6,10 | Fill Color 247,247,247,255 | Stroke Color 255,0,0,255LeftMouseDownAction=[!ShowMeter MeterPercent][!CommandMeasure MeasureMouse "Start"][!UpdateMeter "MeterPercent"]MouseOverAction=[!SetOption MeterSlider Shape "Rectangle 16,0,6,10 | Fill Color 205,205,205,255 | Stroke Color 255,0,0,255"][!ShowMeter MeterPercent][!UpdateMeter "MeterPercent"][!UpdateMeter "MeterSlider"][!Redraw][!SetOption MeasureMouse LeftMouseUpAction """[!CommandMeasure MeasureMouse "Stop"][!SetOption mPlayer IfCondition "mPlayer = -1"][!UpdateMeter *][!Redraw][!UpdateMeasure MeasurePercent][!UpdateMeasure mPlayer]"""]MouseLeaveAction=[!SetOption MeterSlider Shape "Rectangle 16,0,6,10 | Fill Color 247,247,247,255 | Stroke Color 255,0,0,255"][!HideMeter MeterPercent][!UpdateMeter "MeterPercent"][!UpdateMeter "MeterSlider"][!Redraw][!SetOption MeasureMouse LeftMouseUpAction """[!CommandMeasure MeasureMouse "Stop"][!SetOption mPlayer IfCondition "mPlayer = -1"][!SetOption MeterSlider Shape "Rectangle 16,0,6,10 | Fill Color 247,247,247,255 | Stroke Color 255,0,0,255"][!UpdateMeter *][!Redraw][!UpdateMeasure MeasurePercent][!HideMeter MeterPercent][!UpdateMeasure mPlayer]"""]DynamicVariables=1[MeterPercent]Meter=StringX=([MeterSlider:X]+14)Y=45FontFace=BitDust TwoFontSize=12FontColor=255,255,255,255Percentual=1NumOfDecimals=0StringAlign=CenterCenterDynamicVariables=1Text=[MeasurePercent:%,0]InlineSetting=CharacterSpacing | 0 | -0.25MouseActionCursor=0Hidden=1
Darkling.gif
Although I could partially dispel how the code works, I notice that it has erratic behavior at times, I’ve made several modifications to see if it gets better but I couldn’t, one of the things I’d like to correct is that when I refresh the skin, almost always lowers the volume to zero, also happens when I load the skin the first time, if there is someone who can better understand this behavior, please give me a hand, as always thanks in advance and sorry for the inconvenience.

Statistics: Posted by Japmc7 — Today, 12:41 am



Viewing all articles
Browse latest Browse all 1056

Trending Articles