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

Differentiate mouse clicks #122

Open
jtagcat opened this issue Feb 13, 2023 · 5 comments
Open

Differentiate mouse clicks #122

jtagcat opened this issue Feb 13, 2023 · 5 comments

Comments

@jtagcat
Copy link

jtagcat commented Feb 13, 2023

I'd like to do different things based on whether the rectangle was made with left, right (or middle, or mouse5) click.

@apprehensions
Copy link
Contributor

Such as?

@jtagcat
Copy link
Author

jtagcat commented Jun 22, 2024

Don't remember any more, 2 years ago.

Examples out my butt: screenshot to clipboard, edit it, capture in n seconds (for dropdowns), screenshare region

@apprehensions
Copy link
Contributor

Only issue with this is it has to be parsed accordingly. For example pressing mouse 5 on selection can output

100x100 100,100 5 and then it is up to the parser such as a script to remove the mouse identifier and then do actions with it and the remaining geometry.

@jtagcat
Copy link
Author

jtagcat commented Jun 23, 2024

A CLI switch will do, then it doesn't need to be a breaking change. An abstract minor downside is that the theoretical scripts would then possibly be incompatible out of the box with other scripts.

@apprehensions
Copy link
Contributor

Which is why it'd need to be specified via a flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants