|
|
VB声明 |
Declare Function OemKeyScan Lib "user32" Alias
"OemKeyScan" (ByVal wOemChar As Long) As Long |
说明 |
判断OEM字符集中的一个ASCII字符的扫描码和Shift键状态 |
返回值 |
Long,低字包含了扫描码。高字包含了下述标志:位0标志着Shift已经按下;位1标志着Ctrl键按下;位2标志着Alt键按下。如两个字都为-1,表明字符未在OEM字符集中得到定义 |
参数表 |
参数 |
类型及说明 |
wOemChar |
Long,欲转换的字符的ASCII值 |
注解 |
这个函数只能转换那些单击键就能生成的字符。倘若字符要通过“Alt+3数位”(比如Alt+255)才能出现,则不能用这个函数转换
原文:This function only translates keys that can be typed with a single keystroke.
Keys that are entered using the ALT + 3 digit entry cannot be converted with this
function. |
|