[pywin32-bugs] [ pywin32-Bugs-1075871 ] Error calling win32gui.GetActiveWindow()
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2004-12-01 09:49:57
|
Bugs item #1075871, was opened at 2004-11-30 20:37 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1075871&group_id=78018 Category: win32 Group: None >Status: Closed >Resolution: Wont Fix Priority: 5 Submitted By: Thomas Schmid (scth2000) Assigned to: Nobody/Anonymous (nobody) Summary: Error calling win32gui.GetActiveWindow() Initial Comment: When i call win32gui.GetActiveWindow() from the PythonWin IDE, the call succeeds. But if i call win32gui.GetActiveWindow() from anywhere else (PyDev within Eclipse, VisualPython, Python in CommandShell), the call fails with following error message: Traceback (most recent call last): File "<stdin>", line 1, in ? pywintypes.error: (0, 'GetActiveWindow', 'No error message is available') I'm using win32all build 163 WinXP ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2004-12-01 20:49 Message: Logged In: YES user_id=14198 This means that the win32 GetActiveWindow() function is returning NULL. The "bug" here is that Python should probably return None - but that wont be fixed as it would break existing code. If you are sure that this exception is being raised when the API function is returning a valid handle, please re-open and add more information. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1075871&group_id=78018 |