Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Connect to xvfb screen using VNC #3254

Answered by mdmintz
stvenchg asked this question in Q&A
Discussion options

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.

You must be logged in to vote

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

Comment options

From Google AI:

Screenshot 2024年11月11日 at 3 29 57 PM

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.

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /