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); } } }
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; }
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(); }