Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to activate capslock into aspect script file.

Status
Not open for further replies.

joda124

Technical User
Jan 17, 2008
9
IT
Please, how can activate automatic capslock on ?
How can make this into aspect script, what aspect command can i use ?

Thank you for your reply !
 
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).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top