from pymouse import PyMouse m = PyMouse() a = m.position() #Get the position of the current coordinates print (a) m.move( 50, 500) #mouse to (x,y) position a = m.position() print (a) m.click( 50, 50) #move and left click at (x,y) m.click( 300, 300, 2) # right click at (300,300)