示例#1
0
        public void Fisching(object dataRulesContainer)
        {
            DataRulesFishingContainer dataRules = dataRulesContainer as DataRulesFishingContainer;

            Init(dataRules);

            while (true)
            {
                ///WoW Key for Eject Angel
                this.myInteroptService.SendKeyToProcess("1");
                Thread.Sleep(this.waitingEjectAngel);
                if (FindColor())
                {
                    if (IsFishBites())
                    {
                        ///WoW Key for Interakt with Mouse
                        this.myInteroptService.SendKeyToProcess("j");
                    }
                }
                else
                {
                    Thread.Sleep(this.waitingForFish);
                }
            }
        }
示例#2
0
 public void Init(string porcessName, string EjectAngel, string MouseInteraktiv)
 {
     this.dataRules = new DataRulesFishingContainer();
     this.dataRules.MyInteroptService = new MyInteroptService(porcessName);
     this.dataRules.EjectAngelKey     = EjectAngel;
     this.dataRules.MouseInteraktKey  = MouseInteraktiv;
 }
示例#3
0
 private void Init(DataRulesFishingContainer dataRules)
 {
     this.waitingForFish    = dataRules.waitingForFish;
     this.waitingEjectAngel = dataRules.waitingEjectAngel;
     this.color             = dataRules.Color;
     this.myInteroptService = dataRules.MyInteroptService;
     this.workScreenArea    = new WorkScreenArea();
 }