有爱,有技术,有你^_^)y
╱人◕‿‿◕人╲订下契约(注册新用户)

合作站点账号登陆

QQ登录

只需一步,快速开始

快捷导航
查看: 63482|回复: 2013
收起左侧

[Rainmeter] Rainmeter EVA蜂巢桌面 的 播放器修正(千千静听、酷狗等)

[复制链接]

该用户从未签到

8

主题

11

好友

3239

积分

序章

积分
3239
发表于 2012-8-15 18:23:01 | 显示全部楼层 |阅读模式

╱人◕‿‿◕人╲定下契约

您需要 登录 才可以下载或查看,没有账号?╱人◕‿‿◕人╲订下契约(注册新用户)

x
本帖最后由 Flagalac 于 2015-12-31 11:18 编辑

2013.1.28
===============
适用于旧版,配合新版皮肤会出问题切记切记。
有空我写下新版的
===============
前言:
前天装了那个桌面
感觉蛮不错的
一步步按照教程弄下来大多数问题都解决了=-=最后就是蛋疼那个该死的播放器=-=WMP播放器什么的我才不用呢=-=
千千静听和酷狗的播放、暂停、打开软件又有问题
无比蛋疼之下昨天开始研究了一天 Rainmeter的配置文件 和  LUA=-=
(P.S:之所以花了这么久主要是之前思路错了一直试图给Measure赋值Orz 后来才发现错的离谱( >﹏<。))
终于改出如下版本(播放进度、播放进度条、音量调节什么的目前还没搞定)

以下是解决方案
=============================
补上了文件,快传的,大家可以下载
==============================

