I'm trying to write a program, that can write text to an input field (by simulating key presses). For that I need to be able to know whether Shift needs to be pressed in order to write a specific character. The isupper(char)
method works great, but doesn't give the desired result when asking for stuff like a question mark, slashes, or similar characters.
isupper('?') -> false
Is there any method that tells me if I need to press Shift in order to write a specific character?