Retrieves the color of the pixel under the cursor when you fire the measure with !CommandMeasure. I would expect this to generally be on a mouse click action.
Must be called with:
[!CommandMeasure MeasureName "GetColor"]
Only option is "Format", which can be RGB/Red/Green/Blue.
The plugin is included in the .rmskin, as are the plugin 32bit and 64bit .dll files, for use in your .rmskin..
Or just the plugin 32bit and 64bit .dll files, for use in your .rmskin.
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Metadata]
Name=ColorCursor
Author=JSMorley
Information=Demonstrates the ColorCursor plugin.|Retrieves the color of the pixel under the cursor.||Must be called with:|[!CommandMeasure MeasureName "GetColor"]||Only option is "Format", which can be RGB/Red/Green/Blue.
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=May 28, 2016
[CursorColor]
Measure=Plugin
Plugin=CursorColor
Format=RGB
Substitute="":"0,0,0"
[CursorRed]
Measure=Plugin
Plugin=CursorColor
Format=Red
Substitute="":"0"
[CursorGreen]
Measure=Plugin
Plugin=CursorColor
Format=Green
Substitute="":"0"
[CursorBlue]
Measure=Plugin
Plugin=CursorColor
Format=Blue
Substitute="":"0"
[MeterBack]
Meter=Image
W=390
H=290
SolidColor=170,170,170,255
[MeterPallet]
Meter=Image
W=370
H=200
X=10
Y=10
ImageName=#@#Images\Pallet.png
LeftMouseUpAction=[!CommandMeasure CursorColor "GetColor"][!CommandMeasure CursorRed "GetColor"][!CommandMeasure CursorGreen "GetColor"][!CommandMeasure CursorBlue "GetColor"][!UpdateMeter *][!Redraw][!SetClip "[CursorColor]"]
[MeterRedGreenBlue]
Meter=String
X=10
Y=5R
FontSize=20
AntiAlias=1
Text=Red: [CursorRed] Green: [CursorGreen] Blue: [CursorBlue]
InlineSetting=Color | [CursorRed],0,0
InlinePattern=Red: (.*) Green: .* Blue: .*
InlineSetting2=Color | 0,[CursorGreen],0
InlinePattern2=Red: .* Green: (.*) Blue: .*
InlineSetting3=Color | 0,0,[CursorBlue]
InlinePattern3=Red: .* Green: .* Blue: (.*)
InlinePattern=.*
DynamicVariables=1
[MeterSelectedColor]
Meter=String
X=10
Y=5R
FontSize=20
FontColor=[CursorColor]
AntiAlias=1
Text=Selected Color: [CursorColor]
DynamicVariables=1