Here we go.
- Open notepad and paste this code:
- save it as vbs file, for examples: save it as getKey.vbs
- double click the file
Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))
Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
x = 14
Do
Cur = Cur * 256
Cur = Key(x + KeyOffset) + Cur
Key(x + KeyOffset) = (Cur \ 24) And 255
Cur = Cur Mod 24
x = x -1
Loop While x >= 0
i = i -1
KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput
If (((29 - i) Mod 6) = 0) And (i <> -1) Then
i = i -1
KeyOutput = "-" & KeyOutput
End If
Loop While i >= 0
ConvertToKey = KeyOutput
End Function
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))
Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
x = 14
Do
Cur = Cur * 256
Cur = Key(x + KeyOffset) + Cur
Key(x + KeyOffset) = (Cur \ 24) And 255
Cur = Cur Mod 24
x = x -1
Loop While x >= 0
i = i -1
KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput
If (((29 - i) Mod 6) = 0) And (i <> -1) Then
i = i -1
KeyOutput = "-" & KeyOutput
End If
Loop While i >= 0
ConvertToKey = KeyOutput
End Function
pop up with the windows keys should be showed up
How to add Chinese keyboard to windows 10? Windows 10 Offers us to add one or multiple keyboards. If you want to type in Chinese, you should have to follow the procedure. Also, you will also understand why you’ve configured with the wrong keyboard and the wrong language and how to get rid of this problem. Normally you don’t need to change your windows language settings. But if you want to type in Chinese languages and want to type any Chinese letter or word, you must have to change the language settings. That’s why I am going to let you know how to install chinese keyboard on windows 10.
BalasHapusHere you’ll find two methods for windows 10 Chinese handwriting input. Following the way step by step, you’ll find it much easier to add any language keyboard. Also, I’ll give you some tips to avoid and solve the common problem related to language and keyboard. Before wrapping up the article, I’ll answer some common questions on adding the Chinese keyboard.