Hi everyone,
Me again
I have a question.
How can I clear everything on the clipboard with the help of rainmeter?
Do we have a code for this?
Of course without clipboard plugin...
I don't want to add plugin just for this
PS: please dont say that cmd /c "echo off | clip"
It is currently May 2nd, 2024, 9:36 pm
Clearing Clipboard History
-
- Posts: 517
- Joined: May 4th, 2020, 3:01 pm
- Location: Ankara, TURKEY
Clearing Clipboard History
I don't know where i going from here, but i promise it won't be boring...
-
- Rainmeter Sage
- Posts: 2617
- Joined: March 23rd, 2015, 5:26 pm
Re: Clearing Clipboard History
OK, then:tass_co wrote: ↑May 9th, 2022, 11:57 pm Hi everyone,
Me again
I have a question.
How can I clear everything on the clipboard with the help of rainmeter?
Do we have a code for this?
Of course without clipboard plugin...
I don't want to add plugin just for this
PS: please dont say that cmd /c "echo off | clip"
Code: Select all
powershell.exe -NoProfile -ExecutionPolicy Bypass -NonInteractive -Command "$null | & $env:windir\System32\clip.exe"
Code: Select all
powershell.exe -NoProfile -ExecutionPolicy Bypass -NonInteractive -Command "Set-Clipboard -Value $null"
-
- Posts: 1366
- Joined: September 7th, 2020, 2:24 pm
- Location: QLD, Australia
-
- Posts: 517
- Joined: May 4th, 2020, 3:01 pm
- Location: Ankara, TURKEY
Re: Clearing Clipboard History
SilverAzide wrote: ↑May 10th, 2022, 1:57 am OK, then:or...Code: Select all
powershell.exe -NoProfile -ExecutionPolicy Bypass -NonInteractive -Command "$null | & $env:windir\System32\clip.exe"
I didn't say it... and those are your basic choices, plugin or no. (There are probably a few other Powershell tricks, but all accomplish the same thing.)Code: Select all
powershell.exe -NoProfile -ExecutionPolicy Bypass -NonInteractive -Command "Set-Clipboard -Value $null"
Apologize guys. My problem was something different
I don't know where i going from here, but i promise it won't be boring...
-
- Rainmeter Sage
- Posts: 16195
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Clearing Clipboard History
Not sure what your problem is, however your initial idea is perfectly working, through a RunCommand plugin measure (RunCommand, unlike some external plugin manipulating the clipboard, is a built-in plugin and can be used without having to add it):
Code: Select all
[MeasureRun]
Measure=Plugin
Plugin=RunCommand
Program=cmd
Parameter=/c "echo off | clip"
State=Hide
[MeterClear]
Meter=STRING
X=0
Y=0
Padding=15,5,15,5
FontColor=220,220,220
FontEffectColor=0,0,0
StringEffect=Shadow
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1
Text=Clear
LeftMouseUpAction=[!CommandMeasure "MeasureRun" "Run"]
-
- Posts: 517
- Joined: May 4th, 2020, 3:01 pm
- Location: Ankara, TURKEY
Re: Clearing Clipboard History
At first I thought clearing the clipboard would solve my problem but I was wrongbalala wrote: ↑May 10th, 2022, 11:25 am Not sure what your problem is, however your initial idea is perfectly working, through a RunCommand plugin measure (RunCommand, unlike some external plugin manipulating the clipboard, is a built-in plugin and can be used without having to add it):
Is there anything wrong with such a solution?Code: Select all
[MeasureRun] Measure=Plugin Plugin=RunCommand Program=cmd Parameter=/c "echo off | clip" State=Hide [MeterClear] Meter=STRING X=0 Y=0 Padding=15,5,15,5 FontColor=220,220,220 FontEffectColor=0,0,0 StringEffect=Shadow SolidColor=0,0,0,150 FontSize=8 FontFace=Segoe UI StringStyle=BOLD StringAlign=LEFT AntiAlias=1 Text=Clear LeftMouseUpAction=[!CommandMeasure "MeasureRun" "Run"]
This was the first way I tried balala.
All of the your codes written are clearing the clipboard
I don't know where i going from here, but i promise it won't be boring...