コード例 #1
0
        public void Enter(
            DisplaySession Sess,
            string FileName, string LibraryName, string PositionToMember)
        {
            // tab to first entry field -  file name.
            DisplayLocation loc = new DisplayLocation(3, 22);

            Sess.TabRightToDisplayLocation(loc);

            if (FileName != null)
            {
                Sess.SendKeys(FileName + Ehllapier.Key.FieldExit);
            }

            if (LibraryName != null)
            {
                Sess.SendKeys(LibraryName + Ehllapier.Key.FieldExit);
            }

            if (PositionToMember != null)
            {
                Sess.SendKeys(PositionToMember + Ehllapier.Key.FieldExit);
            }

            Sess.SendKeys(Ehllapier.Key.Enter);
        }
コード例 #2
0
        public void Enter(
            DisplaySession InSess, string InMemberName)
        {
            // tab to first entry field -  source member name.
            DisplayLocation loc = new DisplayLocation(7, 37);

            InSess.TabRightToDisplayLocation(loc);

            InSess.SendKeys(InMemberName + Ehllapier.Key.FieldExit);

            InSess.SendKeys(Ehllapier.Key.Enter);
        }
コード例 #3
0
        public void Enter(
            DisplaySession InSess, string InChangeCreateFlag)
        {
            // tab to first entry field -  file name.
            DisplayLocation loc = new DisplayLocation(5, 42);

            InSess.TabRightToDisplayLocation(loc);

            InSess.SendKeys(InChangeCreateFlag);

            InSess.SendKeys(Ehllapier.Key.Enter);
        }
コード例 #4
0
        public void Enter(
            DisplaySession InSess, string InSelection)
        {
            // tab to entry field as row xxx, col yyy
            var loc = new DisplayLocation(20, 7);

            InSess.TabRightToDisplayLocation(loc);

            InSess.SendKeys(InSelection + Ehllapier.Key.FieldExit);
            InSess.SendKeys(Ehllapier.Key.Enter);
            InSess.Wait();
        }
コード例 #5
0
        public void EnterSubfileOption(
            DisplaySession Sess,
            int RowNbr, string OptionValue)
        {
            // tab to subfile option entry field.
            DisplayLocation loc = new DisplayLocation(11 + RowNbr, 2);

            Sess.TabRightToDisplayLocation(loc);

            Sess.SendKeys(OptionValue + Ehllapier.Key.FieldExit);

            Sess.SendKeys(Ehllapier.Key.Enter);
        }
コード例 #6
0
            public void Enter_Text(DisplaySession InSess, string InText)
            {
                // tab to first entry field -  file name.
                InSess.TabRightToColumn(9);

                InSess.SendKeys(InText + Ehllapier.Key.Enter);
            }
コード例 #7
0
            public PresentationSpace F3_Exit(DisplaySession InSess)
            {
                PresentationSpace ps = null;

                InSess.SendKeys(Ehllapier.Key.F3);
                ps = InSess.GetPresentationSpace();
                return(ps);
            }
コード例 #8
0
            public void Enter_Insert(DisplaySession InSess)
            {
                // tab to first entry field -  file name.
                DisplayLocation loc = new DisplayLocation(3, 1);

                InSess.TabRightToDisplayLocation(loc);

                InSess.SendKeys("I" + Ehllapier.Key.Enter);
            }
コード例 #9
0
        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);
            }
        }
コード例 #10
0
        private void SessionTester( )
        {
            var ehSettings = EhllapiSettings.RecallSettings();

            // make sure the session is active.
            SessionScript.Assure_ClientAccessSession(ehSettings);

            // bring the 5250 window to the foreground.
            Ehllapier.SetForegroundWindow(ehSettings.SessId);

            // make sure signed on.
            if (SignonScreen.IsScreen(ehSettings))
            {
                var script = new SessionScript();
                script.Play_Signon(ehSettings);
            }

            // in the strseu screen. Exit back to presumably wrkmbrpdm.
            if (StrseuScreen.EditScreen.IsScreen(ehSettings))
            {
                StrseuScreen.EditScreen.F3_Exit(ehSettings);

                if (StrseuScreen.ExitScreen.IsScreen(ehSettings))
                {
                    StrseuScreen.ExitScreen.Enter(ehSettings);
                }
            }

            // in the seu browse screen. press enter to exit.
            if (StrseuScreen.BrowseScreen.IsScreen(ehSettings))
            {
                StrseuScreen.BrowseScreen.Enter_Exit(ehSettings);
            }

            using (DisplaySession sess = new DisplaySession())
            {
                bool isScreen = false;
                sess.Connect(ehSettings.SessId);

                // display messages. press enter.
                if (DisplayMessagesScreen.IsScreen(sess))
                {
                    sess.SendKeys(KeyboardKey.Enter);
                }
            }
        }
コード例 #11
0
 public void Enter(DisplaySession InSess)
 {
     InSess.SendKeys(Ehllapier.Key.Enter);
 }
コード例 #12
0
 public void F6_Add(DisplaySession InSess)
 {
     InSess.SendKeys(Ehllapier.Key.F6);
 }
コード例 #13
0
 public void Enter(DisplaySession InSess, string InText)
 {
     InSess.SendKeys(InText + Ehllapier.Key.Enter);
 }