Some small notes on your code, unrelated to your question:
1) There is a difference between the name of a variable and its value, so CurrentPage is the name of the current page variable, while #CurrentPage# is its value. You should modify your code accordingly, for example:and so on.
2) You need to enable dynamic variables in the [sections] where you use variables whose values change while the skin is loaded, by adding a DynamicVariables=1 line to those sections (e.g. to [NextPageButton] and so on).
3) It makes no sense, in any Rainmeter skin, to set or update anything before a !Refresh bang, since refreshing a skin will re-read and reload that skin entirely and all changes made to it will be lost and reverted to their initial values after such a refresh. What you need instead is updating the related stuff (or, the entire skin) and redrawing it, so that the said change is reflected immediately in the skin.
So, instead of, say:it should be something like:and so on.
4) If by any chance you need to "remember" the value of some variable after refreshing a skin, you'd need to also physically write the value of that variable to the skin file (or whatever .inc file you have that variable into) on your drive, by using the !WriteKeyValue bang, e.g.:Reference: https://docs.rainmeter.net/manual/variables/
1) There is a difference between the name of a variable and its value, so CurrentPage is the name of the current page variable, while #CurrentPage# is its value. You should modify your code accordingly, for example:
Code:
LeftMouseUpAction=[!SetVariable CurrentPage (#CurrentPage#+1)][!UpdateMeter ImageMeter][!Refresh]
2) You need to enable dynamic variables in the [sections] where you use variables whose values change while the skin is loaded, by adding a DynamicVariables=1 line to those sections (e.g. to [NextPageButton] and so on).
3) It makes no sense, in any Rainmeter skin, to set or update anything before a !Refresh bang, since refreshing a skin will re-read and reload that skin entirely and all changes made to it will be lost and reverted to their initial values after such a refresh. What you need instead is updating the related stuff (or, the entire skin) and redrawing it, so that the said change is reflected immediately in the skin.
So, instead of, say:
Code:
LeftMouseUpAction=[!SetVariable CurrentPage (CurrentPage+1)][!UpdateMeter ImageMeter][!Refresh]
Code:
LeftMouseUpAction=[!SetVariable CurrentPage (#CurrentPage#+1)][!UpdateMeter ImageMeter][!Update]
4) If by any chance you need to "remember" the value of some variable after refreshing a skin, you'd need to also physically write the value of that variable to the skin file (or whatever .inc file you have that variable into) on your drive, by using the !WriteKeyValue bang, e.g.:
Code:
LeftMouseUpAction=[!SetVariable CurrentPage (#CurrentPage#+1)][!WriteKeyValue Variables CurrentPage "(#CurrentPage#+1)"][!UpdateMeter ImageMeter][!Update]
Statistics: Posted by Yincognito — Today, 10:52 am