Get text color

Dear all,

is it possible to get color of a string in a field of a desktop application? I see only activity related to color in excel activities but this is standalone application.

Thanks in advance.

Hi @mario
Check this post
How to get text color from web page? - #2 by Raguvarthan

Seems to be helpful but I am not able to find activity Get full text with native…

hi @Mario
Check below post

do it with screen scrapping you will get full text with native

Thanks
Ashwin S

hi @Mario

use set range color activity based on iteration you can set color to particular cell

Thanks
Ashwin S

But I am on the web page. Not in excel.
I found this IEnumerable < TextInfo > variable type - #2 by ddpadil

However, when I type item.color.tostring , I am getting only zeros.

Hello @mario, do you want to take color of some text from a web page, or from a desktop app?
If from web, is it possible to take the take color from the web’s CSS or other attributes?

Hello,

Unfortunately it is a text inside a desktop application such as calculator.

@mario I have created a custom activity for this… let me know if it works for you.
Link: https://github.com/NitinSafaya/UiPath/blob/Color-Detector/ColorDetectorActivities.1.0.2.nupkg

1 Like

Hi @palindrome,

if you comfortable with your package,you can able to upload it into the https://gallery.uipath.com/. It helps to others to use your component. To know more. take a look this.

Regards
Balamurugan.S

1 Like

Hi,

unfortunately the position is not always fixed.

You have to get the position using get position activity and pass it as an input to this activity.

@balupad14 Done … thank you

1 Like

The output is always WHITE

Can you share a screenshot of the element (whose color you want extract) and your flow in UiPath ?

Hi,

Check out the latest update in my ColorDetector Custom activity. Now it has feature to highlight pixel on the screen.
You can use it to adjust the co-ordinate X and Y.

Demo: https://github.com/NitinSafaya/UiPath/blob/Color-Detector/Color%20Detector_V1.0.3.mp4

Thanks

1 Like

Hey, I am Anil Yadav,
I am Lerner, I also Facing the same issue How to Read text color from Screenshot

every time giving the same output.


-Anil

this is use for red text

Pls anyone help me to resolve this issue

1 Like