Example #1
0
 private void DoUiElementClick()
 {
     if (_uiElementUnderCursor)
     {
         _uiElementUnderCursor.Click();
     }
 }
 private void ClickOnUiElement()
 {
     if (_uiElementUnderCursor != null)
     {
         _uiElementUnderCursor.Click();
     }
 }
Example #3
0
        public ExecuteResult Click()
        {
            var args   = context.args;
            var type   = (ClickType)(long)args["type"];
            var button = (MouseButton)(long)args["button"];
            var method = (InputMethod)(long)args["method"];

            if (button == MouseButton.BTN_RIGHT && method == InputMethod.API)
            {
                method = InputMethod.WINDOW_MESSAGES;
            }
            node.Click((ClickType)type, (MouseButton)button, (InputMethod)method);
            return(new ExecuteResult(0));
        }