sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #25511
Re: [Question #247662]: Typing slower?
Question #247662 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/247662
Status: Open => Answered
DenisD proposed the following answer:
Hi! I don't know whether there is special option to make typing process slower, I use this method.
private Screen s = new Screen();
public void typeText(String text, int slower) {
char[] ctext = text.toCharArray();
for (int i = 0; i < ctext.length; i++) {
s.type(ctext[i] + "");
try {
Thread.sleep(slower);
} catch (InterruptedException e) {
log.severe(e.toString());
}
}
}
The pros is that you can change delay for every line dynamically.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.