pyautogui moveto prolongation
import pyautogui
#pyautogui.moveTo(X, Y, Seconds)
pyautogui.moveTo(100, 100, 2) #Move to X=100, Y=100 over a 2 seconds period
Dark Duck
import pyautogui
#pyautogui.moveTo(X, Y, Seconds)
pyautogui.moveTo(100, 100, 2) #Move to X=100, Y=100 over a 2 seconds period
// JavaScript
document.addEventListener("dragover", function(e){
e = e || window.event;
var dragX = e.pageX, dragY = e.pageY;
console.log("X: "+dragX+" Y: "+dragY);
}, false);
// jQuery
$("body").bind("dragover", function(e){
var dragX = e.pageX, dragY = e.pageY;
console.log("X: "+dragX+" Y: "+dragY);
});