Set per-monitor DPI awareness explicitly and verify picks on mixed-DPI desktops
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- python
- Área
- accessibility, desktop
Línea de trabajo
Start with the entry point that defines main(), autoclicker/gui/picker.py, and click_engine.py; inspect WindowsAutoclicker.spec and the DPI notes in docs/ARCHITECTURE.md and docs/PERFORMANCE.md. Verify the awareness call runs before Tk and PyAutoGUI load, then use the proposed unit test and manually check picked clicks on both monitors of a mixed-DPI Windows desktop. Done means per-monitor awareness is documented and each click lands on its picked pixel.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Why it matters
Picking and clicking only line up if the picker (Tk) and the clicker (PyAutoGUI / Win32) agree on what a pixel is. Today the process's DPI awareness is set implicitly, as a side effect of importing PyAutoGUI, and only to system awareness. On the setups where coordinate bugs actually happen (a 4K laptop at 150% next to a 1080p monitor at 100%), Windows virtualizes coordinates per monitor for system-aware apps. The result may be fine, slightly off, or a blurry overlay on one screen, and nothing in the repo verifies which.
Evidence
pyautogui/_pyautogui_win.pycallsctypes.windll.user32.SetProcessDPIAware()at import (system-aware, not per-monitor).- No
SetProcessDpiAwarenessContextcall and no manifest entry inWindowsAutoclicker.spec; nothing inautoclicker/mentions DPI. autoclicker/gui/picker.pysizes the overlay fromGetSystemMetrics(SM_*VIRTUALSCREEN)and reportsevent.x_root/y_root;click_engine.pymoves withpyautogui.moveTo. Correctness on mixed-DPI desktops depends on both sides being virtualized identically.docs/PERFORMANCE.mdanddocs/ARCHITECTURE.mdalready list "multi-monitor DPI risk" as a reason to defer aSendInputpath.
Suggested approach
- Set awareness explicitly and first thing in
main()(before Tk and PyAutoGUI load):SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2)with fallbacks toSetProcessDpiAwareness(2)andSetProcessDPIAware(). Optionally also embed it in the exe manifest. - Manually verify on a mixed-DPI two-monitor setup: pick a point on each monitor, run, and confirm the click lands on the picked pixel. Record the result in
docs/ARCHITECTURE.md. - Add a unit test that
main()calls the awareness setter before creating the app.
Done when
- DPI awareness is explicit, per-monitor v2 where available, and documented.
- Picks on every monitor of a mixed-DPI desktop click the exact picked pixel (verified once manually and noted in docs).
- Lenguaje dominante
- Python
- Estrellas
- 0
- Forks
- 2
- Merge medio
- 2 d 13 h
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de TMHSDigital/autoclicker
-
maintenance priority: low
Dificultad 3/5 Medio día Aptitud para principiantes 56/100
TMHSDigital/autoclicker#202 ·
Los mantenedores suelen responder en 3 días
-
bug priority: low
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
TMHSDigital/autoclicker#201 ·
Los mantenedores suelen responder en 3 días
-
dependencies maintenance priority: medium
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
TMHSDigital/autoclicker#154 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
marketing packaging priority: low
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
TMHSDigital/autoclicker#118 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
documentation marketing priority: medium
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
TMHSDigital/autoclicker#117 · 1 comentario ·
Los mantenedores suelen responder en 3 días
Todos los issues de TMHSDigital/autoclicker
Issues similares
-
hive size:simple
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
A new VOLTTRON_HOME starts with agent isolation mode on (string comparison of a boolean default)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
painted-porch/marcus#977 ·
Los mantenedores suelen responder en 1 día
-
llm translation
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
FAIRmat-NFDI/sand#239 ·
Los mantenedores suelen responder en 1 día