pydirectinput icon indicating copy to clipboard operation
pydirectinput copied to clipboard

Does this package able to write upercase characters and special characters?

Open TechieSamOfficial opened this issue 4 years ago • 2 comments

I have tested it on a notepad and the automation can only write lower case characters out of an entire string input. When it receives uppercase characters, it simply ignores it. Any insights?

TechieSamOfficial avatar Sep 16 '20 13:09 TechieSamOfficial

Right now you need to toggle the shift key manually, using keyDown()/keyUp(), for uppercase and special characters.

I haven't ported over the needsShift, isShiftCharacter() portions of PyAutoGUI. It also looks like press() and typewrite()/write() call lower() on the characters, so that will also need some attention if I or someone else takes on this project.

learncodebygaming avatar Sep 16 '20 15:09 learncodebygaming

if you want you can try my fork https://github.com/TomW1605/pydirectinput/tree/master/pydirectinput. it works as a wrapper for standard pyautogui and simply replaces the back end functions it calls when sending key presses. there are still a few glitches but for the most part it should be stable.

TomW1605 avatar Sep 17 '20 01:09 TomW1605