Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [DllImport("gdi32", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
- private static extern int GetPixel(IntPtr hdc, int X, int Y);
- [DllImport("user32", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
- private static extern IntPtr GetDC(IntPtr hWnd);
- [DllImport("user32", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
- private static extern IntPtr ReleaseDC(IntPtr hWnd);
- private void Main_Bot()
- {
- Form1.SetForegroundWindow((int)this.hWnd);
- this.hDC = Form1.GetDC(this.hWnd);
- Thread.Sleep(1000);
- bool flag = Operators.CompareString(this.DomainUpDown1.Text, "One", false) == 0;
- if (flag)
- {
- bool flag2 = Form1.GetPixel(this.hDC, 5, 275) == 16777215;
- if (flag2)
- {
- while (Form1.GetPixel(this.hDC, 378, 175) != 12514557)
- {
- }
- this.Sleep(Conversions.ToInteger(this.TextBox1.Text));
- SendKeys.SendWait("{Up}");
- }
- else
- {
- do
- {
- bool flag3 = this.StopButton;
- if (flag3)
- {
- break;
- }
- }
- while (Form1.GetPixel(this.hDC, 423, 175) != 12514557);
- this.Sleep(Conversions.ToInteger(this.TextBox1.Text));
- SendKeys.SendWait("{Up}");
- }
- }
- else
- {
- bool flag3 = Operators.CompareString(this.DomainUpDown1.Text, "Two", false) == 0;
- if (flag3)
- {
- bool flag2 = Form1.GetPixel(this.hDC, 5, 275) == 16777215;
- if (flag2)
- {
- while (Form1.GetPixel(this.hDC, 378, 175) != 12514557)
- {
- }
- this.Sleep(Conversions.ToInteger(this.TextBox1.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox2.Text));
- SendKeys.SendWait("{Up}");
- }
- else
- {
- do
- {
- flag3 = this.StopButton;
- if (flag3)
- {
- break;
- }
- }
- while (Form1.GetPixel(this.hDC, 423, 175) != 12514557);
- this.Sleep(Conversions.ToInteger(this.TextBox1.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox2.Text));
- SendKeys.SendWait("{Up}");
- }
- }
- else
- {
- flag3 = (Operators.CompareString(this.DomainUpDown1.Text, "Three", false) == 0);
- if (flag3)
- {
- bool flag2 = Form1.GetPixel(this.hDC, 5, 275) == 16777215;
- if (flag2)
- {
- while (Form1.GetPixel(this.hDC, 378, 175) != 12514557)
- {
- }
- this.Sleep(Conversions.ToInteger(this.TextBox1.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox2.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox3.Text));
- SendKeys.SendWait("{Up}");
- }
- else
- {
- do
- {
- flag3 = this.StopButton;
- if (flag3)
- {
- break;
- }
- }
- while (Form1.GetPixel(this.hDC, 423, 175) != 12514557);
- this.Sleep(Conversions.ToInteger(this.TextBox1.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox2.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox3.Text));
- SendKeys.SendWait("{Up}");
- }
- }
- else
- {
- flag3 = (Operators.CompareString(this.DomainUpDown1.Text, "Four", false) == 0);
- if (flag3)
- {
- bool flag2 = Form1.GetPixel(this.hDC, 5, 275) == 16777215;
- if (flag2)
- {
- while (Form1.GetPixel(this.hDC, 378, 175) != 12514557)
- {
- }
- this.Sleep(Conversions.ToInteger(this.TextBox1.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox2.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox3.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox4.Text));
- SendKeys.SendWait("{Up}");
- }
- else
- {
- do
- {
- flag3 = this.StopButton;
- if (flag3)
- {
- break;
- }
- }
- while (Form1.GetPixel(this.hDC, 423, 175) != 12514557);
- this.Sleep(Conversions.ToInteger(this.TextBox1.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox2.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox3.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox4.Text));
- SendKeys.SendWait("{Up}");
- }
- }
- else
- {
- flag3 = (Operators.CompareString(this.DomainUpDown1.Text, "Five", false) == 0);
- if (flag3)
- {
- bool flag2 = Form1.GetPixel(this.hDC, 5, 275) == 16777215;
- if (flag2)
- {
- while (Form1.GetPixel(this.hDC, 378, 175) != 12514557)
- {
- }
- this.Sleep(Conversions.ToInteger(this.TextBox1.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox2.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox3.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox4.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox5.Text));
- SendKeys.SendWait("{Up}");
- }
- else
- {
- do
- {
- flag3 = this.StopButton;
- if (flag3)
- {
- break;
- }
- }
- while (Form1.GetPixel(this.hDC, 423, 175) != 12514557);
- this.Sleep(Conversions.ToInteger(this.TextBox1.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox2.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox3.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox4.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox5.Text));
- SendKeys.SendWait("{Up}");
- }
- }
- else
- {
- flag3 = (Operators.CompareString(this.DomainUpDown1.Text, "Six", false) == 0);
- if (flag3)
- {
- bool flag2 = Form1.GetPixel(this.hDC, 5, 275) == 16777215;
- if (flag2)
- {
- while (Form1.GetPixel(this.hDC, 378, 175) != 12514557)
- {
- }
- this.Sleep(Conversions.ToInteger(this.TextBox1.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox2.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox3.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox4.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox5.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox6.Text));
- SendKeys.SendWait("{Up}");
- }
- else
- {
- do
- {
- flag3 = this.StopButton;
- if (flag3)
- {
- break;
- }
- }
- while (Form1.GetPixel(this.hDC, 423, 175) != 12514557);
- this.Sleep(Conversions.ToInteger(this.TextBox1.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox2.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox3.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox4.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox5.Text));
- SendKeys.SendWait("{Up}");
- this.Sleep(Conversions.ToInteger(this.TextBox6.Text));
- SendKeys.SendWait("{Up}");
- }
- }
- }
- }
- }
- }
- }
- Form1.ReleaseDC(this.hWnd);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement