Looking for help working with CSV code or excel

Hi
How are you

maybe you can help me to figure this out

We are looking for a way to create a tool that I can automatically open any image on my computer and by clicking the mouse will export to the table (CSV) the color we clicked on RGB.

Thank you so much