Mouse control

Right, couldn’t find a thread on this (if anyone else knows of one I wouldn’t mind) - I’m trying to make it so that I can control the mouse for an effect. achieves what I want to achieve with the mouse: taking it to a certain position, playing a small animation with it (ie the dragging) and then returning the mouse to its previous position. Anyone have any ideas?