Can anyone change this script for me

hi ppl,
i just started to learn python so i still dont know how to convert script etc,can anyone change this script for me and make it work for blender 2.57 ?
import Rasterizer as R
cont = GameLogic.getCurrentController()
own = cont.getOwner()
mPosi = cont.getSensor(“MousePosi”)

Start mouse position at center of game screen

if own.init == 1:
R.setMousePosition(R.getWindowWidth()/2, R.getWindowHeight()/2)
own.init = 0

Move cursor to mouse position

cursorPosi = mPosi.getRaySource()
own.setPosition(cursorPosi)

thanks in advance,
Romy

 
imoprt GameLogic
import Rasterizer as R
cont = GameLogic.getCurrentController()
own = cont.getOwner()
mPosi = cont.getSensor("MousePosi")
### Start mouse position at center of game screen
if own.init == 1:
  R.setMousePosition(R.getWindowWidth()//2, R.getWindowHeight()//2)
  own.init = 0
### Move cursor to mouse position
cursorPosi = mPosi.getRaySource()
own.setPosition(cursorPosi)

custom3DCursor2_5x.blend (309 KB)

Thanks HG1,:smiley:
i tried something similar to that which didnt work now everything is running smoothly thanks man !
ima start using the new blender version so i need to get updated asap ^^