win32gui.SendMessageTimeout
int,int = SendMessageTimeout(hwnd, message
, wparam
, lparam
, flags
, timeout
)
Sends a message to the window.
Parameters
hwnd : int
The handle to the Windowmessage : int
The ID of the message to postwparam : int
An integer whose value depends on the messagelparam : int
An integer whose value depends on the messageflags : int
Send optionstimeout : int
Timeout duration in milliseconds.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.