|
本帖最后由 sairen139 于 2024-3-12 19:43 编辑
群里折腾适用于10pe和11pe的微软10自带的屏幕键盘osk的在线利用方法和初始位置定制reg
有群友测试说10的osk可用于10pe和11pe,11pe的osk不可用于10pe。也就是说微软10的osk可以通吃10pe和11pe!
最终的折腾结果是需要以下的文件和注册表:
Program Files\Common Files\microsoft shared\ink\fsdefinitions\auxpad\auxbase.xml
Program Files\Common Files\microsoft shared\ink\fsdefinitions\insert\insertbase.xml
Program Files\Common Files\microsoft shared\ink\fsdefinitions\keypad\keypadbase.xml
Program Files\Common Files\microsoft shared\ink\fsdefinitions\main\base.xml
Program Files\Common Files\microsoft shared\ink\fsdefinitions\oskclearui\oskclearuibase.xml
Program Files\Common Files\microsoft shared\ink\fsdefinitions\oskmenu\oskmenubase.xml
Program Files\Common Files\microsoft shared\ink\fsdefinitions\osknav\osknavbase.xml
Program Files\Common Files\microsoft shared\ink\fsdefinitions\osknumpad\osknumpadbase.xml
Program Files\Common Files\microsoft shared\ink\fsdefinitions\oskpred\oskpredbase.xml
Program Files\Common Files\microsoft shared\ink\fsdefinitions\symbols\symbase.xml
Program Files\Common Files\microsoft shared\ink\fsdefinitions\auxpad.xml
Program Files\Common Files\microsoft shared\ink\fsdefinitions\insert.xml
Program Files\Common Files\microsoft shared\ink\fsdefinitions\keypad.xml
Program Files\Common Files\microsoft shared\ink\fsdefinitions\main.xml
Program Files\Common Files\microsoft shared\ink\fsdefinitions\oskclearui.xml
Program Files\Common Files\microsoft shared\ink\fsdefinitions\oskmenu.xml
Program Files\Common Files\microsoft shared\ink\fsdefinitions\osknav.xml
Program Files\Common Files\microsoft shared\ink\fsdefinitions\osknumpad.xml
Program Files\Common Files\microsoft shared\ink\fsdefinitions\oskpred.xml
Program Files\Common Files\microsoft shared\ink\fsdefinitions\symbols.xml
Program Files\Common Files\microsoft shared\ink\zh-CN\tabskb.dll.mui
Program Files\Common Files\microsoft shared\ink\zh-CN\tipresx.dll.mui
Program Files\Common Files\microsoft shared\ink\tabskb.dll
Program Files\Common Files\microsoft shared\ink\tipresx.dll
Windows\System32\osk.exe
Windows\System32\OskSupport.dll
Windows\System32\wmsgapi.dll
以上群里的折腾大概会增加pe的体积1mb多,我个人觉得没有我以前用的小小输入法的软键盘小。但是不在乎这点体积的网友自可集成到pe!
pe里在线添加的注册版并运行osk.exe的批处理bat内容如下所示:
:: reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "WindowLeft" /t REG_DWORD /d 79
:: reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "WindowTop" /t REG_DWORD /d 500
:: reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "WindowWidth" /t REG_DWORD /d 841
:: reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "WindowHeight" /t REG_DWORD /d 240
reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "ClickSound" /t REG_DWORD /d 1 1>nul 2>nul
reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "Mode" /t REG_DWORD /d 1 1>nul 2>nul
reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "HoverPeriod" /t REG_DWORD /d 1000 1>nul 2>nul
reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "ScanInterval" /t REG_DWORD /d 1000 1>nul 2>nul
reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "UseDevice" /t REG_DWORD /d 1 1>nul 2>nul
reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "UseMouse" /t REG_DWORD /d 0 1>nul 2>nul
reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "UseKB" /t REG_DWORD /d 1 1>nul 2>nul
reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "ScanKey" /t REG_DWORD /d 32 1>nul 2>nul
reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "UseTextPrediction" /t REG_DWORD /d 1 1>nul 2>nul
reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "InsertSpace" /t REG_DWORD /d 1 1>nul 2>nul
reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "ShowNumPad" /t REG_DWORD /d 0 1>nul 2>nul
reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "NavigationMode" /t REG_DWORD /d 0 1>nul 2>nul
reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "ModeHeightNavigation" /t REG_DWORD /d 61 1>nul 2>nul
reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "ModeHeightGeneral" /t REG_DWORD /d 240 1>nul 2>nul
reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "ShowClearKeyboard" /t REG_DWORD /d 1 1>nul 2>nul
reg add "HKCU\SOFTWARE\Microsoft\Osk" /f /v "Dock" /t REG_DWORD /d 0 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{0A56CD6C-B45A-4A6C-A88C-3F42AC7BCED4}" /f /ve /t REG_SZ /d "KeyStrokeMonitor Class" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{0A56CD6C-B45A-4A6C-A88C-3F42AC7BCED4}\InprocServer32" /f /ve /t REG_EXPAND_SZ /d "%%CommonProgramFiles%%\Microsoft Shared\ink\tabskb.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{0A56CD6C-B45A-4A6C-A88C-3F42AC7BCED4}\InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{0A56CD6C-B45A-4A6C-A88C-3F42AC7BCED4}\ProgID" /f /ve /t REG_SZ /d "SKBMonitor.KeyStrokeMonitor.1" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{0A56CD6C-B45A-4A6C-A88C-3F42AC7BCED4}\VersionIndependentProgID" /f /ve /t REG_SZ /d "SKBMonitor.KeyStrokeMonitor" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{066D2323-D35A-4C15-AE22-F88F136C1613}" /f /ve /t REG_SZ /d "KeystrokeGenerator Class" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{066D2323-D35A-4C15-AE22-F88F136C1613}\InprocServer32" /f /ve /t REG_EXPAND_SZ /d "%%CommonProgramFiles%%\Microsoft Shared\ink\tabskb.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{066D2323-D35A-4C15-AE22-F88F136C1613}\InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{066D2323-D35A-4C15-AE22-F88F136C1613}\ProgID" /f /ve /t REG_SZ /d "KSGenerator.KeystrokeGenerator.1" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{066D2323-D35A-4C15-AE22-F88F136C1613}\VersionIndependentProgID" /f /ve /t REG_SZ /d "KSGenerator.KeystrokeGenerator" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{632B0530-3CBF-44F4-BFDC-750A80D4B00A}" /f /ve /t REG_SZ /d "StateController Class" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{632B0530-3CBF-44F4-BFDC-750A80D4B00A}\InprocServer32" /f /ve /t REG_EXPAND_SZ /d "%%CommonProgramFiles%%\Microsoft Shared\ink\tabskb.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{632B0530-3CBF-44F4-BFDC-750A80D4B00A}\InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{632B0530-3CBF-44F4-BFDC-750A80D4B00A}\ProgID" /f /ve /t REG_SZ /d "statemodel.StateController.1" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{632B0530-3CBF-44F4-BFDC-750A80D4B00A}\VersionIndependentProgID" /f /ve /t REG_SZ /d "statemodel.StateController" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{6A514DB9-3EC1-4F36-9F95-BC0B00152D0B}" /f /ve /t REG_SZ /d "DefinitionParser Class" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{6A514DB9-3EC1-4F36-9F95-BC0B00152D0B}\InprocServer32" /f /ve /t REG_EXPAND_SZ /d "%%CommonProgramFiles%%\Microsoft Shared\ink\tabskb.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{6A514DB9-3EC1-4F36-9F95-BC0B00152D0B}\InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{6A514DB9-3EC1-4F36-9F95-BC0B00152D0B}\ProgID" /f /ve /t REG_SZ /d "FSLoaderParser2.DefinitionParser.1" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{6A514DB9-3EC1-4F36-9F95-BC0B00152D0B}\VersionIndependentProgID" /f /ve /t REG_SZ /d "FSLoaderParser2.DefinitionParser" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{884CFF4F-0BB0-4CAA-83BD-4FB9ECE938FA}" /f /ve /t REG_SZ /d "DefinitionLoader Class" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{884CFF4F-0BB0-4CAA-83BD-4FB9ECE938FA}\InprocServer32" /f /ve /t REG_EXPAND_SZ /d "%%CommonProgramFiles%%\Microsoft Shared\ink\tabskb.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{884CFF4F-0BB0-4CAA-83BD-4FB9ECE938FA}\InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Both" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{884CFF4F-0BB0-4CAA-83BD-4FB9ECE938FA}\ProgID" /f /ve /t REG_SZ /d "FSLoaderParser.DefinitionLoader.1" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{884CFF4F-0BB0-4CAA-83BD-4FB9ECE938FA}\VersionIndependentProgID" /f /ve /t REG_SZ /d "FSLoaderParser.DefinitionLoader" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{BDCD51FB-55A0-4486-908C-5240F23698AC}" /f /ve /t REG_SZ /d "Accessible Keyboard UI Class" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{BDCD51FB-55A0-4486-908C-5240F23698AC}\InprocServer32" /f /ve /t REG_EXPAND_SZ /d "%%CommonProgramFiles%%\Microsoft Shared\ink\tabskb.dll" 1>nul 2>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{BDCD51FB-55A0-4486-908C-5240F23698AC}\InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment" 1>nul 2>nul
@start "" /d %WinDir%\System32 osk.exe 1>nul 2>nul
:: del %0 /q 2>nul
另外我测试需要注意的是有些极限精简的骨头版本pe缺少一个msctf.dll会导致报错,请自行添加该msctf.dll
|
评分
-
查看全部评分
|