Move mouse back and forth using the Win32 API in Python 3
pip install -r requirements.txt
Run main.py with the command:
python main.py
Call the move_mouse function with the desired parameters. The script will move the mouse back and forth until the Q key is pressed.
The function move_mouse takes 4 parameters:
- Movement_x: if positive, move to the right. Negative, move to the left
- Movement_y: if positive, move up. Negative, move down.
- Velocity_x: How many pixels to move each second, left and right.
- Velocity_y: how many pixels to move each second, up and down.