Skip to content

Instantly share code, notes, and snippets.

View aysnrdurak's full-sized avatar
💫
Send positive energy

Ayşenur Durak aysnrdurak

💫
Send positive energy
View GitHub Profile
@phoboslab
phoboslab / mousemove.py
Created June 26, 2012 19:44
Python script to move the mouse cursor in windows with constant speed
import sys
import time
import win32api
if (len(sys.argv) < 4):
print "Usage: python mousemove.py dx dy speed"
sys.exit()
current = win32api.GetCursorPos()
cx = sx = current[0]