win32gui.SendMessage

int = SendMessage(hwnd, message , wparam , lparam )

Sends a message to the window.

Parameters

hwnd : int

The handle to the Window

message : int

The ID of the message to post

wparam=None : int/str

Type depends on the message

lparam=None : int/str

Type depends on the message