public static bool IsScreen(DisplaySession DisplaySession) { DisplayMessagesScreen dms = new DisplayMessagesScreen(DisplaySession.GetPresentationSpace()); if (dms.IsScreen() == true) { return(true); } else { return(false); } }
public void Enter( DisplaySession InSess, string InUserName, string InPassword) { // tab to entry field as row xxx, col yyy var loc = new DisplayLocation(6, 53); InSess.TabRightToDisplayLocation(loc); InSess.SendKeys(InUserName + Ehllapier.Key.FieldExit); InSess.SendKeys(InPassword + Ehllapier.Key.FieldExit); InSess.SendKeys(Ehllapier.Key.Enter); InSess.Wait(); // advance past "display messages" screen. DisplayMessagesScreen dpm = new DisplayMessagesScreen(InSess.GetPresentationSpace( )); if (dpm.IsScreen( )) { dpm.Enter(InSess); } }