win32api.PostThreadMessage

PostThreadMessage(tid, idMessage, wParam, lParam)

Post a message to the specified thread.

Parameters

tid : int

Identifier of the thread to which the message will be posted.

idMessage : int

The ID of the message to post.

wParam=None : int/str

The wParam for the message

lParam=None : int/str

The lParam for the message

Win32 API References

Search for PostThreadMessage at msdn, google or google groups.