This topic has been seen here in some variations. I searched the forum and found some topics but none give a full soution from A to Z.

What I need is this, I wish to know where the mouse is located right now. Wether it is absolute coordinates (relative to the screen's 0,0 location) or Relative coordinates (relative to the window on which the mouse is located).

How would I implement such a thing?

Please advise.