WaitForNoX
WaitForNoX
Wait for the host to be in a ready state (no input inhibited conditions). Not valid for VT emulation.
Syntax
FlexScreen.WaitForNoX([WaitMSec])
Parameters
[WaitMSec] |
Integer, input, optional |
|
Number of milliseconds before the wait method will timeout. |
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 and the macro will stop unless On Error Resume Next is in effect, in which case, WaitForNoX will return a false value.
Example
Sub Main()
Ok = FlexScreen.WaitForNoX()
Ok = FlexScreen.SendKeys("MyUserID")
Ok = FlexScreen.SendKeys(FlexKey.ENTER)
End Sub