clicknium.mouse.double_click

def double_click(
self,
x: int,
y: int,
mouse_button: Literal["left", "middle", "right"] = MouseButton.Left,
modifier_key: Literal["nonekey", "alt", "ctrl", "shift","win"] = ModifierKey.NoneKey
) -> None

Perform a double click with the specified mouse button.

Parameters:
x[Required]: int
   defines the X integer coordinate.
y[Required]: int
   defines the Y integer coordinate.
mouse_button: MouseButton
   defines the position of the mouse button, and default is left button.
modifier_key: ModifierKey
   the modifier key(“alt”, “ctrl”, “shift”, “win”) to be pressed along with click, and default is none.

Returns:
 None

Example:


from clicknium import clicknium as cc

# preform double click on position (100,100)
cc.mouse.double_click(100,100)

PreviousclickNextup

What are your feelings
Updated on 30 August 2023