Hi i was wondering if there is a way i can make an auto typer by using the robot class? Is there a way i could make a string into char[] and type out each letter? anyway i could use a case for each letter (Example below).
case ' ': key = "VK_SPACE"; shiftOn = false; break;
case 'a': key = "VK_A"; shiftOn = false; break;
case 'b': key = "VK_B"; shiftOn = false; break;
case 'c': key = "VK_C"; shiftOn = false; break;
case 'd': key = "VK_D"; shiftOn = false; break;
case 'e': key = "VK_E"; shiftOn = false; break;
case 'f': key = "VK_F"; shiftOn = false; break;
case 'g': key = "VK_G"; shiftOn = false; break;
case 'h': key = "VK_H"; shiftOn = false; break;
case 'i': key = "VK_I"; shiftOn = false; break;
case 'j': key = "VK_J"; shiftOn = false; break;
case 'k': key = "VK_K"; shiftOn = false; break;
case 'l': key = "VK_L"; shiftOn = false; break;
etc...
With a little help from the code here:
You'll have to do a little more work to get characters like !@#$%&*()_+ to work.