!7 p-subst { repeat with ms sleep 500 { awt { Component c = componentAtMouse(); if (c != null) { Point p = c.locationOnScreen(); Point m = mouseLocation(); Point d = new Point(m.x-p.x, m.y-p.y); print("Mouse: " + d.x + ", " + d.y + ": " + c); } else print("Mouse: " + c); } } }