I am trying to get hold of the mouse X,Y coords and button status. However, it is not in response to a mouse click or mouse move event. A code sample would be gratefully received.

Thanks in advance.
Shaun Pudwell.