hsautogui-0.3.0: Haskell bindings for PyAutoGUI, a library for automating user interaction
Safe HaskellNone
LanguageHaskell2010

AutoGUI.Mouse

Synopsis

Documentation

data MouseButton Source #

Instances

Instances details
ToPy MouseButton Source # 
Instance details

Defined in AutoGUI.Mouse

moveTo :: Integer -> Integer -> IO () Source #

Move the mouse to an (x, y) position

moveToDuration :: Integer -> Integer -> Double -> IO () Source #

Move the mouse to an (x, y) position, over a number of seconds

moveRel :: Integer -> Integer -> IO () Source #

Move the mouse relative to where it is now

moveRelDuration :: Integer -> Integer -> Double -> IO () Source #

Move the mouse relative to where it is now, over a number of seconds

click :: MouseButton -> IO () Source #

Click a specified mouse button

leftClick :: IO () Source #

Left click the mouse

doubleClick :: IO () Source #

Double click the mouse

tripleClick :: IO () Source #

Triple click the mouse

rightClick :: IO () Source #

Right click the mouse

middleClick :: IO () Source #

Middle click the mouse

moveAndClick :: Integer -> Integer -> IO () Source #

Move the mouse to some (x, y) position and click there

drag :: Integer -> Integer -> IO () Source #

Clicks and drags the mouse through a motion of (x, y)

dragDuration :: Integer -> Integer -> Double -> IO () Source #

Clicks and drags the mouse through a motion of (x, y), over a number of seconds

dragTo :: Integer -> Integer -> IO () Source #

Clicks and drags the mouse to the position (x, y)

dragToDuration :: Integer -> Integer -> Double -> IO () Source #

Clicks and drags the mouse to the position (x, y), over a number of seconds

dragRel :: Integer -> Integer -> IO () Source #

Clicks and drags the mouse through a motion of (x, y)

dragRelDuration :: Integer -> Integer -> Double -> IO () Source #

Clicks and drags the mouse through a motion of (x, y)

scroll :: Integer -> IO () Source #

Scroll up (positive) or down (negative)

mouseDown :: IO () Source #

Press the left mouse button down

mouseUp :: IO () Source #

Release the left mouse button