78 79 /** 80 * Simulates a key press of the specified key. 81 * 82 * @param keycode the key code to press 83 * 84 * @see Robot#keyPress(int) 85 */ 86 void keyPress(int keycode); 87 88 /** 89 * Simulates a key release of the specified key. 90 * 91 * @param keycode the key code to release 92 * 93 * @see Robot#keyRelease(int) 94 */ 95 void keyRelease(int keycode); 96 97 /** 98 * Gets the RGB value of the specified pixel on screen. 99 * 100 * @param x the X screen coordinate 101 * @param y the Y screen coordinate 102 * 103 * @return the RGB value of the specified pixel on screen 104 * 105 * @see Robot#getPixelColor(int, int) 106 */ 107 int getRGBPixel(int x, int y); 108 109 /** 110 * Gets the RGB values of the specified screen area as an array. 111 * 112 * @param bounds the screen area to capture the RGB values from 113 * 114 * @return the RGB values of the specified screen area 115 * 116 * @see Robot#createScreenCapture(Rectangle) 117 */ | 78 79 /** 80 * Simulates a key press of the specified key. 81 * 82 * @param keycode the key code to press 83 * 84 * @see Robot#keyPress(int) 85 */ 86 void keyPress(int keycode); 87 88 /** 89 * Simulates a key release of the specified key. 90 * 91 * @param keycode the key code to release 92 * 93 * @see Robot#keyRelease(int) 94 */ 95 void keyRelease(int keycode); 96 97 /** 98 * Simulates a key press of the specified unicode key. 99 * 100 * @param unicodeKey unicode key to press 101 * 102 * @see Robot#keyPressUnicode(int) 103 */ 104 void keyPressUnicode(int unicodeKey); 105 106 /** 107 * Simulates a key release of the specified unicode key. 108 * 109 * @param unicodeKey unicode key to release 110 * 111 * @see Robot#keyReleaseUnicode(int) 112 */ 113 void keyReleaseUnicode(int unicodeKey); 114 115 /** 116 * Gets the RGB value of the specified pixel on screen. 117 * 118 * @param x the X screen coordinate 119 * @param y the Y screen coordinate 120 * 121 * @return the RGB value of the specified pixel on screen 122 * 123 * @see Robot#getPixelColor(int, int) 124 */ 125 int getRGBPixel(int x, int y); 126 127 /** 128 * Gets the RGB values of the specified screen area as an array. 129 * 130 * @param bounds the screen area to capture the RGB values from 131 * 132 * @return the RGB values of the specified screen area 133 * 134 * @see Robot#createScreenCapture(Rectangle) 135 */ |