private void mouseclick(MouseAction myMouseAction)
        {
            System.Windows.Forms.Cursor.Position = myMouseAction.mouseLocation;
            if (myMouseAction.isDouble)
            {
                switch (myMouseAction.mouseButton)
                {
                case System.Windows.Forms.MouseButtons.Left:
                    mouseLeftClick();
                    //mouseLeftClick();
                    break;

                case System.Windows.Forms.MouseButtons.Right:
                    mouseRightClick();
                    //mouseRightClick();
                    break;

                default:
                    break;
                }
            }
            else
            {
                switch (myMouseAction.mouseButton)
                {
                case System.Windows.Forms.MouseButtons.Left:
                    mouseLeftClick();
                    break;

                case System.Windows.Forms.MouseButtons.Right:
                    mouseRightClick();
                    break;

                default:
                    break;
                }
            }
        }
 public void mouseClick(MouseAction myMouseAction)
 {
     mouseclick(myMouseAction);
 }