Exemple #1
0
        public static void Click(this Bitmap bmp, int X, int Y, string Button = "LEFT", int Clicks = 1, int Speed = -1)
        {
            Bitmap _screen = ImageProcess.PrintScreen();
            var    pos     = ImageProcess.ImageSearch(_screen, bmp);

            AutoIt.AutoItX.MouseClick(Button, pos.X + X, pos.Y + Y, Clicks, Speed);
        }
Exemple #2
0
        public static bool IsExist(this Bitmap bmp)
        {
            bool   result  = false;
            Bitmap _screen = ImageProcess.PrintScreen();
            Point  pos     = ImageProcess.ImageSearch(_screen, bmp);

            if (pos.X != 0 && pos.Y != 0)
            {
                result = true;
            }
            return(result);
        }
Exemple #3
0
        /// <summary>
        /// Return position of a image
        /// </summary>
        /// <param name="bmp"></param>
        /// <returns></returns>
        public static Point Possition(this Bitmap bmp)
        {
            Bitmap _screen = ImageProcess.PrintScreen();

            return(ImageProcess.ImageSearch(_screen, bmp));
        }