コード例 #1
0
ファイル: ColorPoint.cs プロジェクト: PixelBotTH/GetColorADB
 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);
     }
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: PixelBotTH/GetColorADB
        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));
        }