ScreenUPG Assembly > ScreenUPG Namespace > ScreenUPG Class : waitForString Method |
'Declaration
Public Sub waitForString( _ ByVal inText As String, _ ByVal inRow As Integer, _ ByVal inColumn As Integer, _ ByVal wtTime As Integer _ )
Exception | Description |
---|---|
TimedOutException | Thrown if waitHostQuiet times out. |
try { // Waits for the specified text to appear anywhere on the screen string inText = "LOGON"; int inRow = 0; int inColumn = 0; int wTime = 3000; screen.waitForString(inText, inRow, inColumn, wtTime); } catch (TimedOutException toe) { Console.Write("TimedOutException\n"); }
Dim inText As String Dim inRow As Integer Dim inColumn As Integer Dim wTime As Integer 'Text to wait for anywhere inText = "LOGON" inRow = 0 inColumn = 0 wTime = 3000 'Waits for the specified text to appear anywhere on the screen screen.waitForString inText, inRow, inColumn, wTime
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2