I'm trying to make a function that will wait until you type a character, then return that character. However, the code I currently have waits until I press a key, then returns that key. Which isn't quite what I want. If I try to type a capital A, I don't want it to return 'left shift'; I want it to return 'A'. Is there a built-in function for this I'm missing, or someone who can point me to sample code?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I'm trying to make a function that will wait until you type a character, then return that character. However, the code I currently have waits until I press a key, then returns that key. Which isn't quite what I want. If I try to type a capital A, I don't want it to return 'left shift'; I want it to return 'A'. Is there a built-in function for this I'm missing, or someone who can point me to sample code?
Link to post
Share on other sites