skrypton-api / com.waicool20.skrypton.sikulix / ISikuliRegion / wheel

wheel

abstract fun wheel(direction: Int, steps: Int): Int

Spins the mouse wheel.

Parameters

direction - Direction to spin the mouse wheel in.

steps - Number of steps the wheel is spinned.

Return
1 if possible, 0 otherwise.

abstract fun <PFRML : Any> wheel(target: PFRML, direction: Int, steps: Int): Int

Spins the mouse wheel at the given target

Parameters

target - Target to spin the wheel at.

direction - Direction to spin the mouse wheel in.

steps - Number of steps the wheel is spinned.

Exceptions

FindFailed - If the find operation failed.

Return
1 if possible, 0 otherwise.

abstract fun <PFRML : Any> wheel(target: PFRML, direction: Int, steps: Int, stepDelay: Int): Int

Spins the mouse wheel at the given target

Parameters

target - Target to spin the wheel at.

direction - Direction to spin the mouse wheel in.

steps - Number of steps the wheel is spinned.

stepDelay - The delay in milliseconds between each wheel step.

Exceptions

FindFailed - If the find operation failed.

Return
1 if possible, 0 otherwise.