i76700k主板:常用 ASCII码表 与keycode吗有什么区别和联系?

来源:百度文库 编辑:高校问答 时间:2024/05/10 12:36:04
我在vb中要制作一个判断当前输入字符的程序,不知道该用什么好.

判断输入字符要用对应的ASCII码,判断按哪个键就要用keycode了。
比如a和A两个字符,ASCII码不一样,分别为65,97,但都是按键盘上的A键输出来的,keycode就一样。

Specifies the Unicode key code associated with the key that caused the event. This property is intended to be used with the onkeydown, onkeyup, and onkeypress events.

American Standard Code for Information Exchange (ASCII)
A coding scheme using 7 or 8 bits that assigns numeric values to up to 256 characters, including letters, numerals, punctuation marks, control characters, and other symbols.