Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mouse-actions not recording shapes #43

Open
compilebunny opened this issue Jun 6, 2024 · 1 comment
Open

mouse-actions not recording shapes #43

compilebunny opened this issue Jun 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@compilebunny
Copy link

This is my first time using mouse-actions.

The gui would not compile using the versions of npm and nodejs that are included with ubuntu 22. So, I'm using the command line instead. I ran 'mouse-actions record' and then swiped from the center of the screen to the right edge with the right mouse button held down. Unfortunately,
mouse-actions seems not to record the point history required for the gesture.

Also, I have a question about use of the left mouse button -- if point histories can be made to work, can mouse-actions be told to trigger when a shape is drawn using the left mouse button?

command to bind (empty to stop the record) : 
xcalc
comment : 
xcalc
[(date-time) INFO  mouse_actions::record] push : Binding {
        comment: "xcalc",
        event: ClickEvent {
            button: Right,
            edges: [],
            modifiers: [],
            event_type: Shape,
            shapes_angles: [
                [],
            ],
            shapes_xy: [
                PointHistory(
                    [],
                ),
            ],
        },
        cmd: [
            "xcalc",
        ],
        cmd_str: "",
    }

@jersou
Copy link
Owner

jersou commented Oct 22, 2024

Hello, which version of NPM/node are you using?
My versions:

$ npm --version                 
10.8.2
$ node --version                 
v20.17.0

I just checked, the GUI build well with these versions.
What's the build error for you?
I just checked, the GUI build well with these versions.

mouse-actions record also worked for me. Can you give you more information? What are you under which OS, under Wayland? Which desktop?

Also, I have a question about use of the left mouse button -- if point histories can be made to work, can mouse-actions be told to trigger when a shape is drawn using the left mouse button?
I just tried, it's possible to configure the left button for the shape events, but it's global to all the shapes and it doesn't go well with the left button.

I keep the issue open for the "left button shape binding" bug.

@jersou jersou added the bug Something isn't working label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants