close

文章都很長,所以會分開貼

(RM就是Rainmeter的簡稱)

 

以下是特定的設置:

 

NetIn

NetInSpeed

最快下載速度。該值以bit/秒為單位。如果該值不設或者設置為0,最大值由網絡流量決定。

 

TrafficAction

當一定下載流量達成之後執行的行動(貌似用來監測下載流量的?科院同志大概喜歡,譯者)

TrafficValue

TrafficAction中的值

 

Interface

測量的NIC索引。設0(默認)所有的網卡加在一起,設1表示第一塊NIC,2 第二塊。

 

Cumulative

如果設1,測量綜合累計值(比如,把測量值加總)。這個可以被用來測量一段時間的總數據量。

 

NetOut

NetOutSpeed

最大上傳速度。如果該值不設或者設置為0,最大值由網絡流量決定。

 

NetTotal

NetTotalSpeed

 

FreeDiskSpace

Drive

被測量的驅動器(比如C:\)

 

Total

設置為1時返回該驅動器總大小

 

Label

設1時返回捲標

 

InvertMeasure

設1時返回使用空間而非空餘空間。該命令用途廣泛。

 

IgnoreMeasure

默認1,忽略移動磁盤。設0時,包括移動磁盤。

 

Plugin

Plugin

Plugin 的路徑相對於RM.exe所在的程序文件夾。(比如Plugin=Pluigins\WebParser.dll)

 

注:每個插件依次有各自的設置必須放在這個部分。

 

Registry

RegHKey

HKey名。可能值包括:

HKEY_CURRENT_CONFIG

HKEY_CURRENT_USER

HKEY_LOCAL_MACHINE

HKEY_CLASSES_ROOT

HKEY_PERFORMANCE_DATA

HKEY_DYN_DATA

 

RegKey

註冊表項值得名字。僅支持字符和長值。

 

Time

Format

時間顯示格式。(Format="%H:%M:%S")格式碼如下:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_strftime.2c_ .wcsftime.asp

 

你也可以使用"本地時間"和"本地日期"來應用當前使用的Windows的格式

TimeZone

時區值(eg: TimeZone=+2.0)你可以用小數。如果不設會採用本地時間。

DaylightSavingTime

設1時,應用夏時制(由本地時間為基礎)。只有當TimeZone設置後才可以使用。

Calc

Formula

這個來定義計算公式。可以使用其它測量的名字來作為變量。Counter是一個特殊的變量,每次更新時增加。變量只有在其它測量更新後才會更新,因此值總在一個週期之後。

注:所有表述區分大小寫,函數必須全部大寫(eg:SIN(10 * PI))

Operators:

 

+ (addition)

- (substraction)

* (multiplication)

/ (division)

** (冪,乘方)

% (remainder or modulus)

& (bitwise and)

| (bitwise or)

^ (bitwise xor)

~ (bitwise not)

Logical operators:

 

<> (not equal)

= (equal to)

> (greater than)

< (less than)

&& (logical and)

|| (logical or)

Functions:

 

ATAN(x), ASIN(x), ACOS(x), COS(x), SIN(x), TAN(x) - Standard trigonometric functions

ABS(x) - Absolute value of x.

EXP(x) - Returns ex.

LN(x) - Natural logarithm of x.

SQRT(x) - Square root of x.

SGN(x) - Return 1 if x is positive, -1 if x is negative.

FRAC(x) - Fractional, or decimal, part (eg: FRAC(1.234) = 0.234).

TRUNC(x) - Integer par (eg:TRUNC(1.234) = 1).

FLOOR(x) - Floor of x.

CEIL(x) - Ceiling of x.

ROUND(x[,precision]) - Rounds x to an integer, or to a specified number of decimal places.

 

(作為一個文科生我都看懂以上了,就不翻譯了)

 

Conditional operator:

條件

<condition> ? <expr. if true.> : <expr. if false.> 用來判斷條件真假。若真,表述(:)左邊的被採用。若假右邊。同意的表述在下:

 

if (condition)

then

expr. if true

else

expr. if false

end if

 

Random Fuction

返回一個隨機數,該數在"LowBound"和"HighBound"之間

 

栗子:

 

[MeasureCalc]

Measure=Calc

Formula=(Random)

LowBound=5

HighBound=100

UpdateRandom=1

 

UpdateRandom=1 (New random number each Update cycle)

UpdateRandom=0 (New random number on refresh)

 

Meters

Meters 是用來告訴RM 信息如何呈現的部分。每個meter必須有自己的名字,在[]中。不能有空格,在同一ini文件中不能使用。

 

一般設置:

A note on color codes:

 

FontColor

FontEffectColor

SolidColor

PrimaryColor

SecondaryColor

BothColor

BarColor

LineColor

HorizontalLineColor

 

RM採用RGBA顏色代碼,表示紅,綠,藍,Alpha, 逗號隔開

 

RED, GREEN, BLUE, ALPHA

 

每個部分值從0到255

紅控制紅色濃度,255滿。綠藍也是。Alpha控制透明度(!譯者激動的心情,終於學到了)0全透255全不透

 

栗子:

 

FontColor=255,255,255,255

 

 

Solid opaque red = 255,0,0,255

Solid opaque blue = 0,0,255,255

Solid opaque grey = 128,128,128,255

Half-transparent green = 0,255,0,128

 

在RM1.1版本中一個替代顏色格式被添加其中,很多網頁設計者很熟悉。

Half-transparent red = FF000088

這種16進制顏色碼與html RGB 十六進制碼類似,除了2個控制透明色的十六進制數加了進去。

 

The first two hexadecimal digits are the RED component, from 0 to 255 in hex

The second two hexadecimal digits are the BLUE component, from 0 to 255 in hex

The third two hexadecimal digits are the GREEN component, from 0 to 255 in hex

The fourth two hexadecimal digits are the ALPHA component, from 0 to 255 in hex

 

MeasureName

Meter展示的測量的名字。

 

X

窗口中meter的X軸位置。坐標可以通過上一個meter的相對位置確定,通過在數字後加r(X=5r)你也可以用大寫R使位置相對上一個meter右偏。

 

Y

Y軸位置。坐標可以通過上一個meter的相對位置確定,通過在數字後加r(Y =-10r)你也可以用大寫R使位置相對上一個meter上偏。

 

W

Meter寬度。如果寬度可以通過一個圖片計算出來或者是使用字符串meter時,不用定義這個。如果你用桌面作RM背景圖,你需要總是定義正確的高度和寬度,否則桌面的容積計算會不正確。

 

H

Meter高度。同W一樣,在那個條件下可以不用定義。

 

注:可以使用數學公式定義X,Y,W,H。這時值必須在""中(比如"Y=(300/3)")如果你用公式,你不能使用相對定位。

 

line_pen05.gif  

 

撰寫人:gria

找不到原PO地址,附上轉載地址

http://hi.baidu.com/chenaiwwx/blog/item/d91a3897969ea00dd21b70fc.html

 

arrow
arrow
    創作者介紹
    創作者 瀾 C'LAN 的頭像
    瀾 C'LAN

    Brilliance Splinter

    瀾 C'LAN 發表在 痞客邦 留言(0) 人氣()