Coder Social home page Coder Social logo

ehonnef / afk-clicker Goto Github PK

View Code? Open in Web Editor NEW
40.0 2.0 12.0 7 KB

An AFK clicker that allow to simulate keystrokes (mouse or keyboard) even if the window isn't focused.

Python 90.73% Shell 9.27%
minecraft afkfarming minecraft-farming-bot auto-clicker autoclicker not-focused-window win32api pywin32 linux-script xdotool

afk-clicker's Introduction

AFK clicker

A simple AFK clicker that allow to simulate keystrokes (mouse or keyboard) even if the window isn't focused.

Tested on windows using notepad and minecraft (afk fish farm :D).
Tested on linux using minecraft.

If you tested in another game/application please let me know opening an issue or even contribuiting making a pull request.

Windows Usage

Just take the application PID from the task manager and call as python Main.py -p PID_NUMBER.
Or you can use the application name from task manager and call as python Main.py -n "APPLICATION NAME", remember that applications can have more than one name, take minecraft for example, in task manager you see as Java(TM) Platform SE binary but if you place this name it'll get an error while if you expand the task (an arrow beside its name) it'll show Minecraft 1.13.2 and that'll work.
Use the argument option -m or --mouse to choose the right or left click (1 for left and 2 for right).
Use the option -k or --key to choose the keyboard key Link to the list of windows virtual keys. Use the hexadecimal code, example, --key 0x46.
Use command python Main.py -h or python Main.py --help to show some help with command line arguments.
If you run without the -k or -m option, it'll do nothing. (modify the code as it suits you).
For minecraft users: press F3 + p to disable the pause menu when you change the focus (use windows key or alt + tab to change window).

Windows Requirements

Python 3 (tested with 3.12.0)

  • For libraries check the file requirements.txt or run the command pip install -r requirements.txt.

Legacy

  • Python 3 (tested with 3.7).
  • For libraries check the file requirements.txt or run the command pip install -r requirements.txt.
    • Maybe you need an extra lib called win32gui>=221.6, could not test using python 3.7.

Linux Usage

Run the command ./script.sh WINDOW_NAME MOUSE_BUTTON or bash script.sh WINDOW_NAME MOUSE_BUTTON.
If you are having any trouble try chmod +x script.sh to make it executable.

Linux Requirements

xdotool. Tested on manjaro.

afk-clicker's People

Contributors

ehonnef avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

afk-clicker's Issues

Hey man, it's me, necromancer!

I know this repo has been super dead for the past 4 years, but I really want to find myself a working autoclicker bc I don't know how to code. Libraries can't be installed now, versions stated are ether too old or non-existent, and it does nothing when run. Can I somehow revive in? All I need is to spam 1 keyboard button every 20 seconds in TF2 (specific window)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.