robot-1.0: Simulate keyboard and mouse events

Safe HaskellNone

Test.Robot.Internal

Contents

Description

Miscellaneous low-level functions. You should rarely need to use these directly.

Synopsis

The Robot monad

newtype Robot a Source

The Robot monad: a reader monad over IO.

Constructors

Robot 

runRobot :: Robot a -> IO aSource

Run the robot, connecting to the display automatically.

runRobotWithConnection :: Robot a -> Connection -> IO aSource

Run the robot using an existing connection.

Exception safety

Synthesizing events

motion :: Bool -> Int -> Int -> Robot ()Source

releaseAll :: Robot ()Source

Release all the keys and buttons, in case some were left held down. This is called automatically before runRobot returns.