Пример #1
0
 /// <inheritdoc />
 public Task DblClickAsync(
     MouseButton button,
     float?delay,
     Position position,
     IEnumerable <KeyboardModifier> modifiers,
     bool?force,
     bool?noWaitAfter,
     float?timeout,
     bool?trial)
 => _channel.DblClickAsync(delay ?? 0, button.EnsureDefaultValue(MouseButton.Left), modifiers, position, timeout, force ?? false, noWaitAfter);
Пример #2
0
 /// <inheritdoc />
 public Task ClickAsync(
     string selector,
     MouseButton button,
     int?clickCount,
     float?delay,
     Position position,
     IEnumerable <KeyboardModifier> modifiers,
     bool?force,
     bool?noWaitAfter,
     float?timeout,
     bool?trial)
 => ClickAsync(false, selector, delay ?? 0, button.EnsureDefaultValue(MouseButton.Left), clickCount ?? 1, modifiers, position, timeout, force, noWaitAfter);
Пример #3
0
 public Task UpAsync(MouseButton button, int?clickCount)
 => _channel.MouseUpAsync(button.EnsureDefaultValue(MouseButton.Left), clickCount ?? 1);
Пример #4
0
 public Task DblClickAsync(float x, float y, MouseButton button, float?delay)
 => _channel.MouseClickAsync(x, y, delay ?? 0, button.EnsureDefaultValue(MouseButton.Left), 2);
Пример #5
0
 public Task ClickAsync(float x, float y, MouseButton button, int?clickCount, float?delay)
 => _channel.MouseClickAsync(x, y, delay ?? 0, button.EnsureDefaultValue(MouseButton.Left), clickCount ?? 1);