Code Monkey home page Code Monkey logo

cppbot's Introduction

C++Bot

Tools for creating your bot in C++.

Features :

  • generate keyboard events
  • generate mouse events
  • access screen pixels data.
  • portable (Linux, Windows, MacOS)

Work in progress

Feature Linux Windows Mac
keyboard 100% 100% 0%
Mouse 100% 100% 0%
Screen 100% 100% 0%

Usage

This is the API :

class CPPBot
{
    public:
        enum { LEFT = 0, MIDDLE = 1, RIGHT = 2};

        // keyboard
        void keyboardPress(const int key);
        void keyboardRelease(const int key);
        void keyboard(const int key);

        // mouse
        void mousePosition(const int x, const int y);
        void mouseGetPosition(int& x, int& y);
        void mousePress(const int button);
        void mouseRelease(const int button);
        void mouse(const int button);
        
        // screen
        const unsigned char* screen();
        const int screenWidth();
        const int screenHeight();

        // initialisation
        CPPBot();
        // destruction
        ~CPPBot();
};

Contribution

I am open to contributions, especialy the MacOS implementation, bug fixes, performances improvements and API suggestions. Thanks you !

I hope it could be useful.

cppbot's People

Contributors

arthursonzogni avatar posva avatar

Stargazers

 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  avatar  avatar  avatar  avatar  avatar

cppbot's Issues

Key generator does not work on Linux

Hi,

This is a nice library. I tried on Mint 20 and keyboard event generator does not work.

Mouse is working. I ran test application but test app also does not generate 'Arthur' key events.

Hope this helps.

Thanks,

nice work

hello
i used on Ubuntu 18 and it works like a hero:D
thank you

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.