BOOL GetEventAlways (long Flags)



Flags to control how the event is retrieved. See the description of the flgs parameter to It_GetEventEx in the GUI Library for possible flag values.

Return Value

Returns TRUE on success, FALSE on error.


Gets the current event, without checking the GetNotSend flag. In most cases, two consecutive GetEvent calls without an intervening SendKey or SendEvent can cause the system to hang waiting for a second event that will not come. In some cases, such as when monitoring rather than driving GUI usage with SAP Automation GUI, multiple consecutive GetEvent calls can be required. GetEventAlways is used then.

See Also