win32gui.SendMessageTimeout
int,int = SendMessageTimeout(hwnd, message , wparam , lparam , flags , timeout )
Sends a message to the window.
Parameters
Return Value
The result is the result of the SendMessageTimeout call, plus the last 'result' param. If the timeout period expires, a pywintypes.error exception will be thrown, with zero as the error code. See the Microsoft documentation for more information.