Giter Club home page Giter Club logo

Comments (3)

faaxm avatar faaxm commented on July 28, 2024 1

Will close this issue, since this can be done with PyAutoGUI and system events now and I don't see a way to simulate a double-click purely by posting the right QEvent, which is how the non-PyAutoGUI part of Spix works.

from spix.

faaxm avatar faaxm commented on July 28, 2024

Actually a bigger update is planned for the mouse commands, as they currently also only support clicking in the middle of an object and don't support any other positioning. I am not yet sure as to how I would like the API for this to look in the end and I think it needs some more planning to work for the different use cases.

If you want to go ahead with your implementation, one thing to look out for is that QtQuick can sometimes be a bit "slow" in detecting the mouse cursor. E.g. I found that just moving the mouse onto an object is not always detected, but once you move the cursor around within an object, it does get detected.
However, if you use the existing calls in scene/Qt/QtEvents, this is already accounted for in

// Wiggle the cursor a bit. This is needed to correctly recognize drag events

As a general rule, I like having separate Command classes defined for these types of things rather than reusing the GenericCommand with lambdas. So something like a new MoveMouse command would match the current design.

from spix.

RAMAMario avatar RAMAMario commented on July 28, 2024

Thanks for the feedback. I have no immediate need (and allocated time), so I will not do anything anytime soon. Even more so, if you plan something bigger anyway.

from spix.

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.