-
Notifications
You must be signed in to change notification settings - Fork 980
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
selecting text with mouse commands #127
Comments
Mouse events are really weird on Mac. I bet we'll have to specify that the mouse is down for the mouse move or something weird like that. I'll look into it this week! |
Looked into this a little bit, and it seems like you need to pass one of the drag event types (kCGEventLeftMouseDragged, kCGEventRightMouseDragged, kCGEventOtherMouseDragged) to get this to do a selection. It seems like the mouse button also needs to be marked as down, neither is sufficient on its own. |
@noonat nice work. So it sounds like maybe we'll need a |
For sure! Either that or a separate mouse drag function. |
I have a branch with a separate @octalmage How would you like to handle testing for something like that? |
@noonat I currently don't have a way to test events like that, so don't worry about it for now. Create a pull request and I'll test it on all OSes manually. I created something that works locally, but it doesn't work on TravisCI: https://github.com/octalmage/robotjs/tree/keyboard-tests See #98. |
Opened #133 for this. |
I have some code like this:
I was hoping this would have the effect of selecting text, but I can't get the text to get highlighted Any ideas?
The text was updated successfully, but these errors were encountered: