The lua script seems to "choke" on any clip containing quotes or a variable; #Anything#...
it will put the clip in every spot... hopefully one of those lua gurus can help!
I added variables to allow the user to set the font height and number of lines in the clip (meters will adjust height based on these variables),
OR you can un-comment the tooltiptext options I added to each meter (remove ';' to use),
added an alternate style for other background modes,
and re-aligned the clips to left edge (personal preference).
This is a handy tool even with a few "querks" ... thanks again for putting this together!
Here is your modified code with my changes:
Code: Select all
[Rainmeter]
Update=1000
Author=KreAch3R | kredoc.deviantart.com
OnRefreshAction=["#@#GetClip.exe" "#CURRENTCONFIG#"]
BackgroundMode=1
SolidColor=000000
SolidColor2=222222
GradientAngle=90
DynamicWindowSize=1
[Metadata]
Name=RainClip
Information=
Version=1.0
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
[Variables]
FontHeight=8
NumLines=5
;----------------
;Measures
[mScript]
Measure=SCRIPT
ScriptFile="Clip.lua"
[mGetClip]
Measure=CALC
Formula=(mGetClip+1)%6
IfEqualValue=5
IfEqualAction=["#@#GetClip.exe" "#CURRENTCONFIG#"]
;----------------
;Meters
[Style]
SolidColor=0,0,0,32
FontColor=FFFFFF
FontSize=#FontHeight#
FontFace=Trebuchet MS
X=r
Y=2R
H=((#FontHeight#*1.6)*#NumLines#)
W=170
AntiAlias=1
DynamicVariables=1
ClipString=1
;ToolTipText=LEFT click to copy#CRLF#MIDDLE to open
[Style1]
SolidColor=0,0,0,128
FontColor=FFFFFF
FontSize=#FontHeight#
FontFace=Trebuchet MS
X=r
Y=2R
H=((#FontHeight#*1.6)*#NumLines#)
W=170
AntiAlias=1
DynamicVariables=1
ClipString=1
;ToolTipText=LEFT click to copy#CRLF#MIDDLE to open
[Title]
Meter=STRING
MeterStyle=Style1
FontSize=16
H=25
Text=ClipBoard
ToolTipText=LEFT to Copy#CRLF#MIDDLE to Open
[Content1]
Meter=STRING
MeterStyle=Style
Text=#Content1Var#
LeftMouseUpAction=!SetClip #Content1Var#
MiddleMouseUpAction=["#Content1Var#"]
X=0
Y=5R
;ToolTipText=#Content1Var#
[Content2]
Meter=STRING
MeterStyle=Style1
Text=#Content2Var#
LeftMouseUpAction=!SetClip #Content2Var#
MiddleMouseUpAction=["#Content2Var#"]
;ToolTipText=#Content2Var#
[Content3]
Meter=STRING
MeterStyle=Style
Text=#Content3Var#
LeftMouseUpAction=!SetClip #Content3Var#
MiddleMouseUpAction=["#Content3Var#"]
;ToolTipText=#Content3Var#
[Content4]
Meter=STRING
MeterStyle=Style1
Text=#Content4Var#
LeftMouseUpAction=!SetClip #Content4Var#
MiddleMouseUpAction=["#Content4Var#"]
;ToolTipText=#Content4Var#
[Content5]
Meter=STRING
MeterStyle=Style
Text=#Content5Var#
LeftMouseUpAction=!SetClip #Content5Var#
MiddleMouseUpAction=["#Content5Var#"]
;ToolTipText=#Content5Var#