Get position of window on open

Hi all,
How can I get the position of window when it is showed?

Thanks in advance.