首先修改Top.ini为如下代码>>=======Top.ini 2012.8.15 22:27重新修改 修正了一个刷新的小问题==========<<

  1. [Rainmeter]
  2. Author=XANCI
  3. Group=NonePower
  4. MouseActionCursor=0
  5. RightMouseUpAction=[]

  6. [Metadata]
  7. Name=Top

  8. [Variables]
  9. @Include1=#@#Variables.inc
  10. @Include2=#@#Styles.inc
  11. @Include3=#@#Custom.inc

  12. [MeasureScript]
  13. Measure=Script
  14. ScriptFile="#CURRENTPATH#Top.lua"

  15. [MeterCPU]
  16. Meter=IMAGE
  17. X=84
  18. Y=212
  19. W=94
  20. H=24
  21. SolidColor=#TopColor#
  22. ToolTipText=(Right-Click to Toggle CPU Temp Display)
  23. MouseOverAction=[!SetOption MeterCPUTag FontColor #*FontColor2*# "NERV UI\CPU"][!UpdateMeter MeterCPUTag "NERV UI\CPU"][!Redraw "NERV UI\CPU"]
  24. MouseLeaveAction=[!SetOption MeterCPUTag FontColor #*FontColor1*# "NERV UI\CPU"][!UpdateMeter MeterCPUTag "NERV UI\CPU"][!Redraw "NERV UI\CPU"]
  25. RightMouseUpAction=!CommandMeasure MeasureScript MCT()

  26. [MeterCPUTemp]
  27. Meter=IMAGE
  28. X=141
  29. Y=241
  30. W=50
  31. H=30
  32. SolidColor=#TopColor#
  33. ToolTipText=(Right-Click to Switch CPU Temp Unit)
  34. MouseOverAction=[!SetOption MeterTemp FontColor #*FontColor2*# "NERV UI\CPU"][!UpdateMeter MeterTemp "NERV UI\CPU"][!Redraw "NERV UI\CPU"]
  35. MouseLeaveAction=[!SetOption MeterTemp FontColor #*FontColor1*# "NERV UI\CPU"][!UpdateMeter MeterTemp "NERV UI\CPU"][!Redraw "NERV UI\CPU"]
  36. RightMouseUpAction=!CommandMeasure MeasureScript MCTU()

  37. [MeterDriveX]
  38. Meter=IMAGE
  39. X=(#SCREENAREAWIDTH#-191)
  40. Y=(#SCREENAREAHEIGHT#-306)
  41. W=94
  42. H=36
  43. SolidColor=#TopColor#
  44. DynamicVariables=1
  45. ToolTipText=Open #DriveX#:\#CRLF#(Right-Click to Next Drive)
  46. MouseOverAction=[!SetOptionGroup Top FontColor #*FontColor2*# "NERV UI\DriveX"][!UpdateMeterGroup Top "NERV UI\DriveX"][!Redraw "NERV UI\DriveX"]
  47. MouseLeaveAction=[!SetOptionGroup Top FontColor #*FontColor1*# "NERV UI\DriveX"][!UpdateMeterGroup Top "NERV UI\DriveX"][!Redraw "NERV UI\DriveX"]
  48. LeftMouseUpAction=["#DriveX#:"]
  49. RightMouseUpAction=!CommandMeasure MeasureScript M() "NERV UI\DriveX"

  50. [MeterDriveY]
  51. Meter=IMAGE
  52. X=(#SCREENAREAWIDTH#-413)
  53. Y=(#SCREENAREAHEIGHT#-178)
  54. W=94
  55. H=36
  56. SolidColor=#TopColor#
  57. DynamicVariables=1
  58. ToolTipText=Open #DriveY#:\#CRLF#(Right-Click to Next Drive)
  59. MouseOverAction=[!SetOptionGroup Top FontColor #*FontColor2*# "NERV UI\DriveY"][!UpdateMeterGroup Top "NERV UI\DriveY"][!Redraw "NERV UI\DriveY"]
  60. MouseLeaveAction=[!SetOptionGroup Top FontColor #*FontColor1*# "NERV UI\DriveY"][!UpdateMeterGroup Top "NERV UI\DriveY"][!Redraw "NERV UI\DriveY"]
  61. LeftMouseUpAction=["#DriveY#:"]
  62. RightMouseUpAction=!CommandMeasure MeasureScript M() "NERV UI\DriveY"

  63. [MeterLauncherT]
  64. Group=LauncherTop
  65. Meter=IMAGE
  66. X=83
  67. Y=343
  68. W=56
  69. H=18
  70. SolidColor=#TopColor#
  71. ToolTipText=Close Launcher
  72. MouseOverAction=[!SetOption #CURRENTSECTION# FontColor #*FontColor2*# "NERV UI\Launcher"][!UpdateMeter #CURRENTSECTION# "NERV UI\Launcher"][!Redraw "NERV UI\Launcher"]
  73. MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor #*FontColor1*# "NERV UI\Launcher"][!UpdateMeter #CURRENTSECTION# "NERV UI\Launcher"][!Redraw "NERV UI\Launcher"]
  74. LeftMouseUpAction=!CommandMeasure MeasureScript sNP='C';M() "NERV UI\Launcher"

  75. [MeterLauncherP]
  76. Group=Page|LauncherTop
  77. Meter=IMAGE
  78. X=96
  79. Y=323
  80. W=32
  81. H=20
  82. SolidColor=#TopColor#
  83. ToolTipText=Previous Page
  84. MouseOverAction=[!SetOption #CURRENTSECTION# ImageAlpha 255 "NERV UI\Launcher"][!UpdateMeter #CURRENTSECTION# "NERV UI\Launcher"][!Redraw "NERV UI\Launcher"]
  85. MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageAlpha 204 "NERV UI\Launcher"][!UpdateMeter #CURRENTSECTION# "NERV UI\Launcher"][!Redraw "NERV UI\Launcher"]
  86. LeftMouseUpAction=!CommandMeasure MeasureScript sNP='P';M() "NERV UI\Launcher"

  87. [MeterLauncherN]
  88. Group=Page|LauncherTop
  89. Meter=IMAGE
  90. X=96
  91. Y=361
  92. W=32
  93. H=20
  94. SolidColor=#TopColor#
  95. ToolTipText=Next Page
  96. MouseOverAction=[!SetOption #CURRENTSECTION# ImageAlpha 255 "NERV UI\Launcher"][!UpdateMeter #CURRENTSECTION# "NERV UI\Launcher"][!Redraw "NERV UI\Launcher"]
  97. MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageAlpha 204 "NERV UI\Launcher"][!UpdateMeter #CURRENTSECTION# "NERV UI\Launcher"][!Redraw "NERV UI\Launcher"]
  98. LeftMouseUpAction=!CommandMeasure MeasureScript sNP='N';M() "NERV UI\Launcher"

  99. [MeterNet]
  100. Meter=IMAGE
  101. X=422
  102. Y=80
  103. W=88
  104. H=22
  105. SolidColor=#TopColor#
  106. MouseOverAction=[!SetOption MeterNet FontColor #*FontColor2*# "NERV UI\Net"][!UpdateMeter MeterNet "NERV UI\Net"][!Redraw "NERV UI\Net"]
  107. MouseLeaveAction=[!SetOption MeterNet FontColor #*FontColor1*# "NERV UI\Net"][!UpdateMeter MeterNet "NERV UI\Net"][!Redraw "NERV UI\Net"]
  108. LeftMouseUpAction=["control.exe" "ncpa.cpl"]
  109. MiddleMouseUpAction=!ResetStats

  110. [MeterNetIP]
  111. Meter=IMAGE
  112. X=r
  113. Y=R
  114. W=88
  115. H=12
  116. SolidColor=#TopColor#
  117. ToolTipText=[Mid-Click to Refresh IP]
  118. MouseOverAction=[!SetOption MeterIP FontColor #*FontColor2*# "NERV UI\Net"][!UpdateMeter MeterIP "NERV UI\Net"][!Redraw "NERV UI\Net"]
  119. MouseLeaveAction=[!SetOption MeterIP FontColor #*FontColor1*# "NERV UI\Net"][!UpdateMeter MeterIP "NERV UI\Net"][!Redraw "NERV UI\Net"]
  120. MiddleMouseUpAction=!Refresh "NERV UI\Net"

  121. [MeterPanelTag]
  122. Meter=STRING
  123. MeterStyle=StyleSub
  124. X=56
  125. Y=184
  126. FontFace=#FontFace2#
  127. Text=PANEL

  128. [MeterPanel]
  129. Meter=IMAGE
  130. X=30
  131. Y=174
  132. W=52
  133. H=36
  134. SolidColor=#TopColor#
  135. ToolTipText=Settings Panel
  136. MouseOverAction=[!SetOption MeterPanelTag FontColor #*FontColor2*#][!UpdateMeter MeterPanelTag][!Redraw]
  137. MouseLeaveAction=[!SetOption MeterPanelTag FontColor #*FontColor1*#][!UpdateMeter MeterPanelTag][!Redraw]
  138. LeftMouseUpAction=!ToggleFade "NERV UI\Settings"

  139. [MeterRAM]
  140. Meter=IMAGE
  141. X=195
  142. Y=340
  143. W=94
  144. H=24
  145. SolidColor=#TopColor#
  146. ToolTipText=Open Task Manager
  147. MouseOverAction=[!SetOption MeterRAMTag FontColor #*FontColor2*# "NERV UI\RAM"][!UpdateMeter MeterRAMTag "NERV UI\RAM"][!Redraw "NERV UI\RAM"]
  148. MouseLeaveAction=[!SetOption MeterRAMTag FontColor #*FontColor1*# "NERV UI\RAM"][!UpdateMeter MeterRAMTag "NERV UI\RAM"][!Redraw "NERV UI\RAM"]
  149. LeftMouseUpAction=["taskmgr"]

  150. [MeterRecycle]
  151. Meter=IMAGE
  152. X=(#SCREENAREAWIDTH#-303)
  153. Y=(#SCREENAREAHEIGHT#-302)
  154. W=52
  155. H=44
  156. SolidColor=#TopColor#
  157. MouseOverAction=[!SetOptionGroup Top FontColor #*FontColor2*# "NERV UI\Recycle"][!UpdateMeterGroup Top "NERV UI\Recycle"][!Redraw "NERV UI\Recycle"]
  158. MouseLeaveAction=[!SetOptionGroup Top FontColor #*FontColor1*# "NERV UI\Recycle"][!UpdateMeterGroup Top "NERV UI\Recycle"][!Redraw "NERV UI\Recycle"]
  159. LeftMouseUpAction=!CommandMeasure MeasureCount OpenBin "NERV UI\Recycle"

  160. ; [MeterRSS]
  161. ; Meter=IMAGE
  162. ; X=(#SCREENAREAWIDTH#-186)
  163. ; Y=(#SCREENAREAHEIGHT#-372)
  164. ; W=40
  165. ; H=40
  166. ; SolidColor=#TopColor#
  167. ; LeftMouseUpAction=!CommandMeasure MeasureScript MR() "NERV UI\Ani"

  168. [MeterWeather]
  169. Meter=IMAGE
  170. X=(#SCREENAREAWIDTH#-190)
  171. Y=(#SCREENAREAHEIGHT#-187)
  172. W=48
  173. H=52
  174. SolidColor=#TopColor#
  175. ToolTipText=Open Weather.com#CRLF#(Right-Click to Toggle Forecast)#CRLF#[Mid-Click to Refresh Weather]
  176. MouseOverAction=[!SetOption MeterWeatherLabel FontColor #*FontColor2*# "NERV UI\Weather"][!UpdateMeter MeterWeatherLabel "NERV UI\Weather"][!Redraw "NERV UI\Weather"]
  177. MouseLeaveAction=[!SetOption MeterWeatherLabel FontColor #*FontColor1*# "NERV UI\Weather"][!UpdateMeter MeterWeatherLabel "NERV UI\Weather"][!Redraw "NERV UI\Weather"]
  178. LeftMouseUpAction=["http://www.weather.com/weather/5-day/#WeatherCode#"]
  179. MiddleMouseUpAction=!Refresh "NERV UI\Weather"
  180. RightMouseUpAction=!CommandMeasure MeasureScript MF() "NERV UI\Ani"

  181. [MeterWeatherTemp]
  182. Meter=IMAGE
  183. X=(#SCREENAREAWIDTH#-252)
  184. Y=(#SCREENAREAHEIGHT#-138)
  185. W=56
  186. H=32
  187. SolidColor=#TopColor#
  188. ToolTipText=Right-Click to Switch Weather Temp Unit)
  189. MouseOverAction=[!SetOption MeterTemp FontColor #*FontColor2*# "NERV UI\Weather"][!UpdateMeter MeterTemp "NERV UI\Weather"][!Redraw "NERV UI\Weather"]
  190. MouseLeaveAction=[!SetOption MeterTemp FontColor #*FontColor1*# "NERV UI\Weather"][!UpdateMeter MeterTemp "NERV UI\Weather"][!Redraw "NERV UI\Weather"]
  191. RightMouseUpAction=!CommandMeasure MeasureScript MWTU()

  192. [MeterWMPTag]
  193. Meter=IMAGE
  194. X=194
  195. Y=82
  196. W=56
  197. H=18
  198. SolidColor=#TopColor#
  199. DynamicVariables=1
  200. ToolTipText=Open #PlayerTag##CRLF##PlayerPath#(Right-Click to Next Player)
  201. MouseOverAction=[!SetOption MeterTag FontColor #*FontColor2*# "NERV UI\WMP"][!UpdateMeter MeterTag "NERV UI\WMP"][!Redraw "NERV UI\WMP"]
  202. MouseLeaveAction=[!SetOption MeterTag FontColor #*FontColor1*# "NERV UI\WMP"][!UpdateMeter MeterTag "NERV UI\WMP"][!Redraw "NERV UI\WMP"]
  203. LeftMouseUpAction=[!CommandMeasure MeasureArtist OpenPlayer "NERV UI\WMP"]!Execute ["#PlayerPath#"]
  204. RightMouseUpAction=[!CommandMeasure MeasureScript MP() "NERV UI\WMP"][!Refresh]

  205. [MeterWMPTitle]
  206. Meter=IMAGE
  207. X=154
  208. Y=100
  209. W=#WMPTextL#
  210. H=14
  211. SolidColor=#TopColor#
  212. DynamicVariables=1
  213. ToolTipText=#Title#
  214. MouseOverAction=[!SetOption MeterTitle FontColor #*FontColor2*# "NERV UI\WMP"][!UpdateMeter MeterTitle "NERV UI\WMP"][!Redraw "NERV UI\WMP"]
  215. MouseLeaveAction=[!SetOption MeterTitle FontColor #*FontColor1*# "NERV UI\WMP"][!UpdateMeter MeterTitle "NERV UI\WMP"][!Redraw "NERV UI\WMP"]

  216. [MeterWMPArtist]
  217. Meter=IMAGE
  218. X=r
  219. Y=14r
  220. W=#WMPTextL#
  221. H=14
  222. SolidColor=#TopColor#
  223. DynamicVariables=1
  224. ToolTipText=#Artist#
  225. MouseOverAction=[!SetOption MeterArtist FontColor #*FontColor2*# "NERV UI\WMP"][!UpdateMeter MeterArtist "NERV UI\WMP"][!Redraw "NERV UI\WMP"]
  226. MouseLeaveAction=[!SetOption MeterArtist FontColor #*FontColor1*# "NERV UI\WMP"][!UpdateMeter MeterArtist "NERV UI\WMP"][!Redraw "NERV UI\WMP"]

  227. [MeterWMPAlbum]
  228. Meter=IMAGE
  229. X=r
  230. Y=14r
  231. W=#WMPTextL#
  232. H=14
  233. SolidColor=#TopColor#
  234. DynamicVariables=1
  235. ToolTipText=#Album#
  236. MouseOverAction=[!SetOption MeterAlbum FontColor #*FontColor2*# "NERV UI\WMP"][!UpdateMeter MeterAlbum "NERV UI\WMP"][!Redraw "NERV UI\WMP"]
  237. MouseLeaveAction=[!SetOption MeterAlbum FontColor #*FontColor1*# "NERV UI\WMP"][!UpdateMeter MeterAlbum "NERV UI\WMP"][!Redraw "NERV UI\WMP"]

  238. [MeterWMPPrevious]
  239. Meter=IMAGE
  240. X=136
  241. Y=100
  242. W=18
  243. H=56
  244. SolidColor=#TopColor#
  245. ToolTipText=Previous
  246. MouseOverAction=[!SetOption MeterPrevious ImageAlpha 255 "NERV UI\WMP"][!UpdateMeter MeterPrevious "NERV UI\WMP"][!Redraw "NERV UI\WMP"]
  247. MouseLeaveAction=[!SetOption MeterPrevious ImageAlpha 204 "NERV UI\WMP"][!UpdateMeter MeterPrevious "NERV UI\WMP"][!Redraw "NERV UI\WMP"]
  248. LeftMouseUpAction=[!CommandMeasure MeasureArtist Previous "NERV UI\WMP"][!CommandMeasure MeasureScript iCH=1 "NERV UI\WMP"][!Update "NERV UI\WMP"][!Redraw "NERV UI\WMP"]

  249. [MeterWMPNext]
  250. Meter=IMAGE
  251. X=402
  252. Y=r
  253. W=18
  254. H=56
  255. SolidColor=#TopColor#
  256. ToolTipText=Next
  257. MouseOverAction=[!SetOption MeterNext ImageAlpha 255 "NERV UI\WMP"][!UpdateMeter MeterNext "NERV UI\WMP"][!Redraw "NERV UI\WMP"]
  258. MouseLeaveAction=[!SetOption MeterNext ImageAlpha 204 "NERV UI\WMP"][!UpdateMeter MeterNext "NERV UI\WMP"][!Redraw "NERV UI\WMP"]
  259. LeftMouseUpAction=[!CommandMeasure MeasureArtist Next "NERV UI\WMP"][!CommandMeasure MeasureScript iCH=1 "NERV UI\WMP"][!Update "NERV UI\WMP"][!Redraw "NERV UI\WMP"]

  260. [MeterWMPPP]
  261. Meter=IMAGE
  262. X=208
  263. Y=156
  264. W=30
  265. H=30
  266. SolidColor=#TopColor#
  267. DynamicVariables=1
  268. ToolTipText=#PlayerState#
  269. MouseOverAction=[!SetOption MeterPP ImageAlpha 255 "NERV UI\WMP"][!UpdateMeter MeterPP "NERV UI\WMP"][!Redraw "NERV UI\WMP"]
  270. MouseLeaveAction=[!SetOption MeterPP ImageAlpha 204 "NERV UI\WMP"][!UpdateMeter MeterPP "NERV UI\WMP"][!Redraw "NERV UI\WMP"]
  271. LeftMouseUpAction=[!CommandMeasure MeasureArtist PlayPause "NERV UI\WMP"][!CommandMeasure MeasureScript CH() "NERV UI\WMP"][!UpdateMeter MeterPP "NERV UI\WMP"][!Redraw "NERV UI\WMP"]

  272. [MeterWMPMute]
  273. Meter=IMAGE
  274. X=314
  275. Y=162
  276. W=20
  277. H=20
  278. SolidColor=#TopColor#
  279. ToolTipText=Mute / Resume
  280. MouseOverAction=[!CommandMeasure MeasureScript iMM=1 "NERV UI\WMP"][!Update "NERV UI\WMP"]
  281. MouseLeaveAction=[!CommandMeasure MeasureScript iMM=0 "NERV UI\WMP"][!Update "NERV UI\WMP"]
  282. LeftMouseUpAction=[!CommandMeasure MeasureScript MM() "NERV UI\WMP"][!Update "NERV UI\WMP"]

  283. [MeterWMPVD]
  284. Meter=IMAGE
  285. X=336
  286. Y=162
  287. W=20
  288. H=20
  289. SolidColor=#TopColor#
  290. ToolTipText=Volume -20
  291. MouseOverAction=[!SetOption MeterVD ImageAlpha 255 "NERV UI\WMP"][!UpdateMeter MeterVD "NERV UI\WMP"][!Redraw "NERV UI\WMP"]
  292. MouseLeaveAction=[!SetOption MeterVD ImageAlpha 204 "NERV UI\WMP"][!UpdateMeter MeterVD "NERV UI\WMP"][!Redraw "NERV UI\WMP"]
  293. LeftMouseUpAction=[!CommandMeasure MeasureArtist "SetVolume -20" "NERV UI\WMP"][!Update "NERV UI\WMP"]

  294. [MeterWMPVU]
  295. Meter=IMAGE
  296. X=r
  297. Y=74
  298. W=20
  299. H=20
  300. SolidColor=#TopColor#
  301. ToolTipText=Volume +20
  302. MouseOverAction=[!SetOption MeterVU ImageAlpha 255 "NERV UI\WMP"][!UpdateMeter MeterVU "NERV UI\WMP"][!Redraw "NERV UI\WMP"]
  303. MouseLeaveAction=[!SetOption MeterVU ImageAlpha 204 "NERV UI\WMP"][!UpdateMeter MeterVU "NERV UI\WMP"][!Redraw "NERV UI\WMP"]
  304. LeftMouseUpAction=[!CommandMeasure MeasureArtist "SetVolume +20" "NERV UI\WMP"][!Update "NERV UI\WMP"]
复制代码
然后是WMP.ini(这个我忘记有没改过了满覆盖着吧╮(╯_╰)╭)
  1. [Rainmeter]
  2. Author=XANCI
  3. Group=NonePower
  4. Update=100

  5. [Metadata]
  6. Name=WMP

  7. [Variables]
  8. @Include1=#@#Variables.inc
  9. @Include2=#@#Styles.inc
  10. @Include3=#@#Custom.inc
  11. Player=WMP
  12. PlayerPath=


  13. [MeasureScript]
  14. Measure=Script
  15. ScriptFile="#CURRENTPATH#WMP.lua"

  16. [MeasureArtist]
  17. Measure=Plugin
  18. Plugin=NowPlaying.dll
  19. PlayerName=#Player#
  20. PlayerType=ARTIST
  21. PlayerPath=#PlayerPath#
  22. DisableLeadingZero=1
  23. Substitute="":"N\A"

  24. [MeasureAlbum]
  25. Measure=Plugin
  26. Plugin=NowPlaying.dll
  27. PlayerName=[MeasureArtist]
  28. PlayerType=ALBUM
  29. Substitute="":"N\A"

  30. [MeasureTitle]
  31. Measure=Plugin
  32. Plugin=NowPlaying.dll
  33. PlayerName=[MeasureArtist]
  34. PlayerType=TITLE
  35. Substitute="":"N\A"

  36. [MeasureCover]
  37. Measure=Plugin
  38. Plugin=NowPlaying.dll
  39. PlayerName=[MeasureArtist]
  40. PlayerType=COVER

  41. [MeasureDuration]
  42. Measure=Plugin
  43. Plugin=NowPlaying.dll
  44. PlayerName=[MeasureArtist]
  45. PlayerType=DURATION

  46. [MeasurePosition]
  47. Measure=Plugin
  48. Plugin=NowPlaying.dll
  49. PlayerName=[MeasureArtist]
  50. PlayerType=POSITION

  51. [MeasureProgress]
  52. Measure=Plugin
  53. Plugin=NowPlaying.dll
  54. PlayerName=[MeasureArtist]
  55. PlayerType=PROGRESS

  56. [MeasureState]
  57. Measure=Plugin
  58. Plugin=NowPlaying.dll
  59. PlayerName=[MeasureArtist]
  60. PlayerType=STATE

  61. [MeasureStatus]
  62. Measure=Plugin
  63. Plugin=NowPlaying.dll
  64. PlayerName=[MeasureArtist]
  65. PlayerType=STATUS
  66. Substitute="0":"OFF","1":"ON"

  67. [MeasureVolume]
  68. Measure=Plugin
  69. Plugin=NowPlaying.dll
  70. PlayerName=[MeasureArtist]
  71. PlayerType=VOLUME

  72. [MeterStatus]
  73. MeasureName=MeasureStatus
  74. Meter=STRING
  75. MeterStyle=StyleLabel
  76. X=93
  77. Y=4


  78. [MeterTag]
  79. Meter=STRING
  80. MeterStyle=StyleSub
  81. X=93
  82. Y=18
  83. W=64
  84. H=20
  85. FontFace=#FontFace3#
  86. ClipString=1


  87. [MeterTitleTest]
  88. Meter=STRING
  89. MeterStyle=StyleLabel
  90. X=24
  91. Y=36
  92. W=""
  93. H=""
  94. FontColor=#FontColor2#,1
  95. StringAlign=LEFT
  96. ClipString=0

  97. [MeterArtistTest]
  98. Meter=STRING
  99. MeterStyle=StyleLabel
  100. X=r
  101. Y=14r
  102. W=""
  103. H=""
  104. FontColor=#FontColor2#,1
  105. StringAlign=LEFT
  106. ClipString=0

  107. [MeterAlbumTest]
  108. Meter=STRING
  109. MeterStyle=StyleLabel
  110. X=r
  111. Y=14r
  112. W=""
  113. H=""
  114. FontColor=#FontColor2#,1
  115. StringAlign=LEFT
  116. ClipString=0

  117. [MeterTitle]
  118. MeasureName=MeasureTitle
  119. Meter=STRING
  120. MeterStyle=StyleLabel
  121. X=r
  122. Y=36
  123. W=192
  124. StringAlign=LEFT

  125. [MeterArtist]
  126. MeasureName=MeasureArtist
  127. Meter=STRING
  128. MeterStyle=StyleLabel
  129. X=r
  130. Y=14r
  131. W=192
  132. StringAlign=LEFT

  133. [MeterAlbum]
  134. MeasureName=MeasureAlbum
  135. Meter=STRING
  136. MeterStyle=StyleLabel
  137. X=r
  138. Y=14r
  139. W=192
  140. StringAlign=LEFT

  141. [MeterPosition]
  142. MeasureName=MeasurePosition
  143. Meter=STRING
  144. MeterStyle=StyleLabel
  145. X=r
  146. Y=14r
  147. W=""
  148. H=""
  149. StringAlign=LEFT
  150. ClipString=0

  151. [MeterDuration]
  152. MeasureName=MeasureDuration
  153. Meter=STRING
  154. MeterStyle=StyleLabel
  155. X=217
  156. Y=r
  157. W=""
  158. H=""
  159. StringAlign=RIGHT
  160. ClipString=0

  161. [MeterProgressBar]
  162. MeasureName=MeasureProgress
  163. Meter=BAR
  164. H=4
  165. SolidColor=#FontColor2#,100
  166. BarColor=#FontColor2#,170
  167. BarOrientation=HORIZONTAL
  168. AntiAlias=1
  169. DynamicVariables=1

  170. [MeterCover]
  171. MeasureName=MeasureCover
  172. Meter=IMAGE
  173. X=219
  174. Y=38
  175. W=52
  176. H=52
  177. ImageAlpha=204
  178. AntiAlias=1

  179. [MeterVolume]
  180. MeasureName=MeasureVolume
  181. Meter=STRING
  182. MeterStyle=StyleLabel
  183. X=196
  184. Y=12

  185. [MeterPrevious]
  186. Meter=IMAGE
  187. ImageName=#@#Images\P.png
  188. MeterStyle=StyleM
  189. X=0
  190. Y=32

  191. [MeterNext]
  192. Meter=IMAGE
  193. ImageName=#@#Images\N.png
  194. MeterStyle=StyleM
  195. X=222
  196. Y=r

  197. [MeterPP]
  198. Meter=IMAGE
  199. MeterStyle=StyleM
  200. X=78
  201. Y=92



  202. [MeterMute]
  203. Meter=IMAGE
  204. ImageName=#@#Images\M.png
  205. MeterStyle=StyleM
  206. X=187
  207. Y=100

  208. [MeterVU]
  209. Meter=IMAGE
  210. ImageName=#@#Images\U.png
  211. MeterStyle=StyleM
  212. X=206
  213. Y=10

  214. [MeterVD]
  215. Meter=IMAGE
  216. ImageName=#@#Images\D.png
  217. MeterStyle=StyleM
  218. X=r
  219. Y=98

复制代码
再然后WMP.lua

  1. <P>function Initialize()
  2. bSO='!SetOption'
  3. bWKV='!WriteKeyValue'
  4. bSV='!SetVariable'
  5. bSVG='!SetVariableGroup'
  6. bRF='!Refresh'
  7. bU='!Update'
  8. bMM='!MoveMeter'
  9. bCM='!CommandMeasure'
  10. msMC=SKIN:GetMeasure('MeasureCover')
  11. msMS=SKIN:GetMeasure('MeasureState')
  12. msMV=SKIN:GetMeasure('MeasureVolume')
  13. mtMP=SKIN:GetMeter('MeterPosition')
  14. mtMD=SKIN:GetMeter('MeterDuration')
  15. iP=tonumber(SKIN:GetVariable('PlayerNow'))
  16. iPN=tonumber(SKIN:GetVariable('PlayerNum'))
  17. sM={'Title','Artist','Album'}
  18. msM={}
  19. mtM={}
  20. iC={}
  21. sMT={}
  22. sP={}
  23. sPP={}
  24. sPT={}
  25. for i=1,3 do
  26.   msM[i]=SKIN:GetMeasure('Measure'..sM[i])
  27.   mtM[i]=SKIN:GetMeter('Meter'..sM[i]..'Test')
  28. end
  29. for i=1,iPN do
  30.   sP[i]=tostring(SKIN:GetVariable('Player'..i))
  31.   sPP[i]=tostring(SKIN:GetVariable('PlayerPath'..i))
  32.   sPT[i]=tostring(SKIN:GetVariable('PlayerTag'..i))
  33. end
  34. if iP>iPN then
  35.   iP=1
  36.   SKIN:Bang(bWKV,'Variables','PlayerNow',1,'#CUSFILE#')
  37. end
  38. if (tostring(SKIN:GetVariable('Player'))~=sP[iP])or(tostring(SKIN:GetVariable('PlayerPath'))~=sPP[iP]) then
  39.   SKIN:Bang(bWKV,'Variables','Player',sP[iP],'#WMPFILE#')
  40.   SKIN:Bang(bWKV,'Variables','PlayerPath',sPP[iP],'#WMPFILE#')
  41.   SKIN:Bang(bRF)
  42. end
  43. SKIN:Bang(bSVG,'PlayerTag',sPT[iP],'NonePower')
  44. SKIN:Bang(bSVG,'PlayerPath',sPP[iP],'NonePower')
  45. SKIN:Bang(bSO,'MeterTag','Text',sPT[iP])
  46. iCL=-1
  47. iMC=0
  48. iMP=0
  49. iMD=0
  50. iMM=0
  51. iTL=192
  52. iVP=100
  53. iCH=msMS:GetStringValue()
  54. iOD=-1
  55. end</P>
  56. <P>function Update()
  57. msMS=SKIN:GetMeasure('MeasureState')
  58. if msMC:GetStringValue()=='' then
  59.   iMC=0
  60. else
  61.   iMC=1
  62. end
  63. if iCL~=iMC then
  64.   iCL=iMC
  65.   iMP=0
  66.   iMD=0
  67.   iTL=248-56*iCL
  68.   SKIN:Bang(bSVG,'WMPTextL',iTL,'NonePower')
  69.   for i=1,3 do
  70.    sMT[i]=''
  71.    SKIN:Bang(bSO,'Meter'..sM[i],'W',iTL)
  72.   end
  73.   SKIN:Bang(bMM,25+iTL,78,'MeterDuration')
  74. else
  75.   for i=1,3 do
  76.    if sMT[i]~=msM[i]:GetStringValue() then
  77.     sMT[i]=msM[i]:GetStringValue()
  78.     iC[i]=2
  79.     SKIN:Bang(bSO,'Meter'..sM[i]..'Test','Text',sMT[i])
  80.    end
  81.    if iC[i]==1 then
  82.     iC[i]=0
  83.     if mtM[i]:GetW()<iTL then
  84.      SKIN:Bang(bSVG,sM[i],'','NonePower')
  85.     else
  86.      SKIN:Bang(bSVG,sM[i],sMT[i],'NonePower')
  87.     end
  88.    elseif iC[i]==2 then
  89.     iC[i]=1
  90.    end
  91.   end
  92.   if (iMP~=mtMP:GetW())or(iMD~=mtMD:GetW()) then
  93.    iMP=mtMP:GetW()
  94.    iMD=mtMD:GetW()
  95.    SKIN:Bang(bMM,26+iMP,83,'MeterProgressBar')
  96.    SKIN:Bang(bSO,'MeterProgressBar','W',iTL-4-iMP-iMD)
  97.   end
  98. end
  99. iMV=msMV:GetValue()
  100. if iMV>0 then
  101.   iVP=iMV
  102. end
  103. if iMM==1 then
  104.   SKIN:Bang(bSO,'MeterMute','ImageAlpha',255)
  105. else
  106.   SKIN:Bang(bSO,'MeterMute','ImageAlpha',4+iMV*2)
  107. end
  108. iSV=msMS:GetStringValue()
  109. if (iOD~=iSV) then
  110.   iCH=iSV
  111.   iOD=iSV
  112. end
  113. if (iCH%2==1) then
  114.   SKIN:Bang(bSVG,'PlayerState','Pause','NonePower')
  115.   SKIN:Bang(bSO,'MeterPP','ImageName','#@#Images\\Pause')
  116. else
  117.   SKIN:Bang(bSVG,'PlayerState','Play','NonePower')
  118.   SKIN:Bang(bSO,'MeterPP','ImageName','#@#Images\\Play')
  119. end
  120. end</P>
  121. <P>function MM()
  122. if iMV>0 then
  123.   SKIN:Bang(bCM,'MeasureArtist','SetVolume 0')
  124. else
  125.   SKIN:Bang(bCM,'MeasureArtist','SetVolume '..iVP)
  126. end
  127. end</P>
  128. <P>function MP()
  129. iP=iP%iPN+1
  130. SKIN:Bang(bWKV,'Variables','PlayerNow',iP,'#CUSFILE#')
  131. SKIN:Bang(bWKV,'Variables','Player',sP[iP],'#WMPFILE#')
  132. SKIN:Bang(bWKV,'Variables','PlayerPath',sPP[iP],'#WMPFILE#')
  133. SKIN:Bang(bSV,'PlayerTag',sPT[iP],'NERV UI\\Top')
  134. SKIN:Bang(bU,'NERV UI\\Top')
  135. SKIN:Bang(bSO,'MeasureArtist','PlayerName',sP[iP])
  136. SKIN:Bang(bSO,'MeasureArtist','PlayerPath',sPP[iP])
  137. SKIN:Bang(bSO,'MeterTag','Text',sPT[iP])
  138. SKIN:Bang(bU)
  139. end</P>
  140. <P>function CH()
  141. iCH=(iCH+1)%2
  142. end</P>
复制代码
最后别忘了修改Custom.inc里的PlayerPath1原教程有我就不多说了╮(╯_╰)╭这一天多的努力以上


Top.ini 等4个文件
http://kuai.xunlei.com/d/NQLHJVLSYMXN

Top.ini更新版
http://kuai.xunlei.com/d/NZUBOJHFZLYV




========================p.s:两万年没用这个了桌面插件了.代码都没维护,而且因为软件版本更新之类的可能导致失效, 去掉了回复可见,大家全当参考吧.   
p.s2:其实一直是被回复提示弄的很烦







评分

参与人数 10宅魂 +8 宅币 +107 贡献 +13 活跃 +3 宅の石(入宅度) +1 收起 理由
a5566055 + 3 Σ( ° △ °|||)︴ 碉堡了
傲娇女-K大人! + 1 + 3 Σ( ° △ °|||)︴ 碉堡了
RellikDeus + 1 + 1 + 1 Σ( ° △ °|||)︴ 碉堡了
 _Magnet♂ + 2 + 5 Σ( ° △ °|||)︴ 碉堡了
菠菜爱橙子 + 5 →_→手滑
胃痛君 + 30 + 6 + 1 Σ( ° △ °|||)︴ 碉堡了
sdyppt + 2 + 4 Σ( ° △ °|||)︴ 碉堡了
冰恋暴君の该隐 + 1 + 3 + 1 Σ( ° △ °|||)︴ 碉堡了
linlele + 1 + 3 + 1 Σ( ° △ °|||)︴ 碉堡了
八木烧纸君 + 50 + 7 Σ( ° △ °|||)︴ 碉堡了

查看全部评分

签名被小宅喵吞掉了~~~~(>_<)~~~~
回复

使用道具 举报

该用户从未签到

8

主题

33

好友

2万

积分

第一章

积分
21191
发表于 2012-8-15 18:25:52 | 显示全部楼层
本帖最后由 bululu 于 2012-8-15 18:27 编辑

我的也是啊...就是看着教程改成了千千...但是进程条、音量没变啊!!!不能调控啊...
签名被小宅喵吞掉了~~~~(>_<)~~~~
回复 支持 反对

使用道具 举报

该用户从未签到

29

主题

39

好友

1万

积分

第一章

积分
13362
发表于 2012-8-15 18:29:11 | 显示全部楼层
我昨天也试了...但是各种状况TVT
/口\骚年路过!
回复 支持 反对

使用道具 举报

该用户从未签到

8

主题

11

好友

3239

积分

序章

积分
3239
 楼主| 发表于 2012-8-15 18:30:23 | 显示全部楼层

那个是nowplaying.dll本身不支持,要实现恐怕要以很复杂的办法(不知道LUA能不能抓句柄啥的╮(╯_╰)╭)=-=有空继续研究
签名被小宅喵吞掉了~~~~(>_<)~~~~
回复 支持 反对

使用道具 举报

该用户从未签到

1

主题

7

好友

389

积分

New Game

积分
389
发表于 2012-8-15 18:41:10 | 显示全部楼层
= =就是就是
签名被小宅喵吞掉了~~~~(>_<)~~~~
回复 支持 反对

使用道具 举报

该用户从未签到

2

主题

27

好友

1万

积分

第一章

积分
15197
发表于 2012-8-15 18:47:44 | 显示全部楼层
没错
签名被小宅喵吞掉了~~~~(>_<)~~~~
回复 支持 反对

使用道具 举报

该用户从未签到

7

主题

30

好友

6306

积分

序章

积分
6306
发表于 2012-8-15 18:51:16 | 显示全部楼层
播放进度、播放进度条、音量调节什么的我也没搞懂..
签名被小宅喵吞掉了~~~~(>_<)~~~~
回复 支持 反对

使用道具 举报

该用户从未签到

1

主题

6

好友

3937

积分

序章

积分
3937
发表于 2012-8-15 18:52:53 | 显示全部楼层
看看~≧▽≦)/~
签名被小宅喵吞掉了~~~~(>_<)~~~~
回复 支持 1 反对 0

使用道具 举报

该用户从未签到

1

主题

2

好友

342

积分

New Game

积分
342
发表于 2012-8-15 19:34:24 | 显示全部楼层
来学习下
签名被小宅喵吞掉了~~~~(>_<)~~~~
回复 支持 0 反对 1

使用道具 举报

该用户从未签到

17

主题

24

好友

2789

积分

Continue

积分
2789
发表于 2012-8-15 19:35:33 | 显示全部楼层
wa!!终于等到这个修正了
签名被小宅喵吞掉了~~~~(>_<)~~~~
回复 支持 反对

使用道具 举报

该用户从未签到

2

主题

53

好友

3万

积分

第二章

积分
38454
发表于 2012-8-15 19:38:20 | 显示全部楼层
终于有修正了~
签名被小宅喵吞掉了~~~~(>_<)~~~~
回复 支持 反对

使用道具 举报

该用户从未签到

1

主题

1

好友

669

积分

New Game

积分
669
发表于 2012-8-15 19:39:11 | 显示全部楼层
僕连最基础的蜂窝都没完成呢...雨滴更新不能...
签名被小宅喵吞掉了~~~~(>_<)~~~~
回复 支持 反对

使用道具 举报

该用户从未签到

5

主题

70

好友

1万

积分

第一章

积分
11247
发表于 2012-8-15 19:39:23 | 显示全部楼层
太好了!!!
签名被小宅喵吞掉了~~~~(>_<)~~~~
回复 支持 反对

使用道具 举报

该用户从未签到

0

主题

9

好友

4364

积分

懒人

积分
4364
发表于 2012-8-15 19:39:25 | 显示全部楼层
用的千千静听 可以换上下曲目 但是音量什么的……其他都调节不能……谢谢楼主修正!!!!!!!!!QAQ
签名被小宅喵吞掉了~~~~(>_<)~~~~
回复 支持 反对

使用道具 举报

该用户从未签到

1

主题

32

好友

2万

积分

第一章

积分
24312
发表于 2012-8-15 19:39:34 | 显示全部楼层
用iTunes的路过,但还是支持下LZ,辛苦了
签名被小宅喵吞掉了~~~~(>_<)~~~~
回复 支持 反对

使用道具 举报

本版积分规则

小黑屋|手机版|技术宅(基宅) ( 粤ICP备18082987号-1 | 浙公网安备 33010902001746号 )

GMT+8, 2024-5-3 12:03 , Processed in 2.282649 second(s), 37 queries , Redis On.

Copyright © 2018 技术宅社区

Powered by Discuz! X3.5

快速回复 返回顶部 返回列表