I'm Rainmeter fan and it has totally replaced Windows Gadgets for me, except one gadget - Clipboard Manager. It monitores clipboard, save text from it and show you this history. I think it's very useful, and so I want to find Rainmeter skin with same functionality.
Unfortunately, I couldn't find such skin, and (as I realise) this functionality cannot be reached with standard Rainmeter functions or existing plugins. So, as I'm .NET (C#) developer (beginner only
![Smiler :)](./images/smilies/ab.gif)
![Smiler :)](./images/smilies/ab.gif)
The easiest way to iteract with Rainmeter is to programmatically change settings file and refresh Rainmeter.
I found code for monitoring clipboard, writing text to Variables.inc and refreshing Rainmeter. Then I made a skin for Rainmeter, which loads values from file and show them to user. Click on text line in skin launches another application, that puts this text to clipboard. I also have to write this application, because I need to store and handle multiline text (Rainmeter variable doesn't support it).
This is examle skin looks like:
![Image](http://zzeneg.ru/uploads/2011/10/Clipboard.jpg)
Tray menu:
![Image](http://zzeneg.ru/uploads/2011/10/traymenu.jpg)
Instructions:
- download Clipboard.zip and unzip it to folder with your Rainmeter theme. Refresh your Rainmeter and enable Clipboard.ini skin.
- launch GetClipboard.exe. You can see an icon of application in system tray (icon looks like Rainmeter's). Only one instance of application can be launched.
- try to copy some text (Ctrl+C or another way).
- if everything is allright, you'll see copied text in Rainmeter skin.
- try to copy another text. This text will be added to skin.
- now try to click on second line. This line will became first, and it's value will be copied to clipboard.
Settings
Application also support settings file, in which you can set your path to rainmeter.exe, variables.inc, variable name and hide tray icon. Settings file will be automatically generated and opened in case of some error, or you can manually create it by clicking "Settings" in ContextMenu in tray.
Settings file name should be "GetClipboard.ini", and it should contain section name "[Settings]". There are 4 available options:
- VariablesPath (string) - path to variables.inc file with clipboard variables in it. By default, application searches this file in the same folder.
- VariableName (string) - name of clipboard variable. All variables are named as VariableName0, VariableName1, VariableName2, etc. You need to use these names in your Rainmeter skin's code. Default value - "clipboard".
- RainmeterPath (string) - path to rainmeter.exe. By default, application searches this file in %ProgramFiles%/Rainmeter/.
- EnableTrayIcon (bool). You need to set it to "0", if you want to hide tray icon.
Example of file:
[Settings]
VariablesPath=C:\Users\UserName\Documents\Rainmeter\Skins\Rainify\@Settings\Variables.inc
VariableName=ClipboardApp
RainmeterPath=C:\Soft\Rainmeter\Rainmeter.exe
EnableTrayIcon=0
If you want to store more than 5 lines, you need to modify skin and Variables.inc.
Credits
Arcticle about monitoring clipboard in C#
Storing settings in .ini file
Rainmeter skin was originally created by poiru and named Rainify (many thanks to him for this brilliant skin)
Downloads
Example skin and source code are attached to this post
Any questions, replies, report bugs are welcome.
P.S. I'm sorry for my language, English is not my native.