Reflection .NET API
Get Started / Navigating Through Open Systems Sessions
In This Topic
    Navigating Through Open Systems Sessions
    In This Topic

    After sending data to a host, using VT or other non-block mode emulation, you must pause execution until you determine when the host has finished with its reply.

    Navigate a session
    Copy Code
    //For any terminal screen, you can use the following methods to navigate 
     IScreen screen = terminal.Screen;
           
    //Wait for the host before entering commands
    screen.Wait(3000);
    screen.SendKeys("demodata");
    screen.SendControlKey(ControlKeyCode.Enter);
    
    //Wait for the host before entering additional commands
    screen.Wait(3000);
    //additional commands...
            
    

     

    Finding and Moving to Screen Locations

    You can use Reflection Search functions to find locations on the screen that you want to use as a starting point for a selection.

    This sample finds the text "Jan"  on an Open Systems screen.

    //Wait for the host and then select data on screen
     screen.Wait(3000);
     ScreenPoint point = screen.SearchText("Jan", 1,1,FindOptions.Forward);
     screen.SetSelectionStartPos(point.Row, point.Column);
     screen.ExtendSelection(point.Row, (point.Column + 3));
    

    See Also