It is currently April 19th, 2024, 6:34 am

Changing the function of a Mouse Action

Get help with creating, editing & fixing problems with skins
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Changing the function of a Mouse Action

Post by sl23 »

I have a list, which I would like to be able to switch between using MouseOverAction and LeftMouseUpAction.
I have both in the meters, so if I deactivate the MouseOverAction, it will allow the LeftMouseUpAction to work.

My problem is using !WriteKeyValue is writing the wrong thing. I have two buttons, one selects L-click the other selects Hover. This is used to activate a preview function. So you either L-click or Hover an icon to preview it.

This is result I want:
Button1 (L-click Selection)...

Code: Select all

MouseOverAction=[!SetVariable Preview "[##CURRENTSECTION#]"] [!UpdateMeterGroup Preview]  [!SetOption #CURRENTSECTION# FontColor "#Color2#"] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
Button2 (Hover Selection)...

Code: Select all

Button2Preview=[!SetOption #CURRENTSECTION# FontColor ""] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
But what I am getting is this:
Button1 (L-click Selection)...

Code: Select all

MouseOverAction=[!SetVariable Preview "[#Variables]"] [!UpdateMeterGroup Preview]  [!SetOption Variables FontColor "128,255,0"] [!UpdateMeter Variables] [!Redraw]
And this...
Button2 (Hover Selection)...

Code: Select all

MouseLeaveAction=[!SetVariable Preview ""] [!UpdateMeterGroup Preview]  [!SetOption #CURRENTSECTION# FontColor ""] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
Here's the Button code and the affected meter:

Code: Select all

========================================
; STYLES
========================================
[sAllIcons]
FontFace=Segoe Fluent Icons
FontSize=14
FontColor=#Color1#
AntiAlias=1
Text=[##CURRENTSECTION#]
LeftMouseUpAction=[!SetVariable Preview [##CURRENTSECTION#]] [!UpdateMeterGroup Preview]  [!Redraw]
MouseOverAction=[!SetOption Variables FontColor ""] [!UpdateMeter Variables] [!Redraw]
MouseLeaveAction=[!SetVariable Preview ""] [!UpdateMeterGroup Preview]  [!SetOption #CURRENTSECTION# FontColor ""] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
DynamicVariables=1
X=185
Y=5R


========================================
; Icon Click
========================================
[ButtonBG]
Meter=Shape
Shape=Rectangle 0,0,50,20,10 | Fill Color 0,0,0,1] | StrokeWidth 2 | StrokeColor #Color5#
X=60
Y=475

[sButton]
Shape=Rectangle 0,0,10,10,50 | Extend FillAlpha | StrokeWidth 2 | Extend StrokeAlpha
FillAlpha=FillColor #Color5#
StrokeAlpha=StrokeColor 0,0,0,1

MouseOverAction=[!SetOption #CURRENTSECTION# StrokeAlpha "StrokeColor #Color3#"] [!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# StrokeAlpha ""] [!UpdateMeter *] [!Redraw]
 
ToolTipText=[##CURRENTSECTION#Name]

DynamicVariables=1
Group=Button
UpdateDivider=-1
X=20r
Y=r

[Button1]
Meter=Shape
MeterStyle=sButton
LeftMouseUpAction=[!SetOptionGroup Button FillAlpha "FillColor #Color5#"][!SetOption #CURRENTSECTION# FillAlpha "FillColor #Color2#"][!WriteKeyValue sAllIcons MouseOverAction [##CURRENTSECTION#Preview] "#@#Meters.inc"] [!UpdateMeter *][!Redraw]
X=10r
Y=5r

[Button2]
Meter=Shape
MeterStyle=sButton
LeftMouseUpAction=[!SetOptionGroup Button FillAlpha "FillColor #Color5#"][!SetOption #CURRENTSECTION# FillAlpha "FillColor #Color2#"][!WriteKeyValue sAllIcons MouseOverAction [##CURRENTSECTION#Preview] "#@#Meters.inc"] [!UpdateMeter *][!Redraw]
Btw, I know I need to Refresh after using WriteKeyValue ;-)
- MuLab -
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5391
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Changing the function of a Mouse Action

Post by eclectic-tech »

sl23 wrote: August 30th, 2021, 9:29 pm I have a list, which I would like to be able to switch between using MouseOverAction and LeftMouseUpAction.
I have both in the meters, so if I deactivate the MouseOverAction, it will allow the LeftMouseUpAction to work.

My problem is using !WriteKeyValue is writing the wrong thing. I have two buttons, one selects L-click the other selects Hover. This is used to activate a preview function. So you either L-click or Hover an icon to preview it.
...
Btw, I know I need to Refresh after using WriteKeyValue ;-)
Let's first fix all the typo's:

Button1 (L-click Selection)
MouseOverAction=[!SetVariable Preview "[#Variables]"] [!UpdateMeterGroup Preview] [!SetOption Variables FontColor "128,255,0"] [!UpdateMeter Variables] [!Redraw]
You have a variable named 'Variable' that you set 'Preview' equal to, then you are trying to set an option in the [Variables] section for FontColor; when you should just use !SetVariable. And then you say to update a meter named [Variables] which can't possibly work; you can't have meter named [Variables]!

What is [##CURRENTSECTION#]? Only need 1 # at each end. If you are using the nested version, it is [#CurrentSection].

In your shape meters:
FillAlpha=FillColor #Color5# should be FillAlpha=Fill Color #Color5# (there is a space after Fill).
StrokeAlpha=StrokeColor 0,0,0,1 should be StrokeAlpha=Stroke Color 0,0,0,1 (there is a space after Stroke).

What is [##CURRENTSECTION#Preview]? Do you mean [#CURRENTSECTION#Preview] or If you wanted a nested variable, it would be [#[#CURRENTSECTION#]Preview]

And I don't understand when you say you are getting a left-click action with a mouseover or vica-versa; a mouseover will never fire a left-click action.

Perhaps someone who has a working copy of your skin can help...
Judian81
Posts: 180
Joined: May 6th, 2021, 2:57 pm

Re: Changing the function of a Mouse Action

Post by Judian81 »

User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Changing the function of a Mouse Action

Post by sl23 »

Thanks for taking a look.

I'm just getting Variables, but Nested Variables I'm lost on. I've tried reading up on it, but it took me a long time to get the use of Variables in the first place! :lol:

Here's a skin package. It's rather late here so I'll leave it for you to look at.
SegoeIcons_2021.8.31.rmskin

Btw, I had removed all the code for the buttons as it was confusing the hell out of me! :oops:

Ta very much. :D
Last edited by sl23 on August 31st, 2021, 4:47 pm, edited 1 time in total.
- MuLab -
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5391
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Changing the function of a Mouse Action

Post by eclectic-tech »

sl23 wrote: August 30th, 2021, 11:24 pm ... Btw, I had removed all the code for the buttons as it was confusing the hell out of me! :oops:
Some of that code was confusing the heck out of me too! :lol:

Yes, I understand it takes time to learn when and where nesting can be helpful. :great:

I am pretty busy this week, but if I find some time I will look at your code. Others may be able to help before I can, but isolating which mouse action is available should be able to be done using mouse action bangs.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5391
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Changing the function of a Mouse Action

Post by eclectic-tech »

What do you want the actions on the icons to do?
That will determine MouseOverAction(s), MouseLeaveAction(s), and LeftMouseUpAction(s)...

Right now they are highlighted in green on MouseOver.
Previewed and also changing color to orange on LeftMouseUpAction.
Changing to 'white' when another icon is hovered.

So what do you want to see changed?
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Changing the function of a Mouse Action

Post by sl23 »

I'm glad it's not just me being confused by that code then! :rofl:

No problem if you're busy, we all have lives outside Rainmeter forums! Except me it seems at the moment! :oops: :D

Ok so the aim is that when I hover the icons in the list on the right, they change from white to green, Colour1 to colour2 and change back on mouse leave.

But also, when the icon is clicked, it stays orange, colour4, for easy location. Clicking a second icon changes the first back to white and the second to orange.

The problem, is that when you click am icon to turn it orange, the mouse leave action turns it white again. I've had this issue many times over the years, but had to choose one or the other. I just can't figure a way around it. Now, knowing a little more about the use of variables, I thought I'd see if I could solve it, but it seems not! I thought there may be a way to adjust a variable depending on the action or something but my brain can't get around the confusing mess I've created! :rofl:

Hope that clears some confusion? :thumbup:
- MuLab -
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5391
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Changing the function of a Mouse Action

Post by eclectic-tech »

Here is your Meters.inc file with these changes:
I added the style 'sHighlightList' to all icon meters (you only had the first 4 set).
Added the MouseLeaveAction to 'sHighlightList' style
Added mouse Disable/Enable bangs to 'sAlllIcons' style. This was the main change to let you keep the icon orange when clicked by disabling hover actions for the current section. When another icon is clicked, hover actions are enabled for all icons, and the current icon colored and hover disabled.
fluent.gif

Code: Select all

;Ok so the aim is that when I hover the icons in the list on the right, they change from white to green, Colour1 to colour2 and change back on mouse leave.

;But also, when the icon is clicked, it stays orange, colour4, for easy location. Clicking a second icon changes the first back to white and the second to orange.
========================================
; STYLES
========================================
[sAllIcons]
FontFace=Segoe Fluent Icons
FontSize=14
FontColor=#Color1#
AntiAlias=1
Text=[##CURRENTSECTION#]
LeftMouseUpAction=[!EnableMouseAction * "MouseOverAction|MouseLeaveAction"] [!SetVariable Preview [##CURRENTSECTION#]] [!SetOptionGroup Preview FontColor "#Color1#"] [!UpdateMeterGroup Preview] [!SetOption #CURRENTSECTION# FontColor "#Color4#"] [!UpdateMeter #CURRENTSECTION#] [!Redraw] [!DisableMouseAction #CurrentSection# "MouseOverAction|MouseLeaveAction"]
DynamicVariables=1
X=185
Y=5R

[sHighlightList]
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"] [!UpdateMeter #CURRENTSECTION#] [!Redraw]

[sAllText]
FontFace=Trebuchet MS
FontSize=9
FontColor=#Color1#
AntiAlias=1
Text=[##CURRENTSECTION#]
UpdateDivider=-1
X=15R
Y=3r

[sTitle]
StringStyle=Bold
FontSize=12
FontColor=#Color3#
Text=#CURRENTSECTION#
UpdateDivider=-1

[sContents]
FontSize=10
Text=#CURRENTSECTION#
LeftMouseUpAction=[!ActivateConfig "SegoeFluentIcons" "#CURRENTSECTION#.ini"]
RightMouseUpAction=["#SKINSPATH#\SegoeFluentIcons\#CURRENTSECTION#.ini"]
DynamicVariables=1
UpdateDivider=-1
X=r
Y=2R

[sPreview]
StringAlign=CenterCenter
FontFace=Segoe Fluent Icons
FontColor=#Color1#
Text=#Preview#
AntiAlias=1
Group=Preview
DynamicVariables=1
UpdateDivider=-1
X=20R
Y=r

[sLink]
FontColor=#Color6#
FontSize=9
Text=#CURRENTSECTION#
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color4#"] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color6#"] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
DynamicVariables=1
X=r
Y=2R

[sHighlight]
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor ""] [!UpdateMeter #CURRENTSECTION#] [!Redraw]


========================================
; Background
========================================
[Background]
Meter=Shape
Shape=Rectangle 0,0,400,520,20 | Fill Color 0,0,0,200 | StrokeWidth 2 | Stroke Color #Color5#
Shape2=Rectangle 12,25,378,2,2 | Fill Color #Color5#
Shape3=Rectangle 12,50,150,2,2 | Fill Color #Color5#
Shape4=Rectangle 170,30,2,480,2 | Fill Color #Color5#
Shape5=Rectangle 180,50,210,2,2 | Fill Color #Color5#
Shape6=Rectangle 12,350,150,2,2 | Fill Color #Color5#
Shape7=Rectangle 12,450,150,2,2 | Fill Color #Color5#
X=1
Y=1

========================================
; Titles
========================================
[Segoe Fluent Icons]
Meter=String
MeterStyle=sAllText | sTitle
FontSize=14
X=120
Y=3

[Contents]
Meter=String
MeterStyle=sAllText | sTitle
X=15
Y=5R

[Title]
Meter=String
MeterStyle=sAllText | sTitle
Text=#Title#
X=185
Y=r

[Links]
Meter=String
MeterStyle=sAllText | sTitle
X=15
Y=330

[Preview]
Meter=String
MeterStyle=sAllText | sTitle
X=r
Y=431

========================================
; Contents
========================================
[Apps]
Meter=String
MeterStyle=sAllText | sContents | sHighlight
X=15
Y=55

[Devices]
Meter=String
MeterStyle=sAllText | sContents | sHighlight

[Display]
Meter=String
MeterStyle=sAllText | sContents | sHighlight

[Edit]
Meter=String
MeterStyle=sAllText | sContents | sHighlight

[Internet]
Meter=String
MeterStyle=sAllText | sContents | sHighlight

[Location]
Meter=String
MeterStyle=sAllText | sContents | sHighlight

[Media]
Meter=String
MeterStyle=sAllText | sContents | sHighlight

[Navigation]
Meter=String
MeterStyle=sAllText | sContents | sHighlight

[Office]
Meter=String
MeterStyle=sAllText | sContents | sHighlight

[People]
Meter=String
MeterStyle=sAllText | sContents | sHighlight

[Power]
Meter=String
MeterStyle=sAllText | sContents | sHighlight

[Status]
Meter=String
MeterStyle=sAllText | sContents | sHighlight

[Template]
Meter=String
MeterStyle=sAllText | sContents | sHighlight

========================================
; Links
========================================
[Segoe_Fluent]
Meter=String
MeterStyle=sAllText | sLink
LeftMouseUpAction=https://docs.microsoft.com/en-us/windows/apps/design/style/segoe-fluent-icons-font
X=15
Y=355

[Font_Awesome]
Meter=String
MeterStyle=sAllText | sLink
LeftMouseUpAction=http://fontawesome.io/cheatsheet/

[Google_Material]
Meter=String
MeterStyle=sAllText | sLink
LeftMouseUpAction=https://material.io/icons/

[Elegant_Icons]
Meter=String
MeterStyle=sAllText | sLink
LeftMouseUpAction=https://www.elegantthemes.com/blog/resources/elegant-icon-font

[Ico_Font]
Meter=String
MeterStyle=sAllText | sLink
StringAlign=Right
LeftMouseUpAction=http://icofont.com/
X=160
Y=355

[Ion_Icons]
Meter=String
MeterStyle=sAllText | sLink
StringAlign=Right
LeftMouseUpAction=http://ionicons.com/

========================================
; List - Page1
========================================
[sPage1]
Group=Preview | Page1

[Icon1]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
Y=55
[Text1]
Meter=String
MeterStyle=sAllText | sPage1

[Icon2]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
[Text2]
Meter=String
MeterStyle=sAllText | sPage1

[Icon3]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
[Text3]
Meter=String
MeterStyle=sAllText | sPage1

[Icon4]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
[Text4]
Meter=String
MeterStyle=sAllText | sPage1

[Icon5]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
[Text5]
Meter=String
MeterStyle=sAllText | sPage1

[Icon6]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
[Text6]
Meter=String
MeterStyle=sAllText | sPage1

[Icon7]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
[Text7]
Meter=String
MeterStyle=sAllText | sPage1

[Icon8]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
[Text8]
Meter=String
MeterStyle=sAllText | sPage1

[Icon9]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
[Text9]
Meter=String
MeterStyle=sAllText | sPage1

[Icon10]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
[Text10]
Meter=String
MeterStyle=sAllText | sPage1

[Icon11]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
[Text11]
Meter=String
MeterStyle=sAllText | sPage1

[Icon12]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
[Text12]
Meter=String
MeterStyle=sAllText | sPage1

[Icon13]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
[Text13]
Meter=String
MeterStyle=sAllText | sPage1

[Icon14]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
[Text14]
Meter=String
MeterStyle=sAllText | sPage1

[Icon15]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
[Text15]
Meter=String
MeterStyle=sAllText | sPage1

[Icon16]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
[Text16]
Meter=String
MeterStyle=sAllText | sPage1

[Icon17]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
[Text17]
Meter=String
MeterStyle=sAllText | sPage1

[Icon18]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
[Text18]
Meter=String
MeterStyle=sAllText | sPage1

[Icon19]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
[Text19]
Meter=String
MeterStyle=sAllText | sPage1

[Icon20]
Meter=String
MeterStyle=sAllIcons | sPage1 | sHighlightList
[Text20]
Meter=String
MeterStyle=sAllText | sPage1

========================================
; List - Page2
========================================
[sPage2]
Group=Preview | Page2
Hidden=1

[Icon21]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
Y=55
[Text21]
Meter=String
MeterStyle=sAllText | sPage2

[Icon22]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
[Text22]
Meter=String
MeterStyle=sAllText | sPage2

[Icon23]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
[Text23]
Meter=String
MeterStyle=sAllText | sPage2

[Icon24]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
[Text24]
Meter=String
MeterStyle=sAllText | sPage2

[Icon25]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
[Text25]
Meter=String
MeterStyle=sAllText | sPage2

[Icon26]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
[Text26]
Meter=String
MeterStyle=sAllText | sPage2

[Icon27]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
[Text27]
Meter=String
MeterStyle=sAllText | sPage2

[Icon28]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
[Text28]
Meter=String
MeterStyle=sAllText | sPage2

[Icon29]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
[Text29]
Meter=String
MeterStyle=sAllText | sPage2

[Icon30]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
[Text30]
Meter=String
MeterStyle=sAllText | sPage2

[Icon31]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
[Text31]
Meter=String
MeterStyle=sAllText | sPage2

[Icon32]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
[Text32]
Meter=String
MeterStyle=sAllText | sPage2

[Icon33]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
MeterStyle=sAllText | sPage2

[Icon34]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
[Text34]
Meter=String
MeterStyle=sAllText | sPage2

[Icon35]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
[Text35]
Meter=String
MeterStyle=sAllText | sPage2

[Icon36]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
[Text36]
Meter=String
MeterStyle=sAllText | sPage2

[Icon37]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
[Text37]
Meter=String
MeterStyle=sAllText | sPage2

[Icon38]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
[Text38]
Meter=String
MeterStyle=sAllText | sPage2

[Icon39]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
[Text39]
Meter=String
MeterStyle=sAllText | sPage2

[Icon40]
Meter=String
MeterStyle=sAllIcons | sPage2 | sHighlightList
[Text40]
Meter=String
MeterStyle=sAllText | sPage2

========================================
; List - Page3
========================================
[sPage3]
Group=Preview | Page3
Hidden=1

[Icon41]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
Y=55
[Text41]
Meter=String
MeterStyle=sAllText | sPage3

[Icon42]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
[Text42]
Meter=String
MeterStyle=sAllText | sPage3

[Icon43]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
[Text43]
Meter=String
MeterStyle=sAllText | sPage3

[Icon44]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
[Text44]
Meter=String
MeterStyle=sAllText | sPage3

[Icon45]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
[Text45]
Meter=String
MeterStyle=sAllText | sPage3

[Icon46]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
[Text46]
Meter=String
MeterStyle=sAllText | sPage3

[Icon47]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
[Text47]
Meter=String
MeterStyle=sAllText | sPage3

[Icon48]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
[Text48]
Meter=String
MeterStyle=sAllText | sPage3

[Icon49]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
[Text49]
Meter=String
MeterStyle=sAllText | sPage3

[Icon50]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
[Text50]
Meter=String
MeterStyle=sAllText | sPage3

[Icon51]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
[Text51]
Meter=String
MeterStyle=sAllText | sPage3

[Icon52]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
[Text52]
Meter=String
MeterStyle=sAllText | sPage3

[Icon53]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
[Text53]
Meter=String
MeterStyle=sAllText | sPage3

[Icon54]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
[Text54]
Meter=String
MeterStyle=sAllText | sPage3

[Icon55]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
[Text55]
Meter=String
MeterStyle=sAllText | sPage3

[Icon56]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
[Text56]
Meter=String
MeterStyle=sAllText | sPage3

[Icon57]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
[Text57]
Meter=String
MeterStyle=sAllText | sPage3

[Icon58]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
[Text58]
Meter=String
MeterStyle=sAllText | sPage3

[Icon59]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
[Text59]
Meter=String
MeterStyle=sAllText | sPage3

[Icon60]
Meter=String
MeterStyle=sAllIcons | sPage3 | sHighlightList
[Text60]
Meter=String
MeterStyle=sAllText | sPage3

========================================
; List - Page4
========================================
[sPage4]
Group=Preview | Page4
Hidden=1

[Icon61]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
Y=55
[Text61]
Meter=String
MeterStyle=sAllText | sPage4

[Icon62]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
[Text62]
Meter=String
MeterStyle=sAllText | sPage4

[Icon63]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
[Text63]
Meter=String
MeterStyle=sAllText | sPage4

[Icon64]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
[Text64]
Meter=String
MeterStyle=sAllText | sPage4

[Icon65]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
[Text65]
Meter=String
MeterStyle=sAllText | sPage4

[Icon66]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
[Text66]
Meter=String
MeterStyle=sAllText | sPage4

[Icon67]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
[Text67]
Meter=String
MeterStyle=sAllText | sPage4

[Icon68]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
[Text68]
Meter=String
MeterStyle=sAllText | sPage4

[Icon69]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
[Text69]
Meter=String
MeterStyle=sAllText | sPage4

[Icon70]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
[Text70]
Meter=String
MeterStyle=sAllText | sPage4

[Icon71]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
[Text71]
Meter=String
MeterStyle=sAllText | sPage4

[Icon72]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
[Text72]
Meter=String
MeterStyle=sAllText | sPage4

[Icon73]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
[Text73]
Meter=String
MeterStyle=sAllText | sPage4

[Icon74]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
[Text74]
Meter=String
MeterStyle=sAllText | sPage4

[Icon75]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
[Text75]
Meter=String
MeterStyle=sAllText | sPage4

[Icon76]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
[Text76]
Meter=String
MeterStyle=sAllText | sPage4

[Icon77]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
[Text77]
Meter=String
MeterStyle=sAllText | sPage4

[Icon78]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
[Text78]
Meter=String
MeterStyle=sAllText | sPage4

[Icon79]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
[Text79]
Meter=String
MeterStyle=sAllText | sPage4

[Icon70]
Meter=String
MeterStyle=sAllIcons | sPage4 | sHighlightList
[Text80]
Meter=String
MeterStyle=sAllText | sPage4

========================================
; List - Page5
========================================
[sPage5]
Group=Preview | Page5
Hidden=1

[Icon81]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
Y=55
[Text81]
Meter=String
MeterStyle=sAllText | sPage5

[Icon82]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
[Text82]
Meter=String
MeterStyle=sAllText | sPage5

[Icon83]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
[Text83]
Meter=String
MeterStyle=sAllText | sPage5

[Icon84]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
[Text84]
Meter=String
MeterStyle=sAllText | sPage5

[Icon85]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
[Text85]
Meter=String
MeterStyle=sAllText | sPage5

[Icon86]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
[Text86]
Meter=String
MeterStyle=sAllText | sPage5

[Icon87]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
[Text87]
Meter=String
MeterStyle=sAllText | sPage5

[Icon88]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
[Text88]
Meter=String
MeterStyle=sAllText | sPage5

[Icon89]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
[Text89]
Meter=String
MeterStyle=sAllText | sPage5

[Icon90]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
[Text90]
Meter=String
MeterStyle=sAllText | sPage5

[Icon91]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
[Text91]
Meter=String
MeterStyle=sAllText | sPage5

[Icon92]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
[Text92]
Meter=String
MeterStyle=sAllText | sPage5

[Icon93]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
[Text93]
Meter=String
MeterStyle=sAllText | sPage5

[Icon94]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
[Text94]
Meter=String
MeterStyle=sAllText | sPage5

[Icon95]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
[Text95]
Meter=String
MeterStyle=sAllText | sPage5

[Icon96]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
[Text96]
Meter=String
MeterStyle=sAllText | sPage5

[Icon97]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
[Text97]
Meter=String
MeterStyle=sAllText | sPage5

[Icon98]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
[Text98]
Meter=String
MeterStyle=sAllText | sPage5

[Icon99]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
[Text99]
Meter=String
MeterStyle=sAllText | sPage5

[Icon100]
Meter=String
MeterStyle=sAllIcons | sPage5 | sHighlightList
[Text100]
Meter=String
MeterStyle=sAllText | sPage5

========================================
; Page 1
========================================
[sPageL]
FontSize=12
FontColor=#Color3#
Text=#PageBkIcon#

[sPageR]
FontSize=12
FontColor=#Color3#
Text=#PageFwdIcon#

[sPageTurn1]
Group=Page1

[Page1BkIcon]
Meter=String
MeterStyle=sAllIcons | sPageL | sPageTurn1
LeftMouseUpAction=
;MouseOverAction=
X=240
Y=500

[PageText]
Meter=String
MeterStyle=sAllText | sPageTurn1
Text=Page 1
X=10R
Y=r

[Page1FwdIcon]
Meter=String
MeterStyle=sAllIcons | sPageR | sPageTurn1 | sHighlight
LeftMouseUpAction=[!HideMeterGroup Page1][!ShowMeterGroup Page2] [!UpdateMeterGroup Page1] [!UpdateMeterGroup Page2] [!Redraw]
X=10R
Y=r

========================================
; Page 2
========================================
[sPageTurn2]
Group=Page2
Hidden=1

[Page2BkIcon]
Meter=String
MeterStyle=sAllIcons | sPageL | sPageTurn2 | sHighlight
LeftMouseUpAction=[!HideMeterGroup Page2][!ShowMeterGroup Page1] [!UpdateMeterGroup Page1] [!UpdateMeterGroup Page2] [!Redraw]
X=240
Y=500

[Page2Text]
Meter=String
MeterStyle=sAllText | sPageTurn2
Text=Page 2
X=10R
Y=r

[Page2FwdIcon]
Meter=String
MeterStyle=sAllIcons | sPageR | sPageTurn2 | sHighlight
LeftMouseUpAction=[!HideMeterGroup Page2][!ShowMeterGroup Page3] [!UpdateMeterGroup Page2] [!UpdateMeterGroup Page3] [!Redraw]
X=10R
Y=r

========================================
; Page 3
========================================
[sPageTurn3]
Group=Page3
Hidden=1

[Page3BkIcon]
Meter=String
MeterStyle=sAllIcons | sPageL | sPageTurn3 | sHighlight
LeftMouseUpAction=[!HideMeterGroup Page3][!ShowMeterGroup Page2] [!UpdateMeterGroup Page3] [!UpdateMeterGroup Page2] [!Redraw]
X=240
Y=500

[Page3Text]
Meter=String
MeterStyle=sAllText | sPageTurn3
Text=Page 3
X=10R
Y=r

[Page3FwdIcon]
Meter=String
MeterStyle=sAllIcons | sPageR | sPageTurn3 | sHighlight
LeftMouseUpAction=[!HideMeterGroup Page3][!ShowMeterGroup Page4] [!UpdateMeterGroup Page3] [!UpdateMeterGroup Page4] [!Redraw]
X=10R
Y=r

========================================
; Page 4
========================================
[sPageTurn4]
Group=Page4
Hidden=1

[Page4BkIcon]
Meter=String
MeterStyle=sAllIcons | sPageL | sPageTurn4 | sHighlight
LeftMouseUpAction=[!HideMeterGroup Page4][!ShowMeterGroup Page3] [!UpdateMeterGroup Page4] [!UpdateMeterGroup Page3] [!Redraw]
X=240
Y=500

[Page4Text]
Meter=String
MeterStyle=sAllText | sPageTurn4
Text=Page 4
X=10R
Y=r

[Page4FwdIcon]
Meter=String
MeterStyle=sAllIcons | sPageR | sPageTurn4 | sHighlight
LeftMouseUpAction=[!HideMeterGroup Page4][!ShowMeterGroup Page5] [!UpdateMeterGroup Page4] [!UpdateMeterGroup Page5] [!Redraw]
X=10R
Y=r

========================================
; Page 5
========================================
[sPageTurn5]
Group=Page5
Hidden=1

[Page5BkIcon]
Meter=String
MeterStyle=sAllIcons | sPageL | sPageTurn5 | sHighlight
LeftMouseUpAction=[!HideMeterGroup Page5][!ShowMeterGroup Page4] [!UpdateMeterGroup Page5] [!UpdateMeterGroup Page4] [!Redraw]
X=240
Y=500

[Page5Text]
Meter=String
MeterStyle=sAllText | sPageTurn5
Text=Page 5
X=10R
Y=r

[Page5FwdIcon]
Meter=String
MeterStyle=sAllIcons | sPageR | sPageTurn5
LeftMouseUpAction=
;MouseOverAction=
X=10R
Y=r

========================================
; Preview
========================================
[Preview1]
Meter=String
MeterStyle=sPreview
FontSize=20
X=27
Y=490

[Preview2]
Meter=String
MeterStyle=sPreview
FontSize=30

[Preview3]
Meter=String
MeterStyle=sPreview
FontSize=40
Nice work!
You do not have the required permissions to view the files attached to this post.
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Changing the function of a Mouse Action

Post by sl23 »

Damn! Thanks e-t :D :thumbup:
I never thought it was possible! Looks like Yincognito was right when he said he never believes anything is impossible with Rainmeter! :rofl:

May I ask though, what is the asterisk for here:
[!EnableMouseAction * "MouseOverAction|MouseLeaveAction"]
Is that all it took? :o

Thanks again ;-)
- MuLab -
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: Changing the function of a Mouse Action

Post by death.crafter »

sl23 wrote: August 31st, 2021, 4:55 pm Damn! Thanks e-t :D :thumbup:
I never thought it was possible! Looks like Yincognito was right when he said he never believes anything is impossible with Rainmeter! :rofl:

May I ask though, what is the asterisk for here:
[!EnableMouseAction * "MouseOverAction|MouseLeaveAction"]
Is that all it took? :o

Thanks again ;-)
* is a wild card pattern, which means all.

Here, in the context, all meters, and [Rainmeter]
from the Realm of Death