robot-1.3.0.1: 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

A Robot is a program that interacts with the GUI.

Use runRobot to execute your Robot, and liftIO to perform arbitrary I/O.

Constructors

Robot 

runRobot :: Robot a -> IO aSource

Run the robot, connecting to the display automatically.

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

Run the robot using an existing connection.

connect :: IO ConnectionSource

Connect to the X11 server.

Synthesizing events

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