Hello everyone, is there any plugin that can tell what color is a specific pixel on my screen?
-Thanks in advance.
It is currently September 21st, 2024, 3:23 am
Searching for a plugin.
-
- Posts: 919
- Joined: January 30th, 2017, 2:01 am
- Location: Greece
-
- Rainmeter Sage
- Posts: 16568
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Searching for a plugin.
Depending on what you want to use it for, maybe the Chameleon plugin could help you? It's available here: https://forum.rainmeter.net/viewtopic.php?p=114867#p114867kyriakos876 wrote:Hello everyone, is there any plugin that can tell what color is a specific pixel on my screen?
-
- Posts: 919
- Joined: January 30th, 2017, 2:01 am
- Location: Greece
Re: Searching for a plugin.
Well I want to get it as a value in Rainmeter... for example, if (30,200) pixel is red, then do a specific action. I don't think I can do that with the chameleon plugin. Correct me if I'm wrong.balala wrote:Depending on what you want to use it for, maybe the Chameleon plugin could help you? It's available here: https://forum.rainmeter.net/viewtopic.php?p=114867#p114867
-
- Rainmeter Sage
- Posts: 16568
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Searching for a plugin.
No, I won't correct you. Probably you're right and can't do this with that plugin. Sorry...kyriakos876 wrote:Well I want to get it as a value in Rainmeter... for example, if (30,200) pixel is red, then do a specific action. I don't think I can do that with the chameleon plugin. Correct me if I'm wrong.
-
- Moderator
- Posts: 1387
- Joined: April 11th, 2013, 8:08 pm
- Location: Italy
-
- Rainmeter Sage
- Posts: 5529
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Searching for a plugin.
A coordinate doesn't really explain what you want to detect...kyriakos876 wrote:Well I want to get it as a value in Rainmeter... for example, if (30,200) pixel is red, then do a specific action. I don't think I can do that with the chameleon plugin. Correct me if I'm wrong.
Do you want to know what color your desktop is at a coordinate? If so, ImageMagick might help with that (and a lot of other image processes).
If you want to be able to point to an area or pixel and have that brought into your variables, I would look at an add-on JSMorley created "back in the Stone Age" that let's you pick an average 10x10 color anywhere on your screen.https://forum.rainmeter.net/viewtopic.php?p=28993#p28993
Or an Auto-It script that picks a single pixel by KreAcherhttps://forum.rainmeter.net/viewtopic.php?p=72581#p72581
If neither of these are what you are looking for, then I would look deeper into ImageMagick convert capabilities.
EDIT: fonpaolo's suggestion (or any color picker could work).
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 919
- Joined: January 30th, 2017, 2:01 am
- Location: Greece
Re: Searching for a plugin.
I'll try those things out and see if I can work something out. If for some reason you still didn't understand:eclectic-tech wrote:A coordinate doesn't really explain what you want to detect...
Do you want to know what color your desktop is at a coordinate? If so, ImageMagick might help with that (and a lot of other image processes).
If you want to be able to point to an area or pixel and have that brought into your variables, I would look at an add-on JSMorley created "back in the Stone Age" that let's you pick an average 10x10 color anywhere on your screen.https://forum.rainmeter.net/viewtopic.php?p=28993#p28993
Or an Auto-It script that picks a single pixel by KreAcherhttps://forum.rainmeter.net/viewtopic.php?p=72581#p72581
If neither of these are what you are looking for, then I would look deeper into ImageMagick convert capabilities.
EDIT: fonpaolo's suggestion (or any color picker could work).
Coordinates for the pixel I want to check-> 30,200 would be the pixel 30 pixels from the left and 200 pixels from the top. I want to check the color of that pixel. When the color becomes (for example) red (255,0,0) I want my skin to do (something) This should be something like:
Code: Select all
[MeasureColor]
Measure=Plugin
Plugin=SomePlugin
ColorAt=30,200
[MeasureAction]
Measure=Calc
IfCondition=([MeasureColor]== "255,0,0")
IfTrueAction=[!SetOption MeterAction SolidColor "0,0,0"][!Update]
[MeterAction]
Meter=Image
SolidColor=255,0,0
W=10
H=10
DynamicVariables=1
NOTE: I want it to check the pixel on my monitor in general. Not on my background image, so if I move (for example) chrome over that pixel it would change the color to black.
-
- Posts: 919
- Joined: January 30th, 2017, 2:01 am
- Location: Greece
Re: Searching for a plugin.
UPDATE: I'm pretty sure ColorPicker can do what I want as I see in the Overlay.ini on the example skin, but I can't figure how to get the value of a set pixel on the screen without having to move my mouse.
-
- Posts: 919
- Joined: January 30th, 2017, 2:01 am
- Location: Greece
Re: Searching for a plugin.
After searching around, I don't think the plugin supports the check of a set place on my screen but only follows the mouse.
-
- Rainmeter Sage
- Posts: 5529
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Searching for a plugin.
Auto-It has a function to do this...kyriakos876 wrote:After searching around, I don't think the plugin supports the check of a set place on my screen but only follows the mouse.
Function Reference;;_WinAPI_GetPixel;;_WinAPI_GetPixel
Retrieves the color value of the pixel at the specified coordinates
#include <WinAPIGdi.au3>
_WinAPI_GetPixel ( $hDC, $iX, $iY )
Parameters
$hDC Handle to the device context.
$iX The x-coordinate, in logical units, of the pixel to be examined.
$iY The y-coordinate, in logical units, of the pixel to be examined.
Return Value
Success: The color of the pixel, in RGB.
Failure: (-1).
Someone who is familiar with Auto-It may be able to provide more help, I am not that qualified in Auto-It coding... :: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::