sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28137
Re: [Question #254203]: Hotkey Listener overrides hotkey use
Question #254203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/254203
RaiMan posted a new comment:
have you tried
type("c", Key.CTRL)
before experimenting with the Robot class yourself?
If you need to handle individual keys, we have
key.Down(Key.CTRL)
wait(100)
type("c")
keyUp()
both solutions would replace the sequence
Robot robot = new Robot();
robot.keyPress(KeyEvent.CTRL_DOWN_MASK);
robot.delay(100);
robot.keyPress(KeyEvent.VK_C);
robot.delay(50);
robot.keyRelease(KeyEvent.VK_C);
robot.delay(100);
robot.keyRelease(KeyEvent.CTRL_DOWN_MASK);
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.