IfActions

IFActions are action options you add to a measure to execute one or more Bangs or commands when a defined numerical threshold value is returned by the measure. IfActions are done by using pairs of Above, Equal, and Below Value and Action statements. You may have one of each kind of IfAction in a single measure.IFActionは、定義された数値のしきい値がメジャーによって返されたときに1つ以上のBangまたはコマンドを実行するためにメジャーに追加するアクションオプションです。IfActionsは、Above、Equal、Below ValueとActionステートメントのペアを使用して行われます。あなたは一つの小節にそれぞれの種類のIfActionの一つを持つことができます。

Optionsオプション

IfAboveValue
The value used by IfAboveAction.IfAboveActionによって使用される値。
IfAboveAction
Action to be executed when the measure goes above the value defined in IfAboveValue. The action is executed only at the moment when the measure exceeds the value, so it needs to go below the defined value before the action is executed again.数値データがIfAboveValueで定義された値を超えたときに実行されるアクション。アクションは数値データが値を超えた瞬間にのみ実行されるので、アクションが再度実行される前に定義された値を下回る必要があります。
IfBelowValue
The value used by IfBelowAction.IfBelowActionによって使用される値。
IfBelowAction
Action to be executed when the measure goes below the value defined in IfBelowValue. The action is executed only at the moment when the measure falls below the value, so it needs to go above the defined value before the action is executed again.数値データがIfBelowValueで定義された値を下回ったときに実行されるアクション。アクションは数値データが値を下回った瞬間にのみ実行されるため、アクションが再度実行される前に定義された値を上回っている必要があります。
IfEqualValue
The value used by IfEqualAction.IfEqualActionによって使用される値。
IfEqualAction
Action to be executed when the measure is equal with the value defined in IfEqualValue. The action is executed only once when the measure is equal to the value, so it needs to go above or below the defined value before the action is executed again. The compared value is rounded to an integer.数値データがIfEqualValueで定義された値と等しい場合に実行されるアクション。小節が値と等しい場合、アクションは一度だけ実行されるため、アクションが再度実行される前に、定義された値を上回ったり下回ったりする必要があります。比較値は整数に丸められます。

Example

[Rainmeter]
Update=1000
DynamicWindowSize=1

[MeasureCPU]
Measure=CPU
Processor=0
IfAboveValue=49
IfAboveAction=[!SetOption MeterCPU FontColor 255,0,0,255][!Redraw]
IfBelowValue=50
IfBelowAction=[!SetOption MeterCPU FontColor 0,255,0,255][!Redraw]

[MeterCPU]
Meter=String
MeasureName=MeasureCPU
X=0
Y=0
FontSize=15
FontColor=0,255,0,255
AntiAlias=1
Text=CPU: %1%

関連記事

スポンサーリンク

仮想通貨Chia Network(XCH)とは 多くの報酬を得る方法

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る