Pixel and indicator

 
How can I get the pixel values of a corner of a window indicator relatively of the screen, considering we can change the size of a window.
Thank you