screen.resolution.set (512,384)
%datax=window.desktop.height.get ()
sprite.display ("avo\logo.spr",CENTER,CENTER)
for (%i= 1 to (%datax-384) step 2)
window.position.set (0,%i)
%my_data=window.position.y.get ()
text.display ("The Y position of the window on the desktop is : " + STR (%my_data),CENTER,10)
next ()
text.display ("Press a key to exit.",CENTER,350)
keyboard.wait ()
script.stop ()