It is currently April 27th, 2024, 5:37 am

How to bind?

General topics related to Rainmeter.
User avatar
maestro-sky
Posts: 23
Joined: January 25th, 2011, 7:19 am

How to bind?

Post by maestro-sky »

Good day! Is it possible to bind if the skin shows a picture with a name that starts 1.png measure that is hidden?
Example of weather:

Code: Select all

If you see a picture of a Thunderstorm, rain.png
  then it automatically starts

[ImageNumberCalc]
Measure = Calc
Formula = Counter% 10

[ImageMeter]
Meter = Image
ImageName =..... \ [ImageNumberCalc]. Png
X = 6
Y = 0
W = 190
H = 200
Hidden = 1
DynamicVariables = 1
Last edited by maestro-sky on June 27th, 2011, 4:46 pm, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: How to bind?

Post by jsmorley »

You are going to have to elaborate and be a bit more clear about what you are trying to do.
User avatar
maestro-sky
Posts: 23
Joined: January 25th, 2011, 7:19 am

Re: How to bind?

Post by maestro-sky »

jsmorley wrote:You are going to have to elaborate and be a bit more clear about what you are trying to do.
It is used to display icons in the skin of weather.
Last edited by maestro-sky on June 28th, 2011, 8:22 am, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: How to bind?

Post by jsmorley »

Before I even attempt to dig into this, let me see if I understand.

You are using WebParser to get the "Alt" value of an icon displayed on a weather site for the forecasted conditions. So it will return something like "rain" or "fair" or "cloudy" or whatever.

Then you want to use that returned value, for instance "rain", and have Rainmeter display an animation consisting of a series of images with the format 1.png ... 10.png or however many you have to create the animation. Presumably you will have image folders called \rain with 1.png ... 10.png and \cloudy also with different images but still named 1.png ... 10.png.

So assuming we can get a decent animation working, which animation is displayed is really driven by causing that "Alt" value of "rain" (for instance) to change the image folder used in an image meter to dynamically change to \rain (again, for instance).

Is that about right?
User avatar
maestro-sky
Posts: 23
Joined: January 25th, 2011, 7:19 am

Re: How to bind?

Post by maestro-sky »

Yes you are right, I found several folders of rain, snow, clouds with embedded pictures in them-1.png 10.png shows the image when the rain then he pulls up the folder with the pictures embedded in it rain. That's just how to do it, I did not understand. Although it is possible to do it at all?
Last edited by maestro-sky on June 28th, 2011, 8:21 am, edited 1 time in total.
User avatar
maestro-sky
Posts: 23
Joined: January 25th, 2011, 7:19 am

Re: How to bind?

Post by maestro-sky »

All Thank you all, figured out how to connect with the right weather display animation.