|
原帖由 haonan 于 2006-12-26 10:37 PM 发表
请问如何在pe2.0里添加ime支持
我想把微软输入法加进去,可是在网上搜索到一片文章,是机译的,没法看
懂行的高人来指导下阿
http://support.microsoft.com/kb/926181/zh-cn
pe2.0的输入法处理跟以前XP/2K3有很大不同。要在pe2.0里面加添加ime支持,除了要加入有关输入法的相对文件,还要作注册表处理。我没有也不准备加微软输入法,不过我成功的把极品中文输入法加进我的VistaPE并作了注册表处理,可以热键叫出输入窗口。
下面是我在Projects\VistaPE\build\standard-4-Config.script脚本做的有关处理,你可以参考它为你的输入法作出修改:
- ...
- [Process]
- Echo,"Configuring shell..."
- ...
- RegHiveLoad,Tmp_setupreg_hiv,%RegSystem%
- RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\i8042prt\Parameters","EnableWheelDetection","2"
- RegHiveUnLoad,Tmp_setupreg_hiv
- RegHiveLoad,Tmp_setupreg_hiv,%RegSystem%
- RegWrite,HKLM,0x4,"Tmp_setupreg_hiv\ControlSet001\Services\VgaSave\Device0","DefaultSettings.BitsPerPel","32"
- RegWrite,HKLM,0x4,"Tmp_setupreg_hiv\ControlSet001\Services\VgaSave\Device0","DefaultSettings.XResolution","1024"
- RegWrite,HKLM,0x4,"Tmp_setupreg_hiv\ControlSet001\Services\VgaSave\Device0","DefaultSettings.YResolution","768"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\CodePage","ACP","936"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\CodePage","OEMCP","936"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\CodePage","MACCP","10008"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\CodePage","OEMHAL","vgaoem.fon"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\CodePage","10000","c_10000.nls"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\CodePage","10002","c_10002.nls"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\CodePage","10008","c_10008.nls"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\CodePage","437","c_437.nls"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\CodePage","850","c_850.nls"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\CodePage","936","c_936.nls"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\CodePage","950","c_950.nls"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\CodePage","1252","c_1252.nls"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\CodePage\EUDCCodeRange","932","F040-F9FC"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\CodePage\EUDCCodeRange","936","AAA1-AFFE,F8A1-FEFE,A140-A7A0"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\CodePage\EUDCCodeRange","949","C9A1-C9FE,FEA1-FEFE"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\CodePage\EUDCCodeRange","950","FA40-FEFE,8E40-A0FE,8140-8DFE,C6A1-C8FE"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Locale\Alternate Sorts","0000040a","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Locale\Alternate Sorts","0001007f","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Locale\Alternate Sorts","00010407","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Locale\Alternate Sorts","0001040e","2"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Locale\Alternate Sorts","00010437","10"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Locale\Alternate Sorts","00020804","a"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Locale\Alternate Sorts","00021004","a"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Locale\Alternate Sorts","00021404","9"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Locale\Alternate Sorts","00030404","9"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Locale\Alternate Sorts","00040411","7"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Language Groups","1","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Language Groups","2","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Language Groups","3","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Language Groups","4","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Language Groups","5","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Language Groups","6","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Language Groups","7","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Language Groups","8","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Language Groups","9","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Language Groups","a","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Language Groups","b","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Language Groups","c","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Language Groups","d","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Language Groups","e","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Language Groups","f","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Language Groups","10","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Nls\Language Groups","11","1"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Keyboard Layouts\E0200804","Ime File","FREEWB.IME"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Keyboard Layouts\E0200804","Layout File","kbdus.dll"
- RegWrite,HKLM,0x1,"Tmp_setupreg_hiv\ControlSet001\Control\Keyboard Layouts\E0200804","Layout Text","Chinese (Simplified) - FreeWB"
- RegHiveUnLoad,Tmp_setupreg_hiv
- RegHiveLoad,Tmp_default,%RegUser%
- RegWrite,HKLM,0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced","Hidden","1"
- RegWrite,HKLM,0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced","HideFileExt","0"
- RegWrite,HKLM,0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced","ShowSuperHidden","1"
- ...
- RegWrite,HKLM,0x1,"Tmp_default\Keyboard Layout\Preload","1","00000804"
- RegWrite,HKLM,0x1,"Tmp_default\Keyboard Layout\Preload","2","00000409"
- RegWrite,HKLM,0x1,"Tmp_default\Keyboard Layout\Preload","3","E0200804"
- RegWrite,HKLM,0x1,"Tmp_default\Keyboard Layout\Toggle","Hotkey","2"
- RegWrite,HKLM,0x1,"Tmp_default\Keyboard Layout\Toggle","Language Hotkey","2"
- RegWrite,HKLM,0x1,"Tmp_default\Keyboard Layout\Toggle","Layout Hotkey","1"
- RegWrite,HKLM,0x3,"Tmp_default\Control Panel\Input Method\Hot Keys\00000100","Key Modifiers",01,c0,00,00
- RegWrite,HKLM,0x3,"Tmp_default\Control Panel\Input Method\Hot Keys\00000100","Target IME",04,08,20,e0
- RegWrite,HKLM,0x3,"Tmp_default\Control Panel\Input Method\Hot Keys\00000100","Virtual Key",78,00,00,00
- RegHiveUnLoad,Tmp_default
- RegHiveLoad,Tmp_software,%RegSoftware%
- RegWrite,HKLM,0x1,"Tmp_software\Microsoft\Windows NT\CurrentVersion\Fonts","SimSun & NSimSun (TrueType)","simsun.ttc"
- RegWrite,HKLM,0x1,"Tmp_software\Microsoft\Windows NT\CurrentVersion\Fonts","MingLiU & PMingLiU & MingLiU_HKSCS (TrueType)","mingliu.ttc"
- RegWrite,HKLM,0x1,"Tmp_software\极点中文","系统目录","X:\\Program Files\\freewb"
- ...
- RegHiveUnLoad,Tmp_software
复制代码
[ 本帖最后由 khauyeung 于 2006-12-27 12:05 AM 编辑 ] |
|