forked from octalmage/robotjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
772764b
commit 56b90e0
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
export interface Bitmap { | ||
width: number | ||
height: number | ||
image: any | ||
byteWidth: number | ||
bitsPerPixel: number | ||
bytesPerPixel: number | ||
colorAt(x: number, y: number): string | ||
} | ||
|
||
export interface Screen { | ||
capture(x?: number, y?: number, width?: number, height?: number): Bitmap | ||
} | ||
|
||
export function setKeyboardDelay(ms: number) : void | ||
export function keyTap(key: string, modifier?: string | string[]) : void | ||
export function keyToggle(key: string, down: string, modifier?: string | string[]) : void | ||
export function typeString(string: string) : void | ||
export function typeStringDelayed(string: string, cpm: number) : void | ||
export function setMouseDelay(delay: number) : void | ||
export function moveMouse(x: number, y: number) : void | ||
export function moveMouseSmooth(x: number, y: number) : void | ||
export function mouseClick(button?: string, double?: boolean) : void | ||
export function mouseToggle(down?: string, button?: boolean) : void | ||
export function dragMouse(x: number, y: number) : void | ||
export function scrollMouse(magnitude: number, direction: string) : void | ||
export function getMousePos(): { x: number, y: number } | ||
export function getPixelColor(x: number, y: number): string | ||
export function getScreenSize(): { width: number, height: number } | ||
|
||
export var screen: Screen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters