All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sikuli.script.IRobot Maven / Gradle / Ivy

There is a newer version: 2.0.5
Show newest version
/*
 * Copyright (c) 2010-2018, sikuli.org, sikulix.com - MIT license
 */
package org.sikuli.script;

import java.awt.Color;
import java.awt.Rectangle;

/**
 * INTERNAL USE 
* function template for (alternative) Robot implementations */ public interface IRobot { enum KeyMode { PRESS_ONLY, RELEASE_ONLY, PRESS_RELEASE }; void keyDown(String keys); void keyUp(String keys); void keyDown(int code); void keyUp(int code); void keyUp(); void pressModifiers(int modifiers); void releaseModifiers(int modifiers); void typeChar(char character, KeyMode mode); void typeKey(int key); void typeStarts(); void typeEnds(); void mouseMove(int x, int y); void mouseDown(int buttons); int mouseUp(int buttons); void mouseReset(); void clickStarts(); void clickEnds(); void smoothMove(Location dest); void smoothMove(Location src, Location dest, long ms); void mouseWheel(int wheelAmt); ScreenImage captureScreen(Rectangle screenRect); void waitForIdle(); void delay(int ms); void setAutoDelay(int ms); Color getColorAt(int x, int y); void cleanup(); boolean isRemote(); /** * Return the underlying device object (if any). */ IScreen getScreen(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy