L
L
leham12020-04-27 19:15:51
Python
leham1, 2020-04-27 19:15:51

How to focus on another window in pyautogui?

Hello.
I need, in pyautogui, to focus on another window (for example, by its title, or something else). I figured out how to work with the current window (minimize it, expand it, close it, etc.). But I can't figure out how to switch to another window.

Please help someone with good advice)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
Hcuy, 2020-04-28
@Hcuy

If we are talking about a second monitor, then this library does not work with second screens.
But if we are talking about the program window, then this library has a photo search function, you can find the desired window by the program icon, which will be in the upper right corner when you open the program.
If that's a good explanation of the library
True, there are two videos on this topic, which one explains the search by photo, I don’t remember, take a look on the channel.
PS For some reason, the link does not work for me, so I'll just throw the address with the text
https://youtu.be/iZzx1keKztY

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question