A question about python Pyautogui?

Asked

Viewed 567 times

0

Is it possible for me to use Pyautogui in a browser that is not showing up on the screen ? Type I create a code for Pyautogui to work with the coordinates of a specific browser(eg Firefox) while I view other things on the screen(eg watch youtube video) in another browser(eg: Opera) ?

what I want to do is click on a particular location every 5 minutes +ou- and that operation and quick however the interval between them is not. No matter I lose control of the mouse in those milliseconds what I didn’t want was to have to leave the screen open on the screen

ps: I’m sorry if I didn’t know how to express myself very well.

From now on I thank and forgive the ignorance.

1 answer

1

Pyautogui does not actually know what is appearing on the screen, what it does is automate the operation of the mouse and keyboard. If you intend to click a specific browser (including headless) I recommend you try the Selenium library. Pyautogui will click on the place where you map the click INDEPENDENT of what is appearing at that screen position.

  • Precisely - using Selenium is the correct recommendation in this case.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.