Get text color

colour

#1

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.


#2

Hi @mario
Check this post
How to get text color from web page?


#3

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


#4

hi @Mario
Check below post

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

Thanks
Ashwin S


#5

hi @Mario

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

Thanks
Ashwin S


#6

But I am on the web page. Not in excel.
I found this IEnumerable < TextInfo > variable type

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


#7

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?


#8

Hello,

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


#9

@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


#10

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


#11

Hi,

unfortunately the position is not always fixed.


#12

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


#13

@balupad14 Done … thank you


#14

The output is always WHITE


#15

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