M
Mad Scientist Jr
Can someone show how to read keypresses in VB.NET, for the entire
application (that is, independent on which control has the focus, just
read if a key on the keyboard is down or not) ?
I'm looking to do something like
for iLoop = 0 to 255 ' (loop through all keyboard/ASCII characters)
if keydown(iLoop) then
'blah
end if
next iLoop
I know some keyboards have limitations about how many simultaneous
keypresses their controller can send (press >8 keys at once, and
"ghost" codes get sent) but I'll be using a Hagstrom KE72 so this
should not be a problem. I want to be able to indpendently scan each
key, even if the user is somehow pressing all 101 keys.
Any help appreciated!
application (that is, independent on which control has the focus, just
read if a key on the keyboard is down or not) ?
I'm looking to do something like
for iLoop = 0 to 255 ' (loop through all keyboard/ASCII characters)
if keydown(iLoop) then
'blah
end if
next iLoop
I know some keyboards have limitations about how many simultaneous
keypresses their controller can send (press >8 keys at once, and
"ghost" codes get sent) but I'll be using a Hagstrom KE72 so this
should not be a problem. I want to be able to indpendently scan each
key, even if the user is somehow pressing all 101 keys.
Any help appreciated!