Python win32api not moving mouse cursor in VirtualBox
- by wes
I'm trying to use this Python code:
import math
for i in xrange(500):
x = 500 + math.sin(math.pi * i / 100) * 500
y = 500 + math.cos(i) * 100
x, y = int(x), int(y)
win32api.SetCursorPos((x, y))
time.sleep(.01)
taken from here to move the mouse cursor in an XP VirtualBox. The mouse icon will flicker to the appropriate graphic…