# 修改了一个 1920 的日历,可正常使用但是 有运行错误 求修正 - Rainmeter技术教程 - 雨滴社区 - Powered by Discuz!
 找回密码
 点击注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 3046|回复: 2

[技术交流] 修改了一个 1920 的日历,可正常使用但是 有运行错误 求修正

[复制链接]

签到天数: 2 天

[LV.1]初来乍到

发表于 2012-1-9 22:16:15 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?点击注册

x
本帖最后由 哎哟!不錯 于 2012-1-9 22:24 编辑

無題.png
DBank网盘附件:
【DBank网盘】 Blackline Calendar.ini (5.62K)
http://dl.dbank.com/c0nce6yyeh
  1. [Rainmeter]
  2. Update=1000
  3. DynamicWindowSize=1
  4. BackgroundMode=2
  5. SolidColor=0,0,0,0

  6. ;[Calendar]
  7. ;Meter=IMAGE
  8. ;X=0
  9. ;Y=-2
  10. ;H=80
  11. ;ImageName=back.png

  12. [cSpace]
  13. Measure=Calc
  14. Formula=FLOOR(#SCREENAREAWIDTH#/mDayCount)

  15. [BG]
  16. Meter=IMAGE
  17. SolidColor=0,0,0
  18. W=#SCREENAREAWIDTH#
  19. H=25

  20. [Metadata]
  21. Name=Blackline Calendar
  22. Config=
  23. Description=
  24. Instructions=
  25. Version=
  26. Tags=
  27. License=Only for personal use
  28. Variant=

  29. [Variables]
  30. MainText=255,255,255,255
  31. CurrentText=ff0000
  32. IndicatorWidth=50
  33. IndicatorHeight=0
  34. IndicatorColorTop=255,255,255,0
  35. IndicatorColorBot=255,255,255,0
  36. TextY=1
  37. ;Set to 1 to display both top and bottom rounded portions, 2 to show only the top, and 3 to show only the bottom.
  38. Indicator=1
  39. ;Set to 1 to dynamically center on the screen. Note that this moves the whole skin.
  40. Center=1

  41. [Move]
  42. Measure=Calc
  43. Formula=#Center#*(Move+1)
  44. IfAboveValue=10
  45. IfAboveAction=!RainmeterToggleMeasureGroup Move
  46. Group=Move

  47. [xMove]
  48. Measure=Calc
  49. Formula=(#SCREENAREAWIDTH#-#CURRENTCONFIGWIDTH#)/2
  50. IfAboveValue=0
  51. IfAboveAction=!RainmeterMove [xMove] #CURRENTCONFIGY#
  52. DynamicVariables=1
  53. Disabled=1
  54. Group=Move

  55. [msTry]
  56. Measure=Calc
  57. Formula=#CURRENTCONFIGWIDTH#
  58. DynamicVariables=1

  59. [TextStyle]
  60. FontFace=Eurostile LT
  61. FontSize=14
  62. FontColor=#MainText#
  63. AntiAlias=1
  64. H=20
  65. W=10
  66. StringAlign=Center
  67. X=[cSpace]r
  68. DynamicVariables=1
  69. Y=(#TextY#+(#Indicator#<3)*2)

  70. [mYear]
  71. ;Retreve year with century
  72. Measure=TIME
  73. Format=%Y

  74. [mMonth]
  75. ;Gets current month without leading zero. ex: 8
  76. Measure=TIME
  77. Format=%#m

  78. [mDay]
  79. ;Gets current day without leading zero. ex 8
  80. Measure=TIME
  81. Format=%#d

  82. [mDayCount]
  83. Measure=CALC
  84. Formula=((mMonth=1)||(mMonth=12)||(mMonth=8)||(mMonth=7)||(mMonth=5)||(mMonth=3)||(mMonth=10))*31+(mMonth=2)*(28+((mYear%4)=0))+((mMonth=4)||(mMonth=6)||(mMonth=9)||(mMonth=11))*30



  85. [cDay1]
  86. Meter=String
  87. MeterStyle=TextStyle
  88. Text="01"
  89. X=((#IndicatorWidth#/2+20))

  90. [cDay2]
  91. Meter=String
  92. MeterStyle=TextStyle
  93. Text="02"

  94. [cDay3]
  95. Meter=String
  96. MeterStyle=TextStyle
  97. Text="03"

  98. [cDay4]
  99. Meter=String
  100. MeterStyle=TextStyle
  101. Text="04"

  102. [cDay5]
  103. Meter=String
  104. MeterStyle=TextStyle
  105. Text="05"

  106. [cDay6]
  107. Meter=String
  108. MeterStyle=TextStyle
  109. Text="06"

  110. [cDay7]
  111. Meter=String
  112. MeterStyle=TextStyle
  113. Text="07"

  114. [cDay8]
  115. Meter=String
  116. MeterStyle=TextStyle
  117. Text="08"

  118. [cDay9]
  119. Meter=String
  120. MeterStyle=TextStyle
  121. Text="09"

  122. [cDay10]
  123. Meter=String
  124. MeterStyle=TextStyle
  125. Text="10"

  126. [cDay11]
  127. Meter=String
  128. MeterStyle=TextStyle
  129. Text="11"

  130. [cDay12]
  131. Meter=String
  132. MeterStyle=TextStyle
  133. Text="12"

  134. [cDay13]
  135. Meter=String
  136. MeterStyle=TextStyle
  137. Text="13"

  138. [cDay14]
  139. Meter=String
  140. MeterStyle=TextStyle
  141. Text="14"

  142. [cDay15]
  143. Meter=String
  144. MeterStyle=TextStyle
  145. Text="15"

  146. [cDay16]
  147. Meter=String
  148. MeterStyle=TextStyle
  149. Text="16"

  150. [cDay17]
  151. Meter=String
  152. MeterStyle=TextStyle
  153. Text="17"

  154. [cDay18]
  155. Meter=String
  156. MeterStyle=TextStyle
  157. Text="18"

  158. [cDay19]
  159. Meter=String
  160. MeterStyle=TextStyle
  161. Text="19"

  162. [cDay20]
  163. Meter=String
  164. MeterStyle=TextStyle
  165. Text="20"

  166. [cDay21]
  167. Meter=String
  168. MeterStyle=TextStyle
  169. Text="21"

  170. [cDay22]
  171. Meter=String
  172. MeterStyle=TextStyle
  173. Text="22"

  174. [cDay23]
  175. Meter=String
  176. MeterStyle=TextStyle
  177. Text="23"

  178. [cDay24]
  179. Meter=String
  180. MeterStyle=TextStyle
  181. Text="24"

  182. [cDay25]
  183. Meter=String
  184. MeterStyle=TextStyle
  185. Text="25"

  186. [cDay26]
  187. Meter=String
  188. MeterStyle=TextStyle
  189. Text="26"

  190. [cDay27]
  191. Meter=String
  192. MeterStyle=TextStyle
  193. Text="27"

  194. [cDay28]
  195. Meter=String
  196. MeterStyle=TextStyle
  197. Text="28"

  198. [cHide29]
  199. Measure=Calc
  200. Formula=mDayCount<29

  201. [cDay29]
  202. Meter=String
  203. MeterStyle=TextStyle
  204. Text="29"
  205. Hidden=[cHide29]
  206. X=(([cHide29]=0)*[cSpace])r

  207. [cHide30]
  208. Measure=Calc
  209. Formula=mDayCount<30

  210. [cDay30]
  211. Meter=String
  212. MeterStyle=TextStyle
  213. Text="30"
  214. Hidden=[cHide30]
  215. X=(([cHide30]=0)*[cSpace])r

  216. [cHide31]
  217. Measure=Calc
  218. Formula=mDayCount<31

  219. [cDay31]
  220. Meter=String
  221. MeterStyle=TextStyle
  222. Text="31"
  223. Hidden=[cHide31]
  224. X=(([cHide31]=0)*[cSpace])r

  225. [mFix]
  226. Meter=Image
  227. W=((#IndicatorWidth#/2+20))
  228. H=#IndicatorHeight#
  229. SolidColor=0,0,0,1
  230. X=r

  231. [mIndic]
  232. Meter=Image
  233. SolidColor=#IndicatorColorTop#
  234. SolidColor2=#IndicatorColorBot#
  235. GradientAngle=90
  236. ;H=16
  237. H=((#IndicatorHeight#-10)<0?0:#IndicatorHeight#-10)
  238. W=#IndicatorWidth#
  239. X=([cSpace]*([mDay]-1))
  240. Y=((#Indicator#<3)*2)
  241. DynamicVariables=1

  242. [cHideBot]
  243. Measure=Calc
  244. Formula=#Indicator#=2
  245. IfAboveValue=0
  246. IfAboveAction=!RainmeterHideMeterGroup BotRound

  247. [mLeftRound]
  248. Meter=Roundline
  249. MeasureName=cQuarterRound
  250. LineColor=#IndicatorColorBot#
  251. LineLength=5
  252. StartAngle=1.570796326795
  253. Solid=1
  254. AntiAlias=1
  255. H=10
  256. W=10
  257. Y=(-5-#TextY#)R
  258. ;X=(-(#IndicatorWidth#/2+20))r
  259. X=r
  260. Group=BotRound

  261. [mSpace]
  262. Meter=Image
  263. SolidColor=#IndicatorColorBot#
  264. H=5
  265. W=(#IndicatorWidth#-10)
  266. Y=-5R
  267. X=5r
  268. Group=BotRound

  269. [mRightRound]
  270. Meter=Roundline
  271. MeterStyle=mLeftRound
  272. StartAngle=0
  273. Y=-5r
  274. X=-5R

  275. [cHideTop]
  276. Measure=Calc
  277. Formula=#Indicator#=3
  278. IfAboveValue=0
  279. IfAboveAction=!RainmeterHideMeterGroup TopRound

  280. [mLeftRound2]
  281. Meter=Roundline
  282. MeasureName=cQuarterRound
  283. LineColor=#IndicatorColorTop#
  284. LineLength=5
  285. StartAngle=3.14159265359
  286. Solid=1
  287. AntiAlias=1
  288. H=10
  289. W=8
  290. X=([cSpace]*([mDay]-1))
  291. DynamicVariables=1
  292. Group=TopRound

  293. [mSpace2]
  294. Meter=Image
  295. SolidColor=#IndicatorColorTop#
  296. H=5
  297. W=(#IndicatorWidth#-10)
  298. X=5r
  299. Group=TopRound

  300. [mRightRound2]
  301. Meter=Roundline
  302. MeterStyle=mLeftRound2
  303. StartAngle=-1.570796326795
  304. X=-5R

  305. [cDay]
  306. Measure=Calc
  307. Formula=mDay/100
  308. Substitute="0.":""

  309. [mCurrent]
  310. Meter=string
  311. MeasureName=cDay
  312. NumOfDecimals=2
  313. MeterStyle=TextStyle
  314. FontColor=#CurrentText#
  315. ;X=((#IndicatorWidth#/2+20))r
  316. X=(([cSpace]*([mDay]-1))+((#IndicatorWidth#/2+20)))

  317. [cQuarterRound]
  318. Measure=Calc
  319. Formula=0.25
复制代码
回复

使用道具 举报

签到天数: 42 天

[LV.5]常住居民I

发表于 2012-1-9 22:28:37 | 显示全部楼层
我还是不懂代码
回复

使用道具 举报

签到天数: 15 天

[LV.4]偶尔看看III

发表于 2012-7-1 01:15:05 | 显示全部楼层
求这款日历
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点击注册

本版积分规则

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