System.Win32.Automation.Input

Win32-2.6.1.0: A binding to part of the Win32 library

Copyright | 2013 shelarcy
License | BSD-style
Maintainer | shelarcy@gmail.com
Stability | Provisional
Portability | Non-portable (Win32 API)
Safe Haskell | Safe
Language | Haskell2010

System.Win32.Automation.Input

Description

Provide sendInput function and INPUT types.

Synopsis

- data HARDWAREINPUT = HARDWAREINPUT {
  - uMsg :: DWORD
  - wParamL :: WORD
  - wParamH :: WORD
  }
- type PHARDWAREINPUT = Ptr HARDWAREINPUT
- data INPUT
  - = Mouse MOUSEINPUT
  - | Keyboard KEYBDINPUT
  - | OtherHardware HARDWAREINPUT
- type LPINPUT = Ptr INPUT
- type PINPUT = Ptr INPUT
- setMessageExtraInfo :: LPARAM -> IO LPARAM
- getMessageExtraInfo :: IO LPARAM
- c_SendInput :: UINT -> LPINPUT -> Int -> IO UINT
- sendInput :: [INPUT] -> IO UINT
- sendInputPtr :: Int -> Ptr INPUT -> IO UINT
- makeKeyboardInput :: VKey -> Maybe DWORD -> IO INPUT
- module System.Win32.Automation.Input.Key
- data MOUSEINPUT
- type PMOUSEINPUT = Ptr MOUSEINPUT
- xBUTTON1 :: DWORD
- xBUTTON2 :: DWORD
- mOUSEEVENTF_ABSOLUTE :: DWORD
- mOUSEEVENTF_MOVE :: DWORD
- mOUSEEVENTF_LEFTDOWN :: DWORD
- mOUSEEVENTF_LEFTUP :: DWORD
- mOUSEEVENTF_RIGHTDOWN :: DWORD
- mOUSEEVENTF_RIGHTUP :: DWORD
- mOUSEEVENTF_MIDDLEDOWN :: DWORD
- mOUSEEVENTF_MIDDLEUP :: DWORD
- mOUSEEVENTF_WHEEL :: DWORD
- mOUSEEVENTF_XDOWN :: DWORD
- mOUSEEVENTF_XUP :: DWORD

# Documentation

data HARDWAREINPUT Source #

Constructors

HARDWAREINPUT |
Fields uMsg :: DWORD wParamL :: WORD wParamH :: WORD

Instances

Show HARDWAREINPUT # |
Instance details Methods showsPrec :: Int -> HARDWAREINPUT -> ShowS Source # show :: HARDWAREINPUT -> String Source # showList :: [HARDWAREINPUT] -> ShowS Source #
Storable HARDWAREINPUT # |
Instance details Methods sizeOf :: HARDWAREINPUT -> Int Source # alignment :: HARDWAREINPUT -> Int Source # peekElemOff :: Ptr HARDWAREINPUT -> Int -> IO HARDWAREINPUT Source # pokeElemOff :: Ptr HARDWAREINPUT -> Int -> HARDWAREINPUT -> IO () Source # peekByteOff :: Ptr b -> Int -> IO HARDWAREINPUT Source # pokeByteOff :: Ptr b -> Int -> HARDWAREINPUT -> IO () Source # peek :: Ptr HARDWAREINPUT -> IO HARDWAREINPUT Source # poke :: Ptr HARDWAREINPUT -> HARDWAREINPUT -> IO () Source #

type PHARDWAREINPUT = Ptr HARDWAREINPUT Source #

data INPUT Source #

Constructors

Mouse MOUSEINPUT |
Keyboard KEYBDINPUT |
OtherHardware HARDWAREINPUT |

Instances

Show INPUT # |
Instance details Methods showsPrec :: Int -> INPUT -> ShowS Source # show :: INPUT -> String Source # showList :: [INPUT] -> ShowS Source #
Storable INPUT # |
Instance details Methods sizeOf :: INPUT -> Int Source # alignment :: INPUT -> Int Source # peekElemOff :: Ptr INPUT -> Int -> IO INPUT Source # pokeElemOff :: Ptr INPUT -> Int -> INPUT -> IO () Source # peekByteOff :: Ptr b -> Int -> IO INPUT Source # pokeByteOff :: Ptr b -> Int -> INPUT -> IO () Source # peek :: Ptr INPUT -> IO INPUT Source # poke :: Ptr INPUT -> INPUT -> IO () Source #

type LPINPUT = Ptr INPUT Source #

type PINPUT = Ptr INPUT Source #

setMessageExtraInfo :: LPARAM -> IO LPARAM Source #

getMessageExtraInfo :: IO LPARAM Source #

c_SendInput :: UINT -> LPINPUT -> Int -> IO UINT Source #

sendInput :: [INPUT] -> IO UINT Source #

sendInputPtr :: Int -> Ptr INPUT -> IO UINT Source #

Raw pointer of array version of `sendInput`. Use this function to support non-list sequence.

makeKeyboardInput :: VKey -> Maybe DWORD -> IO INPUT Source #

module System.Win32.Automation.Input.Key

data MOUSEINPUT Source #

Instances

Show MOUSEINPUT # |
Instance details Methods showsPrec :: Int -> MOUSEINPUT -> ShowS Source # show :: MOUSEINPUT -> String Source # showList :: [MOUSEINPUT] -> ShowS Source #
Storable MOUSEINPUT # |
Instance details Methods sizeOf :: MOUSEINPUT -> Int Source # alignment :: MOUSEINPUT -> Int Source # peekElemOff :: Ptr MOUSEINPUT -> Int -> IO MOUSEINPUT Source # pokeElemOff :: Ptr MOUSEINPUT -> Int -> MOUSEINPUT -> IO () Source # peekByteOff :: Ptr b -> Int -> IO MOUSEINPUT Source # pokeByteOff :: Ptr b -> Int -> MOUSEINPUT -> IO () Source # peek :: Ptr MOUSEINPUT -> IO MOUSEINPUT Source # poke :: Ptr MOUSEINPUT -> MOUSEINPUT -> IO () Source #

type PMOUSEINPUT = Ptr MOUSEINPUT Source #

xBUTTON1 :: DWORD Source #

xBUTTON2 :: DWORD Source #

mOUSEEVENTF_ABSOLUTE :: DWORD Source #

mOUSEEVENTF_MOVE :: DWORD Source #

mOUSEEVENTF_LEFTDOWN :: DWORD Source #

mOUSEEVENTF_LEFTUP :: DWORD Source #

mOUSEEVENTF_RIGHTDOWN :: DWORD Source #

mOUSEEVENTF_RIGHTUP :: DWORD Source #

mOUSEEVENTF_MIDDLEDOWN :: DWORD Source #

mOUSEEVENTF_MIDDLEUP :: DWORD Source #

mOUSEEVENTF_WHEEL :: DWORD Source #

mOUSEEVENTF_XDOWN :: DWORD Source #

mOUSEEVENTF_XUP :: DWORD Source #