Wifi and Battery meters are a staple of laptop users and are incredibly easy to create.
ImageCrop, ImageTint, and all of the other Image related features are a very useful feature of Rainmeter opening a whole new method of creating dynamic images. We're also going to use some neat tricks with DyanamicVariables, Substitution, and Conditional Statements to make the battery indicator change color and blink when the battery is low.
Below is our example skin.Note:
The big reason we're using ImageCrop instead of a Bar meter is that when using an Image with a Bar meter, the Image cannot be scaled.
We need to start by grabbing the image we're going to use.
It's grey because we're going to use ImageTint to change it's color in Rainmeter.
Lets start our code by setting up the basics and some Variables that we're going to use later on.
OrigHW is the original Height/Width of the image. We're using a 100x100 image so we only need to define one variable here.