|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object java.awt.Robot jp.hishidama.robot.RobotUtil
public class RobotUtil
Robotユーティリティー.
コンストラクタの概要 | |
---|---|
RobotUtil()
|
メソッドの概要 | |
---|---|
void |
clickL()
左クリック. |
void |
clickL(int x,
int y)
左クリック. |
void |
clickR()
右クリック. |
void |
clickR(int x,
int y)
右クリック. |
void |
clipboardCopyString(String str)
クリップボードへコピー. |
String |
clipboardGetString()
クリップボードから文字列取得. |
static int |
convertCodeFromChar(char c)
キーコード変換. |
String |
copyString()
文字列コピー. |
static RobotUtil |
getInstance()
ファクトリー. |
Point |
getOffset()
座標補正値取得. |
void |
mouseMove(int x,
int y)
マウスカーソル移動. |
void |
pasteString(String str)
文字列貼り付け. |
void |
sendChar(char c)
キー送信. |
void |
sendCtrlString(String str)
Ctrl+キー送信. |
void |
sendKeyCode(int code)
キーコード送信. |
void |
sendShiftString(String str)
Shift+キー送信. |
void |
sendString(String str)
キー送信. |
void |
setOffset(Point offset)
座標補正値設定. |
クラス java.awt.Robot から継承されたメソッド |
---|
createScreenCapture, delay, getAutoDelay, getPixelColor, isAutoWaitForIdle, keyPress, keyRelease, mousePress, mouseRelease, mouseWheel, setAutoDelay, setAutoWaitForIdle, toString, waitForIdle |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
---|
public RobotUtil() throws AWTException
AWTException
メソッドの詳細 |
---|
public static RobotUtil getInstance()
public void setOffset(Point offset)
offset
- 座標補正値public Point getOffset()
public String copyString()
CTRL+Cを送信し、クリップボードから文字列を取得する。
clipboardGetString()
public String clipboardGetString()
public void pasteString(String str)
クリップボードに文字列をコピーし、CTRL+Vキーを送信する。
str
- 文字列clipboardCopyString(String)
public void clipboardCopyString(String str)
str
- 文字列public void sendString(String str)
str
- 文字列sendChar(char)
public void sendChar(char c)
c
- 文字convertCodeFromChar(char)
public void sendKeyCode(int code)
code
- KeyEvent
Robot.keyPress(int)
,
Robot.keyRelease(int)
public void sendCtrlString(String str)
コントロールキーと同時にキーを送信する。
str
- 文字列sendString(String)
public void sendShiftString(String str)
シフトキーと同時にキーを送信する。
str
- 文字列sendString(String)
public static int convertCodeFromChar(char c)
文字を、キーイベントの仮想キーコードに変換する。
c
- 文字
RuntimeException
- 変換できなかったときKeyEvent
public void mouseMove(int x, int y)
Robot
内の mouseMove
x
- y
- setOffset(Point)
public void clickL(int x, int y)
x
- y
- mouseMove(int, int)
,
clickL()
public void clickL()
Robot.mousePress(int)
,
Robot.mouseRelease(int)
public void clickR(int x, int y)
x
- y
- mouseMove(int, int)
,
clickR()
public void clickR()
Robot.mousePress(int)
,
Robot.mouseRelease(int)
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |