🍺 Join Clicknium for quality support, growth opportunities, and a supportive community

clicknium.mouse.click

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

Perform a single 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.
 delay: int
   defines the time to wait between mouse down and mouse up, the unit is second, and default is set to 0 seconds.

Returns:
 None

Example:


from clicknium import clicknium as cc

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

PreviousMouseNextdouble_click

What are your feelings
Updated on 30 August 2023