Ejemplo n.º 1
0
        public static void ClickableRightMouseByName(int processId, string controlName, int timeOut)
        {
            AutomationElement element = UIAutomationHelper.FindWindowControlByName(processId, controlName, null, timeOut);

            ClickableRightMouse(element);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Click right mouse by element name.
        /// </summary>
        /// <param name="processId">Process Id</param>
        /// <param name="controlName">Control name</param>
        /// <param name="incrementX">Relative offset X</param>
        /// <param name="incrementY">Relative offset Y</param>
        public static void ClickRightMouseByName(int processId, string controlName, int incrementX, int incrementY)
        {
            AutomationElement element = UIAutomationHelper.FindWindowControlByName(processId, controlName, null, 3000);

            ClickRightMouse(element, incrementX, incrementY);
        }
Ejemplo n.º 3
0
        public static void ClickableRightMouseById(int processId, string autimationId, int timeOut)
        {
            AutomationElement element = UIAutomationHelper.FindWindowControlById(processId, autimationId, null, timeOut);

            ClickableRightMouse(element);
        }
Ejemplo n.º 4
0
        public static void ClickLeftMouseById(int processId, string automationId, int incrementX, int incrementY)
        {
            AutomationElement element = UIAutomationHelper.FindWindowControlById(processId, automationId, null, 3000);

            ClickLeftMouse(element, incrementX, incrementY);
        }