WaitForHostUpdate

Wait for the host to send new screen data. Not useful for VT emulation, which is character based rather than screen based.


Syntax

FlexScreen.WaitForHostUpdate([WaitMSec], [EnableTimeoutError])


Parameters


[WaitMSec]

Integer, input, optional



Number of milliseconds before the wait method will timeout.


[EnableTimeoutError]

Boolean, input, optional



Determines whether a timeout error is generated or not. Default is true.


Remarks

If the optional WaitMSec parameter is specified, it will be used as the maximum wait time before a timeout error occurs. If unspecified, FlexScreen.WaitTimeoutMSec will be used instead.


When a timeout occurs, a run time error will be generated if the EnableTimeoutError parameter is set to True and the macro will stop unless On Error Resume Next is in effect, in which case, WaitForHostUpdate will return a false value.


Example

Sub Main()

  Ok = FlexScreen.WaitForHostUpdate()

  Ok = FlexScreen.SendKeys("MyUserID")

  Ok = FlexScreen.SendKeys(FlexKey.ENTER)

End Sub