예제 #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            adbcolor = new ADBDevice(GetByName(comboBox1.Text));

            //int Color = Int32.Parse(textBox1.Text);
            int x = Int32.Parse(textBox3.Text);
            int y = Int32.Parse(textBox4.Text);
            //Color c = Getcolor.GetImagePixel(ScreenCapAsync(comboBox1.Text).Result, x, y);
            Color c = adbcolor.GetADBPixel(x, y);

            MessageBox.Show("Color : " + Getcolor.HexConverterOLD(c));
        }
예제 #2
0
 public bool checkstatus(int c = 10)
 {
     if (Getcolor.CheckColor(WindowHandler.appname, this, c))
     {
         return(true);
     }
     else
     {
         Console.WriteLine("Color at : " + X + "," + Y + " :" + Getcolor.GETCOLORSTRING(WindowHandler.appname, X, Y) + "  : " + Getcolor.HexConverterOLD(System.Drawing.Color.FromArgb(Color)));
         return(false);
     }
 }