BOOL GetEventAlways (long Flags)
Flags to control how the event is retrieved. See the description of the flgs parameter toIt_GetEventEx in the GUI Library for possible flag values.
Returns TRUE on success, FALSE on error.
Gets the current event, without checking the GetNotSend flag. In most cases, two consecutiveGetEvent 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.