SendMsg

Description:

baSendMsg sends a Windows message to a window.

Platforms:

Windows

Usage:

Result = baSendMsg( WindowHandle , Message , wParam , lParam , Wait )

Arguments:

Integer, integer, integer, integer, integer.
WindowHandle is the handle of the window to send the message to.
Message is the message to send.
wParam is additional message information.
lParam is additional message information.
If Wait is true, execution is paused until the window processes the message.

Returns:

Integer.
If Wait is true, the return value specifies the result of the message processing and depends on the message sent.
If Wait is false, returns 1 is the message was successfully posted to the window, else 0.

Examples:

Director:
Result = baSendMsg( 65535, 26 , 0, 0, true ) -- send a WM_WININCHANGE message to all windows.

Authorware:
Result := baSendMsg( 65535, 26, 0, 0, true )
 

Notes:

To use this function, you will need access to Windows API information about messages.