-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Activate does not work #36
Comments
Same after using it regularly for months; here's the error where DeltekWindow is from DeltekWindow = gw.getWindowsWithTitle('Deltek')[0] Traceback (most recent call last): |
Hi, |
Hi I have the same error. The first time call win.activate() is working. But get the error when call the second time with other window. Could you take a look please? Thanks! |
Same here. |
Hi, I got the same issue. window.minimize()
window.restore() |
I learned there are limitations when working with this method. When I tried the Reading the SetForegroundWindow doc:
So I tried invoking |
It seems there is a short-term solution available. The above web page is an example of win32gui, but it appears to be applicable to this library as well. code example: import pyautogui
# some process...
if not window.isActive:
pyautogui.press('altleft')
window.activate() |
Wow, it works! |
No description provided.
The text was updated successfully, but these errors were encountered: