private void тестToolStripMenuItem_Click(object sender, EventArgs e) { Auto.GetLocation(); return; List <Auto.Food> food = Auto.GetFood(new string[] { "Пирожок" }); foreach (Auto.Food foodx in food) { BotFunc.AddLog(foodx.Id); } return; BotFunc.Find find = BotFunc.ImageSearchInGameWindow(new Bitmap("Images/eleksiry.bmp")); if (find.Found) { BotSuite.Mouse.MoveRelativeToWindow(BotBase.WebControlHandle, find.Coordinates, false); } //Forms.Debug.ShowHtml showHtml = new Forms.Debug.ShowHtml("http://atlantida-o.ru/locclick.php?&" + BotFunc.GetRandomNumbers(13)); //showHtml.Show(); //BotFunc.JsEx("sendpost2('fields.php', {bid: 1, tab: 1});"); //if (respp.Contains("Отказаться")) //{ // BotFunc.AddLog("Ждем начала"); //} //MessageBox.Show(respp); }
public static void ClickEleksir(int element) { int[] x = { 0, +30, +17, +22, +33, +64, +34, -13, -29, -26 }; int[] y = { 0, -170, -122, -73, -26, +17, -235, -209, -155, -96 }; BotFunc.Find find = BotFunc.ImageSearchInGameWindow(new Bitmap("Images/eleksiry.bmp")); if (find.Found) { Point p = new Point(find.Coordinates.X + x[element], find.Coordinates.Y + y[element]); BotFunc.LeftClick(p); } }