evoracing Δημοσ. 29 Ιουνίου 2013 Δημοσ. 29 Ιουνίου 2013 Καλησπέρα... Καταρχήν να πω ότι δεν έχω ηδέα από προγραμματισμό. Θέλω να μου πείτε, έχω κατεβάσει το Rainmeter και προσπαθώ να φτιάξω το δικό μου style πειράζοντας τα αρχικά. Όλα τα φτειάχνω μέσω το note (γιατί μόνο αυτό ξέρω ). Οι εντολές είναι ακριβός έτσι: ; Lines starting ; (semicolons) are commented out. ; That is, they do not affect the code and are here for demonstration purposes only. ; ---------------------------------- [Rainmeter] ; This section contains general settings that can be used to change how Rainmeter behaves. Author=poiru AppVersion=2003000 Update=1000 Background=#@#Background.png ; #@# is equal to Rainmeter\Skins\illustro\@Resources BackgroundMode=3 BackgroundMargins=0,34,0,14 [Metadata] ; Contains basic information of the skin. Description=Displays basic system stats. License=Creative Commons BY-NC-SA 3.0 Version=1.0.0 [Variables] ; Variables declared here can be used later on between two # characters (e.g. #MyVariable#). fontName=Trebuchet MS textSize=10 colorBar=235,170,0,255 colorText=255,255,255,205 ; ---------------------------------- ; MEASURES return some kind of value ; ---------------------------------- [measureCPU] ; This measure returns the average CPU load between all cores. Measure=CPU Processor=0 [measureRAM] ; Returns the amount of RAM used in bytes. Measure=PhysicalMemory UpdateDivider=20 ; UpdateDivider sets the rate at which the value of the measure is updated. It is ; calculated as follows: UpdateDivider x Update. In this case, Update is set to ; 1000 milliseconds (in the [Rainmeter] section). 1000 x 20 = 20000 ms or 20 seconds. [measureSWAP] ; Returns the amount of SWAP (pagefile) used in bytes. Measure=SWAPMemory UpdateDivider=20 ; ---------------------------------- ; 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 [styleRightText] StringAlign=RIGHT StringCase=NONE StringStyle=BOLD StringEffect=SHADOW FontEffectColor=0,0,0,20 FontColor=#colorText# FontFace=#fontName# FontSize=#textSize# AntiAlias=1 ClipString=1 [styleBar] BarColor=#colorBar# BarOrientation=HORIZONTAL SolidColor=255,255,255,15 ; ---------------------------------- ; METERS display images, text, bars, etc. ; ---------------------------------- [meterTitle] Meter=STRING MeterStyle=styleTitle ; Using MeterStyle=styleTitle will basically "copy" the ; contents of the [styleTitle] section here during runtime. X=35 Y=12 W=190 H=18 Text="System" ; Even though the text is set to System, Rainmeter will display ; it as SYSTEM, because styleTitle contains StringCase=UPPER. LeftMouseUpAction=!Execute ["taskmgr.exe"] ; Left-clicking this meter will launch taskmgr.exe (the Task Manager). ToolTipText="Open Task Manager" ; Hovering over this meter will display a tooltip with the text above. [meterLabelCPU] Meter=STRING MeterStyle=styleLeftText X=10 Y=40 W=190 H=14 Text="CPU Usage" [meterValueCPU] Meter=STRING MeterStyle=styleRightText MeasureName=measureCPU X=200 Y=0r ; r stands for relative. In this case, the Y postition of meterValueCPU is 0 pixels ; below the Y value of the previous meter (i.e it's the same as in meterLabelCPU). W=190 H=14 Text="%1%" ; %1 stands for the value of MeasureName (measureCPU in this case). [meterBarCPU] Meter=BAR MeterStyle=styleBar MeasureName=measureCPU X=10 Y=55 W=190 H=2 [meterLabelRAM] Meter=STRING MeterStyle=styleLeftText X=10 Y=65 W=190 H=14 Text="RAM Usage" [meterValueRAM] Meter=STRING MeterStyle=styleRightText MeasureName=measureRAM X=200 Y=0r W=190 H=14 Text="%1%" Percentual=1 ; Percentual=1 needs to be added her because measureRAM returns the amount ; of RAM used in bytes. Using Percentual=1 will convert that into a percentual value. [meterBarRAM] Meter=BAR MeterStyle=styleBar MeasureName=measureRAM X=10 Y=82 W=190 H=2 [meterLabelSWAP] Meter=STRING MeterStyle=styleLeftText X=10 Y=90 W=190 H=14 Text="SWAP Usage" [meterValueSWAP] Meter=STRING MeterStyle=styleRightText MeasureName=measureSWAP X=200 Y=0r W=190 H=14 Text="%1%" Percentual=1 [meterBarSWAP] Meter=BAR MeterStyle=styleBar MeasureName=measureSWAP X=10 Y=107 W=190 H=2 Θέλω να μου πείτε τι μπορώ να κάνω για να προσθέσω και τα temps του cpu και μετά (δεν με νοιάζει και πολύ αυτό) των HDD
evoracing Δημοσ. 29 Ιουνίου 2013 Μέλος Δημοσ. 29 Ιουνίου 2013 Έχω βάλει (τις βρήκα μέσω άλλων) αυτές τις εντολές απλά αυτά που έβαλα είναι μόνο για να δείξει τα γράμματα και την μπάρα. Τώρα λείπει (νομίζω) μόνο η εντολή για το που να βρει τα temp [MeasureMaxTemp] Measure=Plugin Plugin=CoreTemp CoreTempType=MaxTemperature [MeasureCore1Temp] Measure=Plugin Plugin=CoreTemp CoreTempType=Temperature CoreTempIndex=0 [MeterMaxTemp] Meter=STRING MeterStyle=styleLeftText MeasureName=MeasureMaxTemp X=10 Y=254 W=200 H=20 FontColor=255,255,255,200 Text="CPU Temp: %1°C" [meterBarCore1CPU] Meter=BAR MeterStyle=styleBar MeasureName=MeasureCore1Temp X=10 Y=274 W=1262 H=2
evoracing Δημοσ. 29 Ιουνίου 2013 Μέλος Δημοσ. 29 Ιουνίου 2013 Βρήκα στο site αυτό αλλά πάλη δεν δίνει τα temphttp://docs.rainmeter.net/manual/plugins/coretemp
Προτεινόμενες αναρτήσεις
Δημιουργήστε ένα λογαριασμό ή συνδεθείτε για να σχολιάσετε
Πρέπει να είστε μέλος για να αφήσετε σχόλιο
Δημιουργία λογαριασμού
Εγγραφείτε με νέο λογαριασμό στην κοινότητα μας. Είναι πανεύκολο!
Δημιουργία νέου λογαριασμούΣύνδεση
Έχετε ήδη λογαριασμό; Συνδεθείτε εδώ.
Συνδεθείτε τώρα