WindowMessage plugin WindowMessageプラグイン

Plugin=WindowMessagePlugin can be used to send and receive information from other applications. It can send window messages to other applications and show the result. For example, the plugin can be used to control WinAmp or some similar media players.Plugin=WindowMessagePlugin他のアプリケーションと情報を送受信するために使用できます。ウィンドウメッセージを他のアプリケーションに送信して結果を表示することができます。たとえば、このプラグインを使用してWinAmpなどのメディアプレーヤーを制御できます。

Optionsオプション

General measure options一般的な測定オプション
All general measure options are valid.一般的な測定オプションはすべて有効です。
WindowName
The name of the window. This is used to identify the window. It's not necessary to set this if the WindowClass is set.ウィンドウの名前 これはウィンドウを識別するために使用されます。が設定されている場合WindowClassは設定する必要はありません。
WindowClass
The class of the window. This is used to identify the window. It's not necessary to set this if the WindowName is set.ウィンドウのクラス これはウィンドウを識別するために使用されます。が設定されている場合WindowNameは設定する必要はありません。
WindowMessage
This is the message to be send to the window. You need to define 3 parameters to where the first one is the message and the next ones are wParam and lParam. Both wParam and lParam are unsigned decimal integers. The measure returns the value returned by the SendMessage API function. If the WindowMessage is not given, the measure returns the window's current title.これはウィンドウに送信されるメッセージです。最初のものがmessageで、次のものがwParamand であるところに3つのパラメータを定義する必要がありlParamます。wParamとlParamはどちらも符号なし10進整数です。このメジャーは、SendMessage API関数によって返された値を返します。WindowMessageが与えられていない場合、メジャーはウィンドウの現在のタイトルを返します。

Bangs前髪

Messages can also be sent on demand with the !CommandMeasure bang. The arguments are similar that of the WindowMessage option. !CommandMeasure "MeasureName" "SendMessage Msg wParam lParam"!CommandMeasure bangを使用して、メッセージをオンデマンドで送信することもできます。引数はWindowMessageオプションのものと似ています。!CommandMeasure "MeasureName" "SendMessage Msg wParam lParam"

Examples

The following example returns the name of the song that is playing in WinAmp.次の例では、WinAmpで再生している曲の名前を返します。

[MeasureWinamp]
Measure=Plugin
Plugin=WindowMessagePlugin
WindowClass=Winamp v1.x
Substitute="[Paused]":""," - Winamp":""

Check if Winamp is playing, or not. The following example returns 0 if it's not playing, 1 if it is playing, and 3 if it's paused.Winampが遊んでいるかどうか確認してください。次の例は0、再生されていない1場合、再生されている3場合、および一時停止されている場合に返されます。

[MeasureWinampPlaying]
Measure=Plugin
Plugin=WindowMessagePlugin
WindowClass=Winamp v1.x
WindowMessage=1024 0 104

Show song progress. In the following example, the [MeasureWinampDuration] will return the current song position as a value between 0 and 1. Then you can use the Bar meter to display the value.曲の進行状況を表示します。次の例では、[MeasureWinampDuration]との間の値と現在の曲の位置が返されます0とを1。その後、バーメーターを使用して値を表示できます。

[MeasureWinampFull]
Measure=Plugin
Plugin=WindowMessagePlugin
WindowClass=Winamp v1.x
WindowMessage=1024 1 105

[MeasureWinampCurr]
Measure=Plugin
Plugin=WindowMessagePlugin
WindowClass=Winamp v1.x
WindowMessage=1024 0 105

[MeasureWinampDuration]
Measure=Calc
Formula=(MeasureWinampCurr<=0)?0:(MeasureWinampCurr/(MeasureWinampFull*1000+1))

関連記事

スポンサーリンク

ALL演算子 『全て』を表す比較演算子の修飾子

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

上に戻る