代码拉取完成,页面将自动刷新
declare module "robot" {
export interface Bitmap {
imgBuf: any;
width: number;
height: number;
byteWidth: number;
bitsPixel: number;
bytesPerPixel: number;
}
export function getVersion(): string;
export function sleep(ms: number): void;
export function milliSleep(ms: number): void;
export function MSleep(ms: number): void;
//
export function getPixelColor(x: number, y: number): string;
export function getMouseColor(): string;
export function getScreenSize(): { width: number; height: number };
export function getScaleSize(): { width: number; height: number };
export function saveCapture(
x?: number,
y?: number,
w?: number,
h?: number
): void;
//
export function moveMouse(x: number, y: number): void;
export function moveSmooth(
x: number,
y: number,
low: number,
high: number
): void;
export function click(button?: string, double?: boolean): void;
export function mouseToggle(down?: string, button?: boolean): void;
export function dragMouse(x: number, y: number): void;
export function scroll(x: number, y: number): void;
export function getMousePos(): { x: number; y: number };
//
export function keyTap(key: string, ...mod: string[]): string;
export function keyToggle(key: string, ...mod: string[]): string;
export function typeStr(str: string, args?: number): void;
export function readAll(): string;
export function writeAll(str: string): string;
export function pasteStr(str: string): void;
//
export function getText(path: string): string;
export function captureScreen(
x?: number,
y?: number,
w?: number,
h?: number
): Bitmap;
export function toStrBitmap(bit: Bitmap): string;
export function bitmapFromStr(str: string): Bitmap;
export function captureBitmapStr(
x?: number,
y?: number,
w?: number,
h?: number
): string;
export function openBitmapStr(path: string): string;
export function findBitmapStr(str: string): { x: number; y: number };
export function saveBitmapStr(str: string, path: string): string;
export function freeBitmap(bit: Bitmap): void;
export function openBitmap(path: string, type?: number): Bitmap;
export function saveBitmap(bitmap: Bitmap, path: string, type?: number): void;
export function bitmapFromString(str: string): Bitmap;
export function findBitmap(
bitmap: Bitmap,
sub_bitmap?: Bitmap,
tol?: boolean
): { x: number; y: number };
export function findColor(color: number): { x: number; y: number };
export function findcolorCS(
color: number,
x: number,
y: number,
w: number,
h: number
): { x: number; y: number };
export function findPic(path: string): { x: number; y: number };
export function getImgSize(path: string): { w: number; h: number };
//
export function addEvent(key: string): boolean;
export function stopEvent(): void;
export function addEvents(key: string, ...args: string[]): boolean;
export function end(): void;
export function addMouse(btn: string, x?: number, y?: number): boolean;
export function addMousePos(x?: number, y?: number): boolean;
//
export function showAlert(title: string, msg: string): boolean;
export function getTitle(pid?: number): string;
export function getBounds(
pid: number
): { x: number; y: number; w: number; h: number };
export function pidExists(pid: number): boolean;
export function findIds(name: string): any;
export function findName(pid: number): string;
export function findNames(): any;
export function activePID(pid: number): string;
export function activeName(name: string): string;
export function kill(pid: number): string;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。