๐Ÿบ Join Clicknium for quality support, growth opportunities, and a supportive community

clicknium.mouse.scroll

def scroll(
self,
times = 1,
modifier_key: Literal["nonekey", "alt", "ctrl", "shift","win"] = ModifierKey.NoneKey
) -> None

Do the mouse scroll wheel.

Parameters:
โ€ƒtimes: int
โ€ƒโ€ƒ an integer number of times to scroll, and default is 1. When the value is greater than zero means scroll up, others means scroll down.
โ€ƒ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

# Do the mouse scroll wheel with up direction and scroll 2 times and press along with modifier key "ctrl"
cc.mouse.scroll(2,'ctrl')

PreviousmoveNextposition

What are your feelings
Updated on 30 August 2023