-
Notifications
You must be signed in to change notification settings - Fork 1.4k
-
Hi guys,
I'm trying to automate a click on an element using PyAutoGUI in an xvfb environment. However, the click isn't being registered. I'd like to connect to the xvfb instance to observe where the cursor is moving. Is this possible? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
mdmintz
Nov 11, 2024
From Google AI:
Using PyAutoGUI with VNC can be tricky due to a few key considerations:
Challenges:
- Coordinate Mapping: The coordinates on your local machine might not match the coordinates on the remote VNC machine.
- Window Focus: PyAutoGUI relies on the active window. If the VNC window loses focus, your automation might fail.
- Performance: VNC can introduce lag, affecting the timing of your automation scripts.
Solution: Don't use VNC if you need to use PyAutoGUI actions.
Replies: 1 comment
-
From Google AI:
Screenshot 2024年11月11日 at 3 29 57 PMUsing PyAutoGUI with VNC can be tricky due to a few key considerations:
Challenges:
- Coordinate Mapping: The coordinates on your local machine might not match the coordinates on the remote VNC machine.
- Window Focus: PyAutoGUI relies on the active window. If the VNC window loses focus, your automation might fail.
- Performance: VNC can introduce lag, affecting the timing of your automation scripts.
Solution: Don't use VNC if you need to use PyAutoGUI actions.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment