Function Reference


_SendMessageA

Send a Message to a Window/Control (Force Ansi Call)

#include <SendMessage.au3>
_SendMessageA ( $hWnd, $iMsg [, $wParam = 0 [, $lParam = 0 [, $iReturn = 0 [, $wParamType = "wparam" [, $lParamType = "lparam" [, $sReturnType = "lresult"]]]]]] )

Parameters

$hWnd Window/control handle
$iMsg Message to send to control (number)
$wParam [optional] Specifies additional message-specific information
$lParam [optional] Specifies additional message-specific information
$iReturn [optional] What to return:
    0 - Return value from DLL call
    1 - $ihWnd
    2 - $iMsg
    3 - $wParam
    4 - $lParam
    <0 or > 4 - array same as DllCall
$wParamType [optional] See DllCall in Related
$lParamType [optional] See DllCall in Related
$sReturnType [optional] See DllCall in Related

Return Value

Success: the user selected value from the DllCall() result.
Failure: sets the @error flag to non-zero.

Remarks

When a message is blocked by UIPI the last error, retrieved with _WinAPI_GetLastError(), is set to 5 (access denied).

Related

DllCall(), _SendMessage, _WinAPI_GetLastError