Git Product home page Git Product logo

Comments (2)

ranisalt avatar ranisalt commented on July 29, 2024

From the manpage:

       click [-d,--next-delay <ms>] [-r,--repeat N ] [button ...]
           Send a click.

           Options: -d,--next-delay <ms>
               Delay between input events (up/down, a compete click means doubled time). Default 25ms.

           -r,--repeat N
               Repeat entire sequence N times

           all mouse buttons are represented using hexadecimal numeric values, with an optional bit mask to specify if mouse up/down needs to be omitted.

           •   0x00 - LEFT
           •   0x01 - RIGHT
           •   0x02 - MIDDLE
           •   0x03 - SIDE
           •   0x04 - EXTR
           •   0x05 - FORWARD
           •   0x06 - BACK
           •   0x07 - TASK
           •   0x40 - Mouse down
           •   0x80 - Mouse up

       Examples:

           •   0x00: chooses left button, but does nothing (you can use this to implement extra sleeps)
           •   0xC0: left button click (down then up)
           •   0x41: right button down
           •   0x82: middle button up

           The '0x' prefix can be omitted if you want.

To hold down the left mouse button, use ydotool click 0x40 (or ydotool click 40)

from ydotool.

Related Issues (20)

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.