You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need a repetitive task done on a virtual ubuntu 22.04 machine. I used pyautogui for it; to connect the screen to pyautogui, I used xvfb with following codes:
I am able to see the screen, and take screenshots using pyautogui, however, the clicking/dragging function doesn't work. Please note that I am connecting to the vitrtual environment using XRDP and have installed light weight ubuntu-desktop. The code is as follows:
import os
from IPython.display import Image
os.environ['DISPLAY'] = ':99'
import pyautogui
screenWidth, screenHeight = pyautogui.size() # Get the size of the primary monitor.
print(screenWidth, screenHeight)
pyautogui.click(200,200)
There is a button on coordinates (200,200), however, it never gets invoked. What can I do?
The text was updated successfully, but these errors were encountered:
I need a repetitive task done on a virtual ubuntu 22.04 machine. I used
pyautogui
for it; to connect the screen topyautogui
, I usedxvfb
with following codes:I am able to see the screen, and take screenshots using
pyautogui
, however, the clicking/dragging function doesn't work. Please note that I am connecting to the vitrtual environment using XRDP and have installed light weight ubuntu-desktop. The code is as follows:There is a button on coordinates (200,200), however, it never gets invoked. What can I do?
The text was updated successfully, but these errors were encountered: