It is currently April 25th, 2024, 7:59 am

mouse actions

Get help with creating, editing & fixing problems with skins
dcooman
Posts: 4
Joined: October 18th, 2018, 11:57 am

mouse actions

Post by dcooman »

Hallo,

is it possible to enable clicktrough, enable Draggable and disable rightmouse click ?

thx
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5406
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: mouse actions

Post by eclectic-tech »

There is no way to completely disable skins. When click-through is enabled, a user can still use mouse controls by holding down the 'Ctrl' key.
The context menu is always accessible using the 'Ctrl' key method.

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1

; This will work until Ctrl is pressed
OnRefreshAction=[!ClickThrough 1][!Draggable 1]

;These will not prevent RightMouse+Ctrl actions when Ctrl is pressed
RightMouseUpAction=[]
RightMouseDownAction=[]

[String]
Meter=string
SolidColor=0,0,0,100
FontSize=14
FontColor=255,255,255
Padding=8,8,8,8
Text=Ctrl+MouseOver-Red#CRLF#Ctrl+Left-Click-Green#CRLF#Ctrl+Drag-Me#CRLF#Ctrl+Right-Click-ContextMenu
MouseOverAction=[!SetOption #CurrentSection# SolidColor "255,0,0,100"][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption #CurrentSection# SolidColor "0,0,0,100"][!UpdateMeter *][!Redraw]
LeftMouseUpAction=[!SetOption #CurrentSection# SolidColor "0,255,0,100"][!UpdateMeter *][!Redraw]