嗨,我想知道是否有一种方法可以使用机器人类制作自动打字机?有没有办法可以将字符串转换为 char[] 并输入每个字母?无论如何,我可以为每个字母使用一个案例(下面的示例)。
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...