code: def drag(*args, function = move):
      
  
      x, y = win32api.GetCursorPos()
      win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN, x, y, 0, 0)
      function(*args)
      x, y = win32api.GetCursorPos()
      win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP, x, y, 0, 0)
docs: Drags the mouse along a specified path
  
      :param args: list of arguments passed to function
      :param function: path to traverse
      :return: None