It is currently February 29th, 2020, 4:09 am

help me, how to make MouseScrollAction

Help with creating, editing & fixing problems with skins
Bobyyy
Posts: 2
Joined: February 9th, 2020, 7:38 am

help me, how to make MouseScrollAction

Post by Bobyyy »

I want to say somethings first, i am vietnamese and i know a little english but no good, i try to find how to make MouseScrollAction, but so hard.
I tried many ways
mak_kawa
Posts: 510
Joined: December 30th, 2015, 9:47 am

Re: help me, how to make MouseScrollAction

Post by mak_kawa »

Hi Bobyyy

Following is a simple code sample for the MouseScroll actions.

Code: Select all

[Rainmeter]
Update=1000

[Variables]
ChangingDigit=10

[DigitMeter]
Meter=String
SolidColor=192,192,192,192
FontSize=48
Text=#ChangingDigit#
MouseScrollUpAction=[!SetVariable ChangingDigit (#ChangingDigit#+1)][!UpdateMeter DigitMeter][!Redraw]
MouseScrollDownAction=[!SetVariable ChangingDigit (#ChangingDigit#-1)][!UpdateMeter DigitMeter][!Redraw]
DynamicVariables=1
Copy/paste this code to text editor, and save as ini file in your Rainmeter skin folder, and load it from Rainmeter Manage dialog. Mouse scroll-up increments the digit and scroll-down decrements.
Bobyyy
Posts: 2
Joined: February 9th, 2020, 7:38 am

Re: help me, how to make MouseScrollAction

Post by Bobyyy »

I did it and i succeed. Thank you for your help and have a good day, bro