I once wrote scripts to intercept key input and convert to upper case.. My recollection (knob might know differently) was that I had to use
Code:
strupr
and math to increment the character.
You can use
Code:
keyget
to collect characters from the input buffer but only if you
Code:
set aspect keys on
. Lower case characters are +32 on the ASCII chart from upper case characters, so if you use keyget, then you need to -= 32 on the input value provided that the range is between 97 and 122 (A-Z)
Remember that when you
Code:
set aspect keys off
to stop intercepting input that you need to first
Code:
keyflush
to purge any buffered keyboard input otherwise your script will dump everything in the buffer to the COM port (if you are connected to a remote device).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.