Comments (9)
Tried to implement your fix, now the doubleClick doesn't click anymore at all, and the normal click with clicks=2 argument still clicks too slowly for it to be accepted as a double-click. It's entirely possible I messed up copy&pasting, but I don't get any errors or anything. (I'm on Sierra 10.12.)
from pyautogui.
Interesting, did you try to pull the fork from https://github.com/HesselM/pyautogui ? At El Capitan it seems to be working. At least, in my setup ( https://github.com/HesselM/Mouser ) double-click is properly registered.
from pyautogui.
EDIT3: okay, I finally sorted it out, I think. First I forgot to run the setup.py from your fork (can you tell it's the first time I didn't use pip?) and then the issue was that I didn't know the window had to be active for the double click to work. When you double click manually, it doesn't matter whether Finder active, it works either way. If you do it with pyautogui, Finder needs to be active first and then your fix works perfectly. Thanks again! (Also thank your patience, in case I accidentally spammed your inbox.)
from pyautogui.
This person seems to be having the same problem: https://stackoverflow.com/questions/39971605/pyautogui-doubleclick-not-working-on-osx
from pyautogui.
@FranAitch : Sorry for the delay, but awesome that you got it working!
@asweigart : True, but the response of ca5aw
refers to pull request #72, which I created a couple of months ago with a fix. (At least, the fix works for me and is seems it works for FranAitch too)
from pyautogui.
@HesselM I'll look at your fix tonight (or tomorrow). I finally have my hands on a Mac to do testing on.
from pyautogui.
Any update on this?
from pyautogui.
It is 2021 and I am still having issues with double clicks. It is not working, single clicks are performed all the time, but there is no double click being recognized.
from pyautogui.
it it 2022.10, and I also have the same problem with doubleClick function, it seems to be a single click and the duration keeps 0.0
on MacOS 12.6 m1
from pyautogui.
Related Issues (20)
- Method Click move cursor. HOT 2
- locateOnScreen flickery on Ubuntu HOT 1
- Bot Facebook
- Omissions in Quickstart Screenshot & Locate
- Questions about Copilot + Open Source Software Hierarchy HOT 1
- pyautogui should propagate the ImageNotFoundException message upward
- Image File Not Found Exception... HOT 5
- trying to use it in the text editor HOT 2
- pyautogui.moveTo() HOT 1
- Is this possible to use locateOnScreen against captured image file instead of screen image? HOT 1
- pyautogui.typewrite replaces '<' with '>' HOT 3
- N/A HOT 1
- pyautogui fails to recognize special characters such as "á, é, í, ó and ú"
- How to check if .typewrite() failed or read the text you tried to insert?
- failed
- screenshot "region" type verification
- Enter key not being recognized by web page
- `locateAllOnScreen` raises `pyscreeze.ImageNotFoundException` HOT 1
- Typing doesn't work on different keyboard layouts HOT 2
- with pyautogui.hold(alt'): problem HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyautogui.