Change mouse position while invisible?

You can try to get the mouse cursors location but it gets world location not screen location and it wont actually set it even close to the middle if say you move