screen.resolution.set (512,384)
screen.set (FRONT)
text.display ("Press a key to exit.",CENTER,350)
screen.end ()
@mouse=window.mouse.get ()
repeat ()
text.display (" ",%x+20,%y)
%x=mouse.position.x.get (@mouse)
%y=mouse.position.y.get (@mouse)
text.display (str(%x)+" "+str(%y),%x+20,%y)
until (keyboard.get())
script.stop ()