Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Key
- alert :: Text -> IO ()
- click :: MouseButton -> IO ()
- confirm :: Text -> IO Bool
- doubleClick :: IO ()
- drag :: Integer -> Integer -> IO ()
- dragDuration :: Integer -> Integer -> Double -> IO ()
- dragRel :: Integer -> Integer -> IO ()
- dragRelDuration :: Integer -> Integer -> Double -> IO ()
- dragTo :: Integer -> Integer -> IO ()
- dragToDuration :: Integer -> Integer -> Double -> IO ()
- failsafe :: Bool -> IO ()
- hotkey :: [Key] -> IO ()
- initialize :: IO ()
- isValidKey :: Text -> Bool
- key :: QuasiQuoter
- keyDown :: Key -> IO ()
- keyToText :: Key -> Text
- keyUp :: Key -> IO ()
- keys :: Set Key
- leftClick :: IO ()
- locateCenterOnScreen :: FilePath -> IO (Maybe (Integer, Integer))
- locateOnScreen :: FilePath -> IO (Maybe (Integer, Integer, Integer, Integer))
- middleClick :: IO ()
- mkKey :: Text -> Maybe Key
- mouseDown :: IO ()
- mouseUp :: IO ()
- moveAndClick :: Integer -> Integer -> IO ()
- moveRel :: Integer -> Integer -> IO ()
- moveRelDuration :: Integer -> Integer -> Double -> IO ()
- moveTo :: Integer -> Integer -> IO ()
- moveToDuration :: Integer -> Integer -> Double -> IO ()
- onScreen :: Integer -> Integer -> IO Bool
- password :: Text -> IO Text
- pause :: Double -> IO ()
- position :: IO (Integer, Integer)
- press :: Key -> IO ()
- prompt :: Text -> IO Text
- rightClick :: IO ()
- scroll :: Integer -> IO ()
- size :: IO (Integer, Integer)
- sleep :: Double -> IO ()
- tripleClick :: IO ()
- typewrite :: Text -> IO ()
- typewriteKeys :: [Key] -> IO ()
- write :: Text -> IO ()
- writeWithInterval :: Text -> Double -> IO ()
Documentation
click :: MouseButton -> IO () Source #
Click a specified mouse button
confirm :: Text -> IO Bool Source #
Show a box onscreen until a user hits OK or Cancel Return True on OK, False on Cancel, and False if user closes the box
doubleClick :: IO () Source #
Double click the mouse
dragDuration :: Integer -> Integer -> Double -> IO () Source #
Clicks and drags the mouse through a motion of (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)
dragToDuration :: Integer -> Integer -> Double -> IO () Source #
Clicks and drags the mouse to the position (x, y), over a number of seconds
failsafe :: Bool -> IO () Source #
When set to true, move the mouse to the upper-left corner of the screen to throw a Python exception, and quit the program
initialize :: IO () #
isValidKey :: Text -> Bool Source #
key :: QuasiQuoter Source #
This quasiquoter lets you use [key|enter|] at compile time, so you don't get a Maybe as you would from mkKey
locateCenterOnScreen :: FilePath -> IO (Maybe (Integer, Integer)) Source #
Return (x, y) of center of an image, if the image is found
locateOnScreen :: FilePath -> IO (Maybe (Integer, Integer, Integer, Integer)) Source #
Return (left, top, width, height) of first place the image is found
middleClick :: IO () Source #
Middle click the mouse
moveAndClick :: Integer -> Integer -> IO () Source #
Move the mouse to some (x, y) position and click there
moveRelDuration :: Integer -> Integer -> Double -> IO () Source #
Move the mouse relative to where it is now, over a number of seconds
moveToDuration :: Integer -> Integer -> Double -> IO () Source #
Move the mouse to an (x, y) position, over a number of seconds
password :: Text -> IO Text Source #
Show a box onscreen, allowing user to enter some screened text Return empty string if user closes the box
prompt :: Text -> IO Text Source #
Show a box onscreen, allowing user to enter some text Return empty string if user closes the box
rightClick :: IO () Source #
Right click the mouse
tripleClick :: IO () Source #
Triple click the mouse
typewrite :: Text -> IO () Source #
Write out some Text as though it were entered with the keyboard, newline is enter
typewriteKeys :: [Key] -> IO () Source #
Write out some Text as though it were entered with the keyboard, newline is enter