Rainmeter will remember the position any time you load this skin in the future. From the Manage dialog, find the Clock.ini entry in the list and click on the Load button on the upper right.ĭrag the skin anywhere on the screen you like. So let's load our new skin and take a look at where we stand. What that means is that this meter will display the value returned by the measure on each Update. The key to using measures and meters together is using the MeasureName option to "bind" the measure to the meter. This way we won't have to repeat them in every meter we create. First, we are going to use the MeterStyle option by creating a section to set up some common string formatting options. So let's add a meter to display this value we obtained with our measure. We are using a format of "hour in 12 hour time:minutes" for this measure. ĭo check out the manual entry for the Time measure to see how that Format option is used to obtain the time information you want. Now let's add our first Measure, in this case a Time measure to retrieve information about the system time from your computer. In addition, we will be using some more features of the String meter and dip our toes a little deeper into using action options and Bangs in your skin.įirst, as we did in our earlier tutorial, let's add the section to control the Update speed of the skin. Measures are used to obtain some information in Rainmeter, from your computer's system, text files, web sites, and other sources. This tutorial will introduce using Measures in a skin. Don't load the skin just yet, we need to add some code first. This will open the new skin file in your default text editor. Find Clock.ini in the list, right-click it and say "Edit". Click on the Refresh all button on the bottom left, and you should see your new Tutorials / Clock config in the list. Now, left-click the Rainmeter icon in the Windows notification area on your taskbar, to open the Manage dialog. In Windows explorer, you can simply right-click in the folder and say "New / Text document". In that Tutorials\Clock folder, create a new empty text file. Under Skins\Tutorials\ create a new folder called Clock. We are going to add a new folder under that one to create our new skin.
%1 stands for the value of MeasureName (measureTime2 in this case).In the previous tutorial, you should have already created a folder under Skins called Tutorials. %1 stands for the value of MeasureName1 (measureTime1 in this case). That is, they do not affect the code and are here for demonstration purposes only. You can incorporate the two different clocks in the same skin, it doesn't need to be a second one (except if there is a reason to, for example if you want to position it somewhere else).Ĭode: Select all Lines starting (semicolons) are commented out. Its StringAlign needs to change to Right. The same needs to be done for styleRightTitle. If we change the StringAlign setting to Left, the string "England" is shown correctly. So when you use this meterstyle to a meter with a X=10 value, your text is cropped of the Rainmeter window, because it starts at X=10 and goes to the right. Your styleLeftTitle is using StringAlign=Right, which aligns the text in the opposite way of what your style is named. They aren't required if you want to display static text. MeasureNames are used when you want to display the value of a measure in a meter. The other problem is that you have specified a MeasureName that doesn't exist (Location) in your Location meter. It is nice and handy to give it a name that represents its content. So, you can change that to or or whatever else you want. ini standard demands that each section must have a unique name. Firstly, you have two sections with the same name. below the Y value of the previous meter (i.e it's the same as in meterLabelCPU). In this case, the Y postition of meterValueCPU is 0 pixels %1 stands for the value of MeasureName (measureTime in this case). contents of the section here during runtime. Using MeterStyle=styleTitle will basically "copy" the Meters using styleLeftText will be left-aligned. Refer to the Rainmeter manual for other format codes.
For a 12-hour clock, change the Format option above to: %I:%M %p This measure returns the time in a 24-hour format (i.e. Variables declared here can be used later on between two # characters (e.g. This section contains general settings that can be used to change how Rainmeter is equal to Contains basic information of the skin.ĭescription=Displays the current date and time.