Esempio n. 1
0
        public void DoMovement(T2S t2s)
        {
            switch ((Path)Properties.Settings.Default.AntiAfkMoves)
            {
            case Path.FRONT_BACK:
                MovePath(new Keys[] { Keys.Up, Keys.Down });
                break;

            case Path.LEFT_RIGHT:
                MovePath(new Keys[] { Keys.Left, Keys.Right });
                break;

            case Path.JUMP:
                MovePath(new Keys[] { Keys.Space });
                break;

            default:
                MovePath(new Keys[] { Keys.Left, Keys.Right });
                break;
            }
            if (t2s.uset2s)
            {
                t2s.Say("Anti A F K");
            }
        }
Esempio n. 2
0
        public async Task DoMovement(T2S t2s, CancellationToken cancellationToken)
        {
            switch ((Path)Properties.Settings.Default.AntiAfkMoves)
            {
            case Path.FRONT_BACK:
                await MovePath(new Keys[] { Keys.Up, Keys.Down }, cancellationToken);

                break;

            case Path.LEFT_RIGHT:
                await MovePath(new Keys[] { Keys.Left, Keys.Right }, cancellationToken);

                break;

            case Path.JUMP:
                await MovePath(new Keys[] { Keys.Space }, cancellationToken);

                await Task.Delay(500, cancellationToken);

                break;

            default:
                await MovePath(new Keys[] { Keys.Left, Keys.Right }, cancellationToken);

                break;
            }
            if (t2s != null)
            {
                t2s.Say("Anti A F K");
            }
        }
Esempio n. 3
0
 public void Say(string text)
 {
     m_mainForm.lblStatus.Text = text;
     if (text == Translate.GetTranslate("manager", "LABEL_PAUSED") || (text == Translate.GetTranslate("manager", "LABEL_STOPPED")))
     {
         m_mainForm.lblStatus.Image = Resources.offline;
     }
     else
     {
         m_mainForm.lblStatus.Image = Resources.online;
     }
     t2s.Say(text);
 }
Esempio n. 4
0
 public void Say(string text)
 {
     m_progressHandle.Report(text);
     t2s.Say(text);
 }