Hi all,
I'm wondering if there's a way to copy to clipboard a string visualized by a meter with a mouse action, like
RightMouseUpAction = CTRL+C so to speak...
Thanks in advance for any hints
Cheers!
It is currently March 29th, 2024, 7:06 am
CTRL C...
-
- Posts: 172
- Joined: July 8th, 2018, 8:05 pm
-
- Posts: 326
- Joined: September 3rd, 2018, 11:18 am
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: CTRL C...
As Jeff said, you have to use the !SetClip bang. For instance with the following option you can copy the value returned by the [SomeMeasure] measure, to clipboard: RightMouseUpAction=[!SetClip "[SomeMeasure]"].
Or with the following option, you can copy the value of the SomeVariable variable: RightMouseUpAction=[!SetClip "#SomeVariable#"].
-
- Posts: 172
- Joined: July 8th, 2018, 8:05 pm
Re: CTRL C...
Thanks Jeff, balalabalala wrote: ↑September 14th, 2020, 8:38 pm As Jeff said, you have to use the !SetClip bang. For instance with the following option you can copy the value returned by the [SomeMeasure] measure, to clipboard: RightMouseUpAction=[!SetClip "[SomeMeasure]"].
Or with the following option, you can copy the value of the SomeVariable variable: RightMouseUpAction=[!SetClip "#SomeVariable#"].
Used
RightMouseUpAction=[!SetClip "[NetworkAdapterDescription]"][!ToggleMeter ShowAdapter]
It works perfectly, copy the string and hide the meter.
Did try that first but it returns literally #SomeVariable#, not its value...
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: CTRL C...
This happens only if the SomeVariable isn't created. Do you have a SomeVariable=whatever option in the [Variables] section, or at least a [!SetVariable SomeVariable "whatever"] bang somewhere in your code, to have a value for the SomeVariable variable? Because I suppose you have no...
To check this add a simple String meter, to see the value of the variable. Something like this:
Code: Select all
[MeterVariable]
Meter=String
Fontsize=15
FontFace=Segoe UI
FontColor=220,220,220
AntiAlias=1
StringAlign=Left
x=0
y=0
Text=#SomeVariable#
DynamicVariables=1
SolidColor=0,0,0,150
Padding=15,5,15,5
-
- Posts: 172
- Joined: July 8th, 2018, 8:05 pm
Re: CTRL C...
Hi balala,
double check my code and noticed that when I did try to use the variable instead of the string measure, I misspelled the variable name, (#Adatper# instead of #Adapter#) that's the reason... my bad, sorry about that.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: CTRL C...
Don't worry, it happens to all of us, from time to time. I guessed there something like this has gone on...