七世纪win7技术

您当前的位置:Home > win7资讯 >

Rainmeter一部分语法中文教程(精)rainmeter官网


Rainmeter一部门语法中文教程2010-04-28 11:39;Meter基本元素举出例子:;要是是[MeterStyle]暗示Meter的大众Style,类似CSS的意义!;颜色可以施用网页的颜色界说体式格局,如半透明黄色:255.255.0.128=FFFF0080[MeterTEST]X=0 Y=0 W=100 H=20;设为1为隐蔽,0(默认值)Hidden=0;如只消绘制静态图形或静态文字的话可以不写MeasureName=MeasureStyle FontColor=#FontColor#FontFace=#FontFace#FontSize=#FontSize#;字体暗影StringEffect=SHADOW;字身子骨儿局StringStyle=BOLD;字体对于齐体式格局StringAlign=LEFT;开启抗锯齿0=封闭(默认值);1=开启;AntiAlias=1;左键按下即执行,此时克制拖动LeftMouseDownAction=!Execute[taskmgr.exe];右键按下即执行,此时克制上下文菜谱RightMouseDownAction=!Execute[taskmgr.exe];中键按下即执行MiddleMouseDownAction=!Execute[taskmgr.exe];左键按下恢复后执行,此时克制拖动LeftMouseUpAction=!Execute[taskmgr.exe];右键按下恢复后执行,此时克制上下文菜谱RightMouseUpAction=!Execute[taskmgr.exe];中键按下恢复后执行MiddleMouseUpAction=!Execute[taskmgr.exe];鼠标停靠后执行MouseOverAction=!Execute[taskmgr.exe];鼠标离开后执行MouseLeaveAction=!Execute[taskmgr.exe];当配备布置为1(默认值),在领有鼠标操作的元素或按键元素大将转变光标指针,可以不写MouseActionCursor=1;暗示该Meter的按F5频率,为全局按F5频率的倍数;要是[Rainmeter]里面的Update=1000,则以下代码暗示30*1000=30秒UpdateDivider=30;背景颜色,要是没有配备布置,背景是纯粹透明的。SolidColor=#SolidColor#;背景逐渐变化颜色SolidColor2=#SolidColor2#;背景颜色逐渐变化的角度,界说的角度弧度,0(默认值)GradientAngle=0;预示背景倒角;0=没有(默认值);1=提高;2=深深沉浸;BevelType=0;官网另有一项是矩阵,未研究透,以是不写了[MeasureMemory]Measure=PhysicalMemory;BAR举出例子:[MeterBAR]MeasureName=MeasureMemory Meter=BAR X=10 Y=10 W=100 H=20 BarColor=0,0,0,200;BarImage可以用来取代BarColor BarImage=#SKINSPATH#Images\Bar.png;背景颜色,要是没有配备布置,背景是纯粹透明的。SolidColor=255,255,255,200;预示体式格局VERTICAL(铅直)HORIZONTAL(水平)BarOrientation=HORIZONTAL;是否反转长方条的标的目的,应该是反转180度,0=否(默认值),1=是Flip=1;Bitmap举出例子:[MeasureDate]Measure=Time Format=%d[MeterDate]MeasureName=MeasureDate Meter=BITMAP X=50 Y=0 BitmapImage=number.png BitmapFrames=10;The number of transition frames per value.The transition frames are frames whelloch are displayed when the meter''s value changes.The same number of transition frames must be used after each regular frame.The TransitionUpdate setting in the[Rainmeter]section determines the rate at whelloch the frames are displayed during the transition.The total duration of the transition animation is therefore TransitionUpdate*BitmapTransitionFrames.Note that BitmapFrames will always define the total number of frames in the bitmap,including the transition frames.So,for example,if the bitmap has 10 values and each transition consists of 4additional frames,then BitmapFrames should be set to 50 and BitmapTransitionFrames to 4.BitmapTransitionFrames=10;If set to 1,the first frame is used only when the measured value is zero.Otherwise the frames are linearly determined by the measured value.BitmapZeroFrame=1;If set to 1the bitmap is extended so display the whole value.For example if you define abitmap that defines frames from 0to 9you can use thellos to display the measured value as the bitmap numbers.BitmapExtend=1;Number of digits that are drawn.The first frame is used if the value doesn''t have as many digits as thellos defines.Works only when BitmapExtend is set to 1.BitmapDigits=2 BitmapAlign=CENTER;Separation between digits when BitmapDigits is hellogher than one.Thellos can also be anegative number.BitmapSeparation=0;BUTTON按键举出例子:[MeterNote];按键不克不及绑定任何的measure,即不克不及有MeasureName=?。Meter=BUTTON X=0 Y=0 ButtonImage=Button.png ButtonCommand=!Execute[notepad.exe];Histogram直方图举出例子:[MeasureCPU]Measure=CPU丈量=措置惩罚器[MeterCPU]MeasureName=MeasureCPU;第2个数值名称,只有这个存在才可以施用Secondary?SecondaryMeasureName=?Meter=HISTOGRAM X=0 Y=0 W=100 H=20 PrimaryColor=#Color#SecondaryColor=#Color1#BothColor=#Color#SolidColor=#Color2#PrimaryImage=Histogram.png SecondaryImage=Histogram.png BothImage=Histogram.png;预示体式格局VERTICAL(铅直)HORIZONTAL(水平)BarOrientation=HORIZONTAL;要是配备布置为1,直方图自动缩放以预示所有值。Autoscale=1;抗锯齿AntiAlias=1;配备布置为1,反转图象Flip=0;Image图象:[MeasureQuote]Measure=Plugin Plugin=Plugins\QuotePlugin.dll PathName="#PROGRAMPATH#Skins\Tranquil\"FileFilter=*.png[MeterImage]Meter=IMAGE MeasureName=MeasureQuote X=0 Y=0 W=150 H=150;图片的名称预示ImageName=Pictures;图片的路径Path=E:\Pictures\;要是配备布置为1,图象连结宽高比缩放;配备布置为0,图象不连结宽高比缩放。PreserveAspectRatio=1;跳动线图:[MeasureNetIn]Measure=NetIn[MeasureNetOut]Measure=NetOut[MeterNetwork]Meter=LINE MeasureName=MeasureNetOut MeasureName2=MeasureNetIn X=0 Y=0 W=100 H=20;线条数LineCount=2 LineColor=#Color#LineColor2=#Color2#;配备布置为1的平行线条绘制在直方图后面。HorizontalLines=0;直方图颜色HorizontalLineColor=#Color#;实心颜色,未配备布置为透明SolidColor=#SolidColor#;线条1乘以1000 Scale=1000;线条2乘以1000 Scale2=1000;线条像素宽度LineWidth=1;自动缩放AutoScale=1 AntiAlias=1 Flip=1;旋转图形[MeasureTime]Measure=Time[MeterHours]MeasureName=MeasureTime Meter=ROTATOR X=0 Y=0 W=30 H=30;旋转图象名称ImageName=Hours.png;开始的旋转角度,默认顺时针旋转。StartAngle=6.2832;旋转角度的大小,施用负值逆时针旋转。RotationAngle=6.2832;现实旋转一周用的时间,秒。ValueReminder=43200;X轴旋转中间偏移OffsetX=14.5;Y轴旋转中间偏移OffsetY=14.5[MeterMinutes]MeasureName=MeasureTime Meter=ROTATOR X=0 Y=0 W=30 H=30 ImageName=Minutes.png StartAngle=6.2832 RotationAngle=6.2832 ValueReminder=3600 OffsetX=14.5 OffsetY=14.5;ROUNDLINE旋转线条:[MeasureDisk]Measure=FreeDiskSpace Drive=C:InvertMeasure=1[MeterDisk]Meter=ROUNDLINE MeasureName=MeasureDisk X=0 Y=0 W=50 H=50;线条像素宽度LineWidth=5;线条开始旋转的角度,默认是顺时针旋转StartAngle=4.712;线条旋转角度的大小RotationAngle=6.283;现实旋转一周用的时间,秒。ValueRemainder=60;从旋转中间开始的线条长度LineLength=25 LineColor=0,0,0,200;配备布置为1,预示为饼图Solid=1 AntiAlias=1;省略了几个元素;字符串:[MeasureDate]Measure=Time[MeterDate]MeasureName=MeasureDate Meter=STRING X=0 Y=0 FontColor=0,0,0,255 FontFace="Trebuchet MS"FontSize=20;字符串的对于齐体式格局:LEFT,CENTER and RIGHT StringAlign=CENTER;气焰气魄化字符串:NORMAL,BOLD,ITALIC and BOLDITALIC StringStyle=BOLD;字符串的暗影:NONE,SHADOW and BORDER.有用值为:无,暗影以及界限。StringEffect=BORDER;字符串的暗影颜色FontEffectColor=255,255,255,255 AntiAlias=1 AutoScale=1 Text="%1";在预示的值施用小数号头。NumOfDecimals=1;要是配备布置为1,值预示为1个百分点。Percentual=0;前缀Prefix="";后缀Postfix="";缩放的丈量值Scale=1000;要是配备布置为1,在配备布置了宽厚温以及高的环境下字符串凌驾部门自动省略并加之…ClipString=1;界说文本角度Angle=0


相关资讯
最近更新
  • 链接平台