Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

JavaScript
function WaitForString(waitString, timeout);


Parameters

waitString
Type: System..::.StringThe String
The string to search the screen for.

timeout
Type: System..::.Int32Number Int32
Number of seconds to wait for the string to appear before returning.

...

Status codeDescription
OkThe string was found before the timeout expired.
WHLLNOTCONNECTEDYour application is not currently connected to a session (see Connect(Object)).
WHLLNOFIELDThe specified string was not found on the host presentation space before the timeout expired.
WHLLPARAMETERERRORYou either specified an empty string to search for, or a the timeout value of 0 or less.
WHLLPOSITIONERRORSpecified screen position value is invalid.
WHLLSYSERRORThe method failed due to a system error.

...