thx for your help
Code: Select all
[Rainmeter]
Author=blackjack550
AppVersion=2.0
Update=1000
[Metadata]
Description=The stock for kechuang.
License=
Version=1.0.0
[Variables]
fontName=Tahoma
textSize=9
; SecondVar=!SetVariable
SecondVar="399006"
; fontName=Trebuchet MS
; textSize=8
colorBar=235,170,0,255
colorText=255,255,255,205
colordown=0,255,0,205
colorup=255,0,0,205
update.Spd=15
Quote=http://hq.sinajs.cn/list=s_sz#SecondVar#
;输入框
[measureInput]
; The InputText.dll plugin has special powers: it allows user input.
; However, it's not the easiest way to start learning Rainmeter. Get a
; hold of the basics, and then check out the manual entry for InputText.
Measure=Plugin
Plugin=InputText.dll
SolidColor=0,64,128,180
StringAlign=Left
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
X=10
Y=38
W=120
H=17
FocusDismiss=1
DefaultValue=""
; Command1=["http://hq.sinajs.cn/list=s_sz$UserInput$"]
Command1=[!SetVariable SecondVar "$UserInput$"]
; Command2=!Refresh #SecondVar#
UpdateDivider=5
[InfoStock1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=#Quote#
RegExp="(?siU)var hq_str_(.*)="(.*),(.*),(.*),(.*),(.*),(.*)";"
CodePage=936
StringIndex=7
UpdateRate=#update.Spd#
[StockName]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[InfoStock1]
StringIndex=2
[PriceNow]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[InfoStock1]
StringIndex=3
[Change]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[InfoStock1]
StringIndex=4
[ChangeNet]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[InfoStock1]
StringIndex=5
[StockColorinfo]
Measure=Calc
Formula=Change
IfAboveValue=0
IfAboveAction=!Execute [!SetOption "LabelLastSale" "FontColor" "#colorup#"][!SetOption "LabelChange" "FontColor" "#colorup#"][!SetOption "LabelChangeNet" "FontColor" "#colorup#"][!SetOption "StockBar" "BarColor" "#colorup#"][!SetOption "StockBar" "Flip" "0"][!SetOption "LabelUpSymbols" "FontColor" "#colorup#"][!SetOption "LabelUpSymbols" "Text" "Ç"]
; ----------------------------------
; ----------------------------------
; STYLES are used to "centralize" options
; ----------------------------------
[styleTitle]
StringAlign=Center
StringCase=Upper
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontName#
FontSize=10
AntiAlias=1
ClipString=1
[styleLeftText]
StringAlign=Left
; Meters using styleLeftText will be left-aligned.
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1
[styleSeperator]
SolidColor=255,255,255,15
[StyleStockName]
StringAlign=LEFT
StringCase=UPPER
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,205
FontColor=#colorText#
FontFace=微软雅黑
FontSize=12
AntiAlias=1
ClipString=1
[StyleChange]
StringAlign=LEFT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
;FontColor=#ColorStock#
FontEffectColor=0,0,0,205
FontFace=Swis721 Blk BT
FontSize=10
AntiAlias=1
ClipString=1
[styleBar]
BarOrientation=VERTICAL
SolidColor=255,255,255,5
[StyleDate]
StringAlign=LEFT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,205
FontColor=255,255,255,205
FontFace=#fontName#
FontSize=7
AntiAlias=1
ClipString=1
[StyleSymbols]
StringAlign=LEFT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,255
FontColor=195,195,195,205
FontFace=Wingdings 3
FontSize=14
AntiAlias=1
ClipString=1
; ----------------------------------
; METERS display images, text, bars, etc.
; ----------------------------------
[meterBackground]
Meter=IMAGE
X=0
Y=0
W=140
H=170
SolidColor=0,128,255,180
SolidColor2=0,64,128,150
; [Symbols]
; Meter=STRING
; MeterStyle=StyleSymbols
; text="P"
; X=5
; Y=125
; W=50
; H=30
;LeftMouseDownAction=!ActivateConfig "STOCK_CN" "stock_sh.ini"
[LabelStockName]
Meter=STRING
MeterStyle=StyleStockName
MeasureName=StockName
X=10
Y=80
W=80
H=50
[LabelLastSale]
Meter=STRING
MeterStyle=StyleStockName
MeasureName=PriceNow
X=40
Y=130
W=100
H=38
FontSize=15
FontColor=#colordown#
FontFace=Swis721 Blk BT
NumOfDecimals=2
[LabelChange]
Meter=STRING
MeterStyle=StyleChange
MeasureName=Change
X=20
Y=100
W=120
H=20
FontColor=#colordown#
NumOfDecimals=2
Text=振幅:%1%
[LabelChangeNet]
Meter=STRING
MeterStyle=StyleChange
MeasureName=ChangeNet
X=20
Y=115
W=100
H=20
FontColor=#colordown#
NumOfDecimals=2
Text="涨跌幅:%1%"
[StockBar]
Meter=BAR
MeterStyle=styleBar
MeasureName=measureChange
X=55
Y=135
W=5
H=40
BarColor=#colordown#
Flip=1
[LabelUpSymbols]
Meter=STRING
MeterStyle=StyleSymbols
X=20
Y=135
W=60
H=75
Text="È"
FontSize=14
FontColor=#colordown#
;------------------------------------------------------------
[meterTitle]
Meter=String
MeterStyle=styleTitle
; Using MeterStyle=styleTitle will basically "copy" the
; contents of the [styleTitle] section here during runtime.
X=70
Y=12
W=100
H=18
Text=创业板股票
[meterSearch]
Meter=String
MeterStyle=styleLeftText
X=10
Y=40
W=100
H=14
Text=股票编码...
LeftMouseUpAction=[!CommandMeasure measureInput "ExecuteBatch 1-2"]
[meterSeperator]
Meter=Image
MeterStyle=styleSeperator
X=10
Y=52
W=60
H=1
[MeterSetVariable]
Meter=String
X=5
Y=60
FontSize=10
FontColor=255,255,255,255
AntiAlias=1
DynamicVariables=1
Text=股票代码:#SecondVar#