It is currently May 8th, 2024, 3:19 am
How to copy text inside skin.
-
- Posts: 5
- Joined: October 17th, 2014, 1:08 am
How to copy text inside skin.
I want to make popup windows that have text inside them I can copy when needed. Like having a list of aliases for text editors or what not. So how can I make text inside a skin able to be copied to a clipboard?
-
- Posts: 1173
- Joined: January 22nd, 2011, 4:23 pm
- Location: GMT +8
Re: How to copy text inside skin.
Is the text going to change very often and/or will the same text always be in the same popup window?
If so, then you may not need to copy the text to the clipboard you can just have something like a !LeftMouseUpAction bang do whatever it is you want to do with the text.
If so, then you may not need to copy the text to the clipboard you can just have something like a !LeftMouseUpAction bang do whatever it is you want to do with the text.
-
- Posts: 5
- Joined: October 17th, 2014, 1:08 am
Re: How to copy text inside skin.
I'm taking about a list of shortcuts I wanna copy and paste from a rainmeter window to use in editors. Yeah I may update the list but how exactly can I click on a line of text and copy it so I can paste it in another program?
-
- Posts: 1173
- Joined: January 22nd, 2011, 4:23 pm
- Location: GMT +8
Re: How to copy text inside skin.
Sounds like you need to use the !SetClip bang. Here is an example:
Adding DynamicVariables=1 to [StringMeter-1] allows you to change the text stored as the variable #Post2ClipBoard# using the !SetVariable bang.
Code: Select all
[Rainmeter]
DynamicWindowSize=1
AccurateText=1
[Variables]
Post2ClipBoard="This text comes from the meter"
[StringMeter-1]
Meter=String
FontColor=ffffff
SolidColor=00000001
Text=#Post2ClipBoard#
LeftmouseUpAction=[!SetClip "#Post2ClipBoard#"]
DynamicVariables=1