robot 1.0 → 1.0.1
raw patch · 4 files changed
+16/−5 lines, 4 files
Files
- Test/Robot.hs +2/−1
- examples/GoFast.hs +13/−0
- examples/RightClick.hs +0/−3
- robot.cabal +1/−1
Test/Robot.hs view
@@ -19,7 +19,8 @@ , hold , tap - -- * Fancy utilities+ -- * Miscellaneous+ , releaseAll , sleep ) where
+ examples/GoFast.hs view
@@ -0,0 +1,13 @@+-- | Press the spacebar repeatedly, really really fast.+--+-- 1. Go to <http://mixermike622.deviantart.com/art/GO-FAST-287788805>+-- 2. Run this program+-- 3. ???+-- 4. Profit++import Control.Monad (forever)+import Test.Robot++main = runRobot . forever $ do+ sleep 0.1 -- Don't reduce this number, or you'll actually break the game.+ tap _Space
examples/RightClick.hs view
@@ -5,6 +5,3 @@ main = runRobot $ mapM_ (>> sleep 0.25) [tap rightButton, tap _Down, tap _Return]- where- _Down = customKey 0xff54- _Return = customKey 0xff0d
robot.cabal view
@@ -1,5 +1,5 @@ Name: robot-Version: 1.0+Version: 1.0.1 Synopsis: Simulate keyboard and mouse events Homepage: https://github.com/lfairy/robot License: OtherLicense