public void AssureSignoff(EhllapiSettings Settings) { SessionScript script = new SessionScript(); try { using (DisplaySession sess = new DisplaySession()) { sess.Connect(Settings.SessId); var sos = new CommonScreens.SignonScreen(sess.GetPresentationSpace( )); if (sos.IsScreen( ) == true) { Play_Signoff(sess); } } } catch (ApplicationException excp) { throw new EhllapiExcp("AssureSignoff failed. " + excp.Message, excp); } }
public static void Play_ItemLocatorInquiry(EhllapiSettings InSettings) { try { PresentationSpace ps = null; SessionScript script = new SessionScript(); script.AssureSignoff(InSettings); // signon the display script.Play_Signon(InSettings); using (DisplaySession sess = new DisplaySession()) { sess.Connect(InSettings.SessId); // tab to the menu option input field sess.SendKeys(Ehllapier.Key.TabRight); // option i sess.SendKeys("i"); sess.Wait(); // 6174054 sess.SendKeys("6174054" + Ehllapier.Key.Enter); sess.Wait(); // option 10 sess.SendKeys(Ehllapier.Key.TabRight + Ehllapier.Key.NewLine + "10" + Ehllapier.Key.Enter); sess.Wait(); } } catch (ApplicationException excp) { throw new EhllapiExcp("Play_ItemLocatorInquiry script failed", excp); } }