It is currently September 30th, 2024, 1:33 am

Clipboard skin?

General topics related to Rainmeter.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5534
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Clipboard skin?

Post by eclectic-tech »

Love what you have done! :thumbup:

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#
User avatar
UnforgivenRevival
Posts: 310
Joined: June 7th, 2012, 2:25 am
Location: Philadelphia, PA

Re: Clipboard skin?

Post by UnforgivenRevival »

KreAch3R wrote:You can use santa_ryan addon that opens the system tray upon clicking. Then it would be two clicks away.
I do use some addon that opens the system tray, but it has a second or so delay, which is quite annoying. but thanks for the tip. Im looking for some kind of skin that lays on the screen all the time so I dont even have to click a few times to get to it. :)

@eclectic-tech.. looking at your code now to see your changes. glad theres another interested!
User avatar
UnforgivenRevival
Posts: 310
Joined: June 7th, 2012, 2:25 am
Location: Philadelphia, PA

Re: Clipboard skin?

Post by UnforgivenRevival »

Well, I like it is more expanded. But it takes up alot more room. Im not sure which way to sway. less desk space and more text space or the other way around? :confused: maybe expand the height to fill the content every time it changes with a max of say 5 lines? im not sure. any other thoughts?
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5534
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Clipboard skin?

Post by eclectic-tech »

The best way would be to determine the clip length in Lua and set the meter height accordingly.
I have seen some posts from KreAch3R that did that, but my scripting skills are very rusty! :uhuh: ...


After I posted the code, I did add a mouse action to the title meter to toggle the content meters visibility...
this makes it a bit less of a desktop HOG! :lol:


Right now, it seems like it will have to be personal preference as far as how much it shows...
User avatar
UnforgivenRevival
Posts: 310
Joined: June 7th, 2012, 2:25 am
Location: Philadelphia, PA

Re: Clipboard skin?

Post by UnforgivenRevival »

eclectic-tech wrote:The best way would be to determine the clip length in Lua and set the meter height accordingly.
I have seen some posts from KreAch3R that did that, but my scripting skills are very rusty! :uhuh: ...


After I posted the code, I did add a mouse action to the title meter to toggle the content meters visibility...
this makes it a bit less of a desktop HOG! :lol:


Right now, it seems like it will have to be personal preference as far as how much it shows...
Thats fair enough. Can always work out the looks after we have everything working 100%. as for the .Lua, I am VERY new to it also. Wont be much help there, But Ive been trying to do my homework. ;-) I have NO autoit coding experience either. Looks like I need to spend more time on the computer :lol:
User avatar
KreAch3R
Posts: 608
Joined: February 7th, 2011, 7:27 pm
Location: Thessaloniki, GR

Re: Clipboard skin?

Post by KreAch3R »

I will try to implement all your suggestions once I find the time, due to my exams. :-) I will post it here.

Sent from my Nexus S using Tapatalk 2
Inactive, due to life changes. Send me a PM for any question.

Desktop DeviartArt
Image
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5534
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Clipboard skin?

Post by eclectic-tech »

Thanks KreAch3r! That will give us some time to practice OUR lua scripting ... :?

Good luck on your exams!!
User avatar
KreAch3R
Posts: 608
Joined: February 7th, 2011, 7:27 pm
Location: Thessaloniki, GR

Re: Clipboard skin?

Post by KreAch3R »

eclectic-tech wrote:Thanks KreAch3r! That will give us some time to practice OUR lua scripting ... :?

Good luck on your exams!!
Thanks,

and I strongly encourage you to go ahead and try to make something in Lua. It is totally worth it.
Inactive, due to life changes. Send me a PM for any question.

Desktop DeviartArt
Image
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5534
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Clipboard skin?

Post by eclectic-tech »

FYI - Interested in a clipboard skin?

A new plugin is being developed (created by Brian)

From my first glance, it eliminates the issues with special characters like: [, #, ", etc.
It is designed to work with text only, with the option to show non-text items.
Give it a try!

Thanks Brian!
User avatar
Brian
Developer
Posts: 2736
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Clipboard skin?

Post by Brian »

Sure thing!

-Brian