Waits for the cursor to appear at the specified position for a specified period of time.


Namespace: ScreenUPG
Assembly: ScreenUPG (in ScreenUPG.dll)

Syntax

Visual Basic (Declaration)
Public Sub waitForCursor( _ 
   ByVal inRow As Integer,  _ 
   ByVal inColumn As Integer,  _ 
   ByVal wtTime As Integer _ 
)
C#
public void waitForCursor(
   int inRow,
   int inColumn,
   int wtTime
)
C++
public:
 void waitForCursor(
   int inRow,
   int inColumn,
   int wtTime
) sealed 
J#
public void waitForCursor(
   int inRow,
   int inColumn,
   int wtTime
)
JScript
public  function waitForCursor(
   inRow : int,
   inColumn : int,
   wtTime : int
)

Parameters

inRow
The row in which the cursor must appear to satisfy the wait. When inRow is set to zero, the wait is satisfied when the cursor appears in the column specified regardless of which row the cursor is in.
inColumn
The column in which the cursor must appear to satisfy the wait. When inColumn is set to zero, the wait is satisfied when the cursor appears in the row specified regardless of which column the cursor is in.
wtTime
The number of milliseconds to wait for the condition to be satisfied before timing out.

Exceptions

Exception TypeCondition
T:TimedOutException Thrown if waitHostQuiet times out.

Example

[C#]

 Copy Code
            try
            {
                int inRow = 17;
                int inColumn = 20;
                int wtTime = 3000;
                
                // Wait for cursor to appear at row 17, column 2, wait for 3 seconds
                screen.waitForCursor(inRow, inColumn, wtTime);
            }
            catch(TimedOutException toe)
            {
                Console.Write("TimedOutException\n");
            }
            
[VB]
 Copy Code
            Dim inRow As Integer
            Dim inColumn As Integer
            Dim wtTime As Integer
            
            'Wait for cursor to appear at row 17, column 2, wait for 3 seconds
            screen.waitForCursor inRow, inColumn, wtTime
            

See Also