Docs · API reference · Motus.Abstractions

MouseButtonOptions Class#

Options for mouse button operations.

public sealed record MouseButtonOptions : System.IEquatable<Motus.Abstractions.MouseButtonOptions>

Inheritance System.Object → MouseButtonOptions

Implements System.IEquatable<MouseButtonOptions>

Constructors#

MouseButtonOptions(MouseButton, Nullable<int>, Nullable<int>, KeyModifier) Constructor#

Options for mouse button operations.

public MouseButtonOptions(Motus.Abstractions.MouseButton Button=Motus.Abstractions.MouseButton.Left, System.Nullable<int> ClickCount=null, System.Nullable<int> Delay=null, Motus.Abstractions.KeyModifier Modifiers=Motus.Abstractions.KeyModifier.None);

Parameters#

Button MouseButton

The mouse button to use.

ClickCount System.Nullable<System.Int32>

Number of times to click.

Delay System.Nullable<System.Int32>

Time to wait between mouse down and mouse up in milliseconds.

Modifiers KeyModifier

Modifier keys reported as held during the action.

Properties#

Button Property#

The mouse button to use.

public Motus.Abstractions.MouseButton Button { get; init; }

Property Value#

MouseButton

ClickCount Property#

Number of times to click.

public System.Nullable<int> ClickCount { get; init; }

Property Value#

System.Nullable<System.Int32>

Delay Property#

Time to wait between mouse down and mouse up in milliseconds.

public System.Nullable<int> Delay { get; init; }

Property Value#

System.Nullable<System.Int32>

Modifiers Property#

Modifier keys reported as held during the action.

public Motus.Abstractions.KeyModifier Modifiers { get; init; }

Property Value#

KeyModifier