예제 #1
0
 private void DoUiElementClick()
 {
     if (_uiElementUnderCursor)
     {
         _uiElementUnderCursor.Click();
     }
 }
예제 #2
0
 private void ClickOnUiElement()
 {
     if (_uiElementUnderCursor != null)
     {
         _uiElementUnderCursor.Click();
     }
 }
예제 #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));
        }