I've been banging my head over this for a few months now to no avail, Please load up (a small portion of) my skin to see what I'm on about. Down is the total internet usage for downloading you have used, Session is initially supposed to show same stats as Down and reset to zero when you leftclick the skin. Please help me figure out whats wrong...
utg001 wrote:Please help me figure out whats wrong...
usage and sss (used into the [MeasureNetSession] measure) are variables and unlike in programming languages, in Rainmeter the variables have to be included between # signs. So replace the Formula option of this measure, with: Formula=[color=#FF0000]#[/color]usage[color=#FF0000]#[/color]-[color=#FF0000]#[/color]sss[color=#FF0000]#[/color].
Also, because the sss variable is set up by a !SetVariable (!RainmeterSetVariable - see below) bang, the measure using it should have to have added a DynamicVariables=1 option. So, add it to the [MeasureNetSession] measure.
And a few more tips:
The !Rainmeter... bang prefix is deprecated. Remove it. Eg the ![color=#FF0000]Rainmeter[/color]SetVariable sss usage bang (incorrectly - see below) used into the [Rainmeter] section should have to be !SetVariable sss usage (but this is still not complete - see below).
Due to the same reason as above, the usage variable used into the above LeftMouseDownAction should have to be included into # signs: LeftMouseDownAction=!SetVariable sss #usage#.
But this is still not enough: #usage# is in fact the name of a measure, which returns a numeric value. This can be used normally only in Formula or in IfCondition oiptions. So, there is one more thing you should have to add to the above option - brackets: LeftMouseDownAction=[!SetVariable sss "[#usage#]"]. Here I also added quotations and brackets around the whole bang - although the brackets aren't absolutely needed in such cases (when there is one single bang), it seems a good habit to use them.
Usually instead of LeftMouseDownAction option you should have to use LeftMouseUpAction. Here you can find out why.
In spite of all these, I'm not sure the above LeftMouseDownAction (or LeftMouseUpAction option will always work, because as it is written, the dynamic variables would be needed, but they can't be used into the [Rainmeter] section.
Why have you set the Update to 100? I think the default Update=1000 would be better and enough. Usually if for any reason a lower Update isn't required, the default value is better.
Thank you so much for your time, I was trying to make my own skin because I couldn't find any specific to my taste. The update time is set to 100 because I have some graphs in my skin that look bad with 1s update time. I'm happy with my skin -for now- perhaps I'll add more features later on. Please do check it out and see if there is room for improvements...
utg001 wrote:The update time is set to 100 because I have some graphs in my skin that look bad with 1s update time.
I'm not sure where are they, I couldn't find them, but anyway, I'd add a DefaultUpdateDivider=10 to the [Rainmeter] section. Due to this option, each measure and meter would be updated once per second (Update x DefaultUpdateDivider = 100 x 10 = 1000 ms = 1 s). Then I'd add the UpdateDivider=1 to each measure / meter involved into the animation. This way these sections would be updated with the set update period of the skin, of a tenth of second (Update x UpdateDivider = 100 x 1 = 100 ms).
There's no need to update most measures and meters so often, so you can save this way some resources.