I just discovered that the caps lock and shift key (and probably some more of the keys) affect all of the keyboards connected to the computer. (one of the hazards of testing a program that I coded, I only have two hands so it took me ages to realize a problem like this)
So separating the keystrokes is fine, but the shift/caps locks drives everything crazy (When one user shifts to capitalize, all users’ input at that moment are capitalized as well)
Can I capture Capslock and Shift keypress in FormKeyPress?
Anywhere else for that matter?
Can I save a Shift keypress? (so I can properly apply the ‘shift’ to the respective user input)
Any other suggestion to solve this problem is welcome as well.
to check if shift ley is down try this:
and to detect if caps lock is on try this:
and if you want to check status of both shift and capslock :
getkeystate is a windows api function you can read more about it here