Skip to content

FasadSalatov/Python-Script-AFK-for-games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This project is a Python script for automatically moving the mouse in games using the PyAutoGUI and Pynput libraries.

Installation

  1. Install Python if you don't have it. Download Python
  2. Clone the repository:
    git clone [https://github.com/<your-username>/<your-project>](https://github.com/FasadSalatov/Python-Script-AFK-for-games/tree/main)https://github.com/FasadSalatov/Python-Script-AFK-for-games/.git
    cd <Python-Script-AFK-for-games>
    

Create a virtual environment (recommended):

python -m venv venv

Activate the virtual environment:

On Windows:

venv\Scripts\activate

On macOS and Linux:

source venv/bin/activate

Install dependencies:

pip install -r requirements.txt

Running the Script

Run the script:

python main.py

The application will start moving the mouse across the screen.

Press the Space key to pause or resume the script.

Terminate the script by pressing Ctrl + C in the terminal.

Configuration

If needed, adjust script parameters such as the number of steps for slow movement directly in the main.py file.

Additional Instructions

Using a Different Key Instead of Space

Open the main.py file.

Change the line:

if key == keyboard.Key.space:

to the desired key. For example:

if key == keyboard.Key.enter:

Adjusting Mouse Parameters

In the main.py file, you can configure mouse movement speed and other parameters by modifying variables in the move_mouse_slowly function.

By Fasad with love❤

About

Open source script for move mouse in game

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages