0

I want to make a program which clicks something with Phyton. Simple.

My problem is, that pyautogui (a package) only works with a mouse plugged in because it takes over the mouse and sends input trough it. I can't use a mouse because the program runs on my server which can't have a mouse. Im using Windows Server 2019

Is there some package which can send inputs without a mouse plugged in? It would be very nice if someone could help me there.

yLetzter
  • 21
  • 5

1 Answers1

0

Use the mouse module. Install with pip install mouse

import mouse

if __name__ == '__main__':
    mouse.move(200, 100)
    mouse.click(button='left')
JostB
  • 126
  • 4