NowPlaying measure 今すぐプレイ

Measure=NowPlaying retrieves information about the currently playing track from a number of media players.Measure=NowPlaying 現在再生中のトラックに関する情報を複数のメディアプレーヤーから取得します。

Note: NowPlaying was previously a plugin measure.注:NowPlayingは以前はプラグインメジャーでした。

In many existing skins you might see the syntax:既存のスキンの多くには、次のような構文があります。

[MeasureParent]
Measure=Plugin
Plugin=NowPlaying
or
Plugin=NowPlaying.dll
or
Plugin=Plugins\NowPlaying.dll

NowPlaying still works with those forms, and changing existing skins to the new Measure=NowPlaying syntax is entirely optional. However, new skins created going forward should use the correct syntax for accuracy and clarity. NowPlaying is a measure, and not a plugin.NowPlayingはまだこれらのフォームで機能し、既存のスキンを新しいMeasure=NowPlaying構文に変更することは完全にオプションです。ただし、今後作成される新しいスキンは、正確さと明確さのために正しい構文を使用する必要があります。NowPlayingはメジャーであり、プラグインではありません。

[MeasureParent]
Measure=NowPlaying

Optionsオプション

General measure options一般的な測定オプション
All general measure options are valid.一般的な測定オプションはすべて有効です。
PlayerName
Can be either:
  • The player interface name (e.g. PlayerName=iTunes)プレーヤーのインターフェース名(例PlayerName=iTunes
  • Or the name of another measure (e.g. PlayerName=[MainMeasure])または他の小節の名前(例PlayerName=[MainMeasure]
Important: If multiple measures use the same player, specify the player interface name on the first NowPlaying measure and specify the name of the first measure in subsequent measures. See example below for proper usage.
PlayerType
Type of the measure value. Valid values are:
  • Artist: Track artist.Artist:トラックアーティスト。
  • Album: Current album.Album:現在のアルバム。
  • Title: Track title.Title:トラックのタイトル。
  • Number: Track number.Number: 追跡番号。
  • Year: Track year.Year年を追跡します。
  • Genre: Track genre.Genre:ジャンルを追跡します。
  • Cover: Path to cover art.Cover:カバーアートへの道
  • File: Path to the playing media file.File:再生中のメディアファイルへのパス。
  • Duration: Total length of track in seconds.Duration:トラックの全長(秒)。
  • Lyrics: Lyrics for track, downloaded from LyricWiki or LetrasLyrics:からの歌詞、LyricWikiまたはからダウンロードしたトラックの歌詞Letras
  • Position: Current position in track in seconds.Position:トラック内の現在位置(秒)。
  • Progress: Percentage of track completed.Progress:完了したトラックの割合。
  • Rating: Rating of current track (0 to 5).Rating:現在のトラックの定格(0〜5)。
  • Repeat: 0 if repeat/loop track is off, 1 if on.Repeat:リピート/ループトラックがオフの場合は0、オンの場合は1です。
  • Shuffle: 0 if shuffle/random tracks is off, 1 if on.Shuffle:シャッフル/ランダムトラックがオフの場合は0、オンの場合は1です。
  • State: 0 for stopped, 1 for playing, and 2 for paused.State:0は停止、1は再生、2は一時停止を表します。
  • Status: 0 for inactive (player closed) and 1 for active (player open).Status:非アクティブ(プレイヤーがクローズ)の場合は0、アクティブ(プレイヤーがオープン)の場合は1。
  • Volume: From 0 to 100.Volume0から100まで

Notes:
With measures of type Duration or Position, the string value is in the form MM:SS and the number value is the actual number of seconds.

The Lyrics type will detect and use both the Artist and Title values found for the .mp3 file in its ID3 tags, and will search http://lyrics.wikia.com, and then https://www.letras.mus.br for the lyrics, returning the first match. No match is possible if both Artist and Title are not present in the ID3 tags for the .mp3 file.

The PlayerType=Genre option is currently supported with the AIMP, CAD, iTunes, WMP and WinAmp PlayerName values.

PlayerPath
If defined, used to launch the player with the OpenPlayer command. If not defined, the plugin will attempt to automatically detect the path.定義されている場合、OpenPlayerコマンドでプレイヤーを起動するために使用されます。定義されていない場合、プラグインは自動的にパスを検出しようとします。
TrackChangeAction
Action to execute when the track changes.トラックが変更されたときに実行するアクション
DisableLeadingZero Default: 0DisableLeadingZero デフォルト: 0
If set to 1, the format of Duration and Position is M:SS instead of MM:SS. This option must be set on the main measure.に設定されている場合1、DurationとPositionのフォーマットはM:SSになりMM:SSます。このオプションはメインメジャーで設定する必要があります。

Bangs前髪

NowPlaying measures can be controlled with the !CommandMeasure bang with the argument parameter being:NowPlayingメジャーは、引数パラメーターを次のように指定して、!CommandMeasure bangで制御できます。

  • Pause: Pause current track.Pause:現在のトラックを一時停止します。
  • Play: Play current track.Play:現在の曲を再生します。
  • PlayPause: Play (if stopped/paused) or pause (if playing) current track.PlayPause:現在のトラックを再生(停止/一時停止している場合)または一時停止(再生している場合)します。
  • Stop: Stop current track.Stop:現在のトラックを停止します。
  • Next: Change to next track.Next:次の曲に移動します。
  • Previous: Change to previous track.Previous:前の曲に切り替えます。
  • OpenPlayer: Opens the player. If already open, the player will be brought to the top.OpenPlayer:プレーヤーを開きます。すでに開いている場合は、プレイヤーはトップになります。
  • ClosePlayer: Closes the player.ClosePlayer:プレーヤーを閉じます。
  • TogglePlayer: Opens/closes the player depending on current state.TogglePlayer:現在の状態に応じてプレーヤーを開閉します。
  • SetPosition n: Where n is either an absolute value (SetPosition 50 to jump to 50% of the track) or a relative value (SetPosition +5 to jump 5% forward or SetPosition -10 to jump 10% backward).SetPosition nnは絶対値(SetPosition 50トラックの50%にジャンプする場合)または相対値(SetPosition +55%前方SetPosition -10にジャンプするか10%後方にジャンプする場合)のいずれかです。
  • SetRating n: Where n is a value between 0 (no rating) and 5 (maximum rating).SetRating nnは、0(評価なし)と5(最大評価)の間の値です。
  • SetShuffle n: Where n is 1 (shuffle on), 0 (shuffle off), or -1 (toggle shuffle).SetShuffle nn1(シャッフルオン)、0(シャッフルオフ)、または-1(トグルシャッフル)の場合。
  • SetRepeat n: Where n is 1 (repeat on), 0 (repeat off), or -1 (toggle repeat).SetRepeat nn1(繰り返しオン)、0(繰り返しオフ)、(繰り返しの-1切り替え)のいずれかです。
  • SetVolume n: Where n is either an absolute value (SetVolume 50 to set volume to 50%) or a relative value (SetVolume +20 to increase volume by 20% orSetVolume -40 to decrease volume by 40%).SetVolume nnは絶対値(SetVolume 50音量を50%に設定する)または相対値(SetVolume +20音量を20%増加させる、またはSetVolume -40音量を40%減少させる)のいずれかです。

Fully supported players完全にサポートされているプレイヤー

The following players are fully supported. All features should work unless stated otherwise.以下のプレイヤーが完全にサポートされています。特に明記しない限り、すべての機能は動作するはずです。

  • AIMP: PlayerName=AIMP
    Fully supported. Tested with AIMP 2.61.AIMPPlayerName=AIMP
    完全にサポートされています。AIMP 2.61でテスト済み。
  • foobar2000: PlayerName=CAD
    Fully supported. The foo_cad plugin (download) needs to be installed.foob??ar2000PlayerName=CAD
    完全にサポートされています。foo_cadプラグイン(ダウンロード)をインストールする必要があります。
  • iTunes: PlayerName=iTunes
    Fully supported. Tested with iTunes 10.2.iTunesPlayerName=iTunes
    完全にサポートされています。iTunes 10.2でテスト済み。
  • J. River Media Center and Media Jukebox: PlayerName=CAD
    Fully supported through the CAD interface with Media Center 19 and later. More information here.J. River Media CenterおよびMedia JukeboxPlayerName=CAD
    Media Center 19以降のCADインタフェースを介して完全にサポートされています。詳細についてはこちらを
  • MediaMonkey: PlayerName=MediaMonkey
    Fully supported. Tested with MediaMonkey 3.2.5.MediaMonkeyPlayerName=MediaMonkey
    完全にサポートされています。MediaMonkey 3.2.5でテスト済み。
  • MusicBee: PlayerName=CAD
    Fully supported. MusicBee 1.2 (or higher) is required.MusicBeePlayerName=CAD
    完全にサポートされています。MusicBee 1.2(またはそれ以上)が必要です。
  • Winamp: PlayerName=Winamp
    Fully supported.WinampPlayerName=Winamp
    完全にサポートされています。
  • WMP: PlayerName=WMP
    Fully supported, except for the Repeat / Shuffle types.WMP:/ タイプPlayerName=WMP
    を除いて、完全にサポートされています。RepeatShuffle

Partially supported players部分的にサポートされているプレイヤー

The following players are partially supported. Only some features will work.以下のプレイヤーが部分的にサポートされています。いくつかの機能だけが動作します。

  • Spotify: PlayerName=Spotify
    Partially supported. Only the types Artist, Track and the bangs Play, PlayPause, Stop, Next, and Previous are available.SpotifyPlayerName=Spotify
    部分的にサポートされています。種類のみArtistTrackと前髪PlayPlayPauseStopNext、およびPrevious利用可能です。
  • Last.fm Client, TTPlayer, OpenPandora, Zune: PlayerName=WLM
    Partially supported. Even in the best case, only the types Title, Artist, Album and the bangs Play, Pause, PlayPause, Next, Previous, Stop are supported.Last.fmクライアントTTPlayerOpenPandoraZunePlayerName=WLM
    一部サポートされています。でも最良の場合、唯一のタイプではTitleArtistAlbumと前髪PlayPausePlayPauseNextPreviousStopサポートされています。

Example

For a more complete example, check the Soita skin.より完全な例については、Soitaスキンを確認してください。

[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=0,0,0,255

; MeasurePlayer is the main measure.
; MeasureArtist and MeasureAlbum are secondary measures.

[MeasurePlayer]
Measure=NowPlaying
; The main measure specifies the media player on PlayerName.
PlayerName=iTunes
PlayerType=TITLE
; PlayerPath, TrackChangeAction, and DisableLeadingZero are valid here on
; the main measure only.

[MeasureArtist]
Measure=NowPlaying
; Secondary measures specify the name of the main measure on PlayerName.
PlayerName=[MeasurePlayer]
PlayerType=ARTIST

[MeasureAlbum]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=ALBUM

[MeterPrev]
Meter=String
X=5
Y=5
FontColor=FFFF00
Text="Prev"
LeftMouseUpAction=[!CommandMeasure "MeasurePlayer" "Previous"]

[MeterNext]
Meter=String
X=20R
Y=5
FontColor=FFFF00
Text="Next"
LeftMouseUpAction=[!CommandMeasure "MeasurePlayer" "Next"]

[MeterTitle]
Meter=String
MeasureName=MeasurePlayer
X=5
Y=35
W=400
H=20
FontColor=255,255,255,255
Text="Title: %1"

[MeterArtist]
Meter=String
MeasureName=MeasureArtist
X=5
Y=55
W=400
H=20
FontColor=255,255,255,255
Text="Artist: %1"

[MeterAlbum]
Meter=String
MeasureName=MeasureAlbum
X=5
Y=75
W=400
H=20
FontColor=255,255,255,255
Text="Album: %1"

関連記事

スポンサーリンク

CONCAT関数 c

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

上に戻る