Hello everyone, I need to get some text from a document when I press a certain key (captured via PyHook). I get the following error when I try to run word.ActiveDocument.ActiveWindow.Selection.Text
*pywintypes.com_error: (-2147417843, 'An outgoing call cannot be made since the application is dispatching an input-synchronous call.', None, None)* Putting a sleep before the call mitigates this issues, but Windows starts to ignore PyHook calls after like 10 hits which is sub par. It is hard for me to understand which calls is ingoing/outgoing. What's the best way to avoid this error? Any help would be appreciated. Wasi
_______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32