Read a string and write to a cursor...
in
Programming Questions
•
3 years ago
The following routine shows the captal letters as lower case instead of upper case and a lower case "g" as a 7:
for (int i=0; i<s.length(); i++)
{
robot.keyPress((int)s.charAt(i));
robot.delay(150);
}
{
robot.keyPress((int)s.charAt(i));
robot.delay(150);
}
The purpose for this routine is to take the input string and place it were the cursor is at (i.e. where the cursor is blinking). Is there a way to use keyTyped and the VT_ + s.charAt(i) instead?
The OS is Windows XP.
Thanks!
Bill
2