How to do a double-click? #66
Comments
For double-click, see my fork at https://github.com/potpath/autopy. I ported double-click code from |
Thanks. Is your code cross-platform or does it only work on the Mac? On Sat, Mar 21, 2015 at 8:45 AM, potpath notifications@github.com wrote:
Michael |
Your patch works for me. There were a couple lines you had to change to keep clang happy. I had to switch them back for the same reason. We're probably using different versions of some library.
|
I think it might be the Python version. I'm using this one, installed by homebrew:
|
I haven't tested it on any platform other than Mac, but I think it should work. I installed Python by MacPorts:
For me, I think it should be about compiler. This is my clang:
|
I have a similar clang:
I think it's likely a python two versus Python three issue. |
I implemented triple click in my fork. Let me know if you want want a pull request. Thanks again. This was really helpful. |
mouse.click works great. But i can't figure out how to do a double-click. I've tried various ways. I'm on the mac platform.
For example, this doesn't work with or without the sleep calls.
I'd also be interested in being able to click and hold to drag a window for example.
If you want to try dragging then you might try something like
mouse.toggle(True)
and then latermouse.toggle(False)
. This does not have the effect of dragging the window smoothly. The window does jump from where it was to Where the mouse is when you you called the second toggle.The text was updated successfully, but these errors were encountered: