octalmage / robotjs

Node.js Desktop Automation.
http://robotjs.io
MIT License
12.38k stars 961 forks source link

When using typeString() to output consecutive identical unicode characters, only the first character will be output #762

Open dongivan opened 3 months ago

dongivan commented 3 months ago

robotjs@0.6.0 (use npm install robotjs) doesn't support typeString() with unicode in windows, so I cloned the project and build it locally. Everything goes fine except code like robotjs.typeString("ㄱㄱㄱ"). It should output three but only one actually outputted, and robotjs.typeString("1ㄱ2ㄱㄱ3ㄱㄱㄱ4444ㄱ55555ㄱ66666ㄱ") will output 1ㄱ2ㄱ3ㄱ4ㄱ5ㄱ6ㄱ. I dont understand C/C++ so I cannot fix it by myself. Please help me.

contents.split("").forEach((s) => robotjs.typeString(s)) cannot output correctly neither.