OemKeyScan |
VB聲明 |
|
Declare Function OemKeyScan Lib "user32" Alias "OemKeyScan" (ByVal wOemChar As Long) As Long |
|
說明 |
|
判斷OEM字符集中的一個(gè)ASCII字符的掃描碼和Shift鍵狀態(tài) |
|
返回值 |
|
Long,低字包含了掃描碼。高字包含了下述標(biāo)志:位0標(biāo)志著Shift已經(jīng)按下;位1標(biāo)志著Ctrl鍵按下;位2標(biāo)志著Alt鍵按下。如兩個(gè)字都為-1,表明字符未在OEM字符集中得到定義 |
|
參數(shù)表 |
|
參數(shù) |
類型及說明 |
wOemChar |
Long,欲轉(zhuǎn)換的字符的ASCII值 |
注解 |
|
這個(gè)函數(shù)只能轉(zhuǎn)換那些單擊鍵就能生成的字符。倘若字符要通過“Alt+3數(shù)位”(比如Alt+255)才能出現(xiàn),則不能用這個(gè)函數(shù)轉(zhuǎn)換 原文: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. |
Top |