KLF_SETFORPROCESS est un entier
KLF_SETFORPROCESS = 0x00000100
nLI est un entier = 0xE0010804 // <= QuanPin
Nation(nationChinois)
ChangeAlphabet(alphabetChinois,langueChinois,2) // suivant le cas la "sous-langue" peut être à changer
API("User32.DLL","ActivateKeyboardLayout",nLI,KLF_SETFORPROCESS)
Voici la liste des constantes des différents claviers :
00000404 Chinese (Traditional) - US Keyboard
00000804 Chinese (Simplified) - US Keyboard
E0010404 Chinese (Traditional) - Phonetic
E0010804 Chinese (Simplified) - QuanPin
E0020404 Chinese (Traditional) - ChangJie
E0020804 Chinese (Simplified) - ShuangPin
E0030404 Chinese (Traditional) - Quick
E0030804 Chinese (Simplified) - ZhengMa
E0040404 Chinese (Traditional) - Big5 Code
E0050404 Chinese (Traditional) - Array
E0050804 Chinese (Simplified) - NeiMa
E0060404 Chinese (Traditional) - DaYi
E0070404 Chinese (Traditional) - Unicode
E0080404 Chinese (Traditional) - Microsoft New Phonetic
E0090404 Chinese (Traditional) - Microsoft New ChangJie
E00E0804 Chinese (Simplified) - Microsoft PinYin
E01F0404 Chinese (Traditional) - Alphanumeric
E0800404 Chinese (Traditional) - RW-CangJie(HK4000)
E0800804 Chinese (Simplified) - WuBi
E0810804 Chinese (Simplified) - DianBao
E0820804 Chinese (Simplified) - LiFangPinYin