asweigart / asweigart/PyGetWindow
When using IPython, window.activate() raises error.
- Dominant language
- Python
- Stars
- 422
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Description
When I am testing my code with IPython, using `window.activate()` raises an error.
When writing the same exact code into a `.py` file and running it, it works as expected.
Code:
```py
# activate Bloons TD 6 window.
btd6_window = pygetwindow.getWindowsWithTitle("BloonsTD6")[0]
btd6_window.activate()
```
Error:
```
c:\program files\python38\lib\site-packages\pygetwindow\_pygetwindow_win.py in _raiseWithLastError()
95 information from GetLastError() and FormatMessage()."""
---> 97 raise PyGetWindowException('Error code from Windows: %s - %s' % (errorCode, _formatMessage(errorCode)))
98
99
PyGetWindowException: Error code from Windows: 997 - Overlapped I/O operation is in progress.
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.