public static void ClickKeypad(KeypadKeys key)
            {
                String[,] arr2D = new String[4, 4] {
                    { "Del", "One", "Two", "Three" },
                    { "Clr", "Four", "Five", "Six" },
                    { null, "Seven", "Eight", "Nine" },
                    { null, "Dot", "Zero", "Dash" }
                };
                CustomPoint p = new CustomPoint(0, 0);

                for (int x = 0; x < arr2D.GetLength(0); x++)
                {
                    for (int y = 0; y < arr2D.GetLength(1); y++)
                    {
                        String s = arr2D[y, x];
                        if (s != null && s.Equals(key.ToString()))
                        {
                            p = new CustomPoint(x, y);
                            goto breakLoops;
                        }
                    }
                }
breakLoops:
                SecureClick(150 + (p.GetX() * 140), 110 + (p.GetY() * 75));
                Thread.Sleep(100);
            }
 public static void ClickKeypad(String s)
 {
     KeypadKeys[] keys;
     try {
         keys = new KeypadKeys[] {
             GetKey(s)
         };
     } catch {
         char[] chars = s.ToCharArray();
         keys = new KeypadKeys[chars.Length];
         for (int i = 0; i < chars.Length; i++)
         {
             keys[i] = GetKey(chars[i].ToString());
         }
     }
     ClickKeypad(keys);
 }