ae.sys.sendinput

Control, screen-scrape, and send input to other graphical programs.

Members

Aliases

Window
alias Window = deimos.X11.X.Window

Type used for window IDs.

Window
alias Window = uint
Undocumented in source.

Functions

captureRect
auto captureRect(Rect!int r, Image!BGRA image)
auto captureRect(Rect!int r)

Return a capture of some sub-rectangle of the screen.

captureWindow
auto captureWindow(Window window)

Return a screen capture of the given window.

captureWindowRect
void captureWindowRect(Window window, Rect!int r, Image!BGRA image)
auto captureWindowRect(Window window, Rect!int r)

Return a screen capture of some sub-rectangle of the given window.

easeMousePos
void easeMousePos(int x0, int y0, int x1, int y1, Duration duration)

Smoothly move the mouse from one coordinate to another.

findWindowByName
Window findWindowByName(string name)

Find a window using its name. Throws an exception if there are no results, or there is more than one match.

getDisplay
Display* getDisplay()

Get X Display, connecting to the X server first if that hasn't been done yet in this thread. The connection is closed automatically on thread exit.

getPixel
auto getPixel(int x, int y)

Read a single pixel.

getWindowGeometry
Rect!int getWindowGeometry(Window window)

Obtain a window's coordinates on the screen.

mouseButton
void mouseButton(int button, bool down)

Send a mouse button press or release.

setMousePos
void setMousePos(int x, int y)

Move the mouse cursor.

Manifest constants

haveX11
enum haveX11;

Are X11 bindings available?

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <ae@cy.md>