Skip to content

russlamb/move_mouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

move_mouse

Move mouse back and forth using the Win32 API in Python 3

Usage

Install Dependencies

pip install -r requirements.txt

Running Script

Run main.py with the command:
python main.py

Write your own script

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:

  1. Movement_x: if positive, move to the right. Negative, move to the left
  2. Movement_y: if positive, move up. Negative, move down.
  3. Velocity_x: How many pixels to move each second, left and right.
  4. Velocity_y: how many pixels to move each second, up and down.

About

Move mouse back and forth using the Win32 API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages