<div dir="ltr"><div>Hello,</div><div><br></div><div>I am experimenting with mouse move and cursor position. I would like to simulate fluent mouse move from position1 (current first print point) to position2 (example 100,500). With this code mouse simply "jump" to second position. How can I make nice trajectory with move time for example 1s?</div>
<div><br></div><div>It should not be simple straight line but curved (up or down).</div><div>this is my code:</div><div><br></div><div> from PyQt4 import QtGui, QtCore</div><div> </div><div> point = QtGui.QCursor.pos()</div>
<div> print point</div><div> </div><div> QtGui.QCursor.setPos(100,500)</div><div> </div><div> point = QtGui.QCursor.pos()</div><div> print point</div></div>