Task

Get the current location of the mouse cursor relative to the active window.

Please specify if the window may be externally created.




until *Pending() > 0 & Event() == "q" do { # loop until there is something to do
   px := WAttrib("pointerx")
   py := WAttrib("pointery")
   #  do whatever is needed
   WDelay(5)  # wait and share processor
   }
 