Comment 1 for bug 1673089

Revision history for this message
TestMechanic (ndinev) wrote :

We actually tried the workaround before posting the problem to Sikuli forum. It does not seems to work well.

I created pure java code that reproduces the problem

------------------------------------------------------

import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;

public class RobotExp {

  public static void main(String[] args) {

        try {

            Robot robot = new Robot();
            // Creates the delay of 5 sec so that you can open notepad before
            // Robot start writting
            System.out.println("You have 5 seconds to focus typing target");

            robot.delay(5000);
            System.out.println("Typing...");
            robot.delay(300);
            robot.keyPress(KeyEvent.VK_T);
            robot.delay(300);
            robot.keyPress(KeyEvent.VK_E);
            robot.delay(300);
            robot.keyPress(KeyEvent.VK_S);
            robot.delay(300);
            robot.keyPress(KeyEvent.VK_T);
            robot.delay(300);
            System.out.println("Done.");

        } catch (AWTException e) {
            e.printStackTrace();
        }
    }
}