//    Instruction Example :     long window.position.x.get ()


        screen.resolution.set (512,384)

        %datax=window.desktop.width.get ()

        sprite.display ("avo\logo.spr",CENTER,CENTER)

        for (%i= 1 to  (%datax-512)  step 2)
          window.position.set (%i,0)
          %my_data=window.position.x.get ()
          text.display ("The X 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 ()