Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Echo Off
- Title Reg Converter v1.2 & Color 1A
- cd %systemroot%\system32
- call :IsAdmin
- Set "CAPSLK=HKLM\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell"
- Reg.exe add "%CAPSLK%\CapLockHotKey" /v "MUIVerb" /t REG_SZ /d "Input language hotkeys by CAPSLK" /f
- Reg.exe add "%CAPSLK%\CapLockHotKey" /v "SubCommands" /t REG_SZ /d "" /f
- Reg.exe add "%CAPSLK%\CapLockHotKey" /v "Icon" /t REG_SZ /d "SHELL32.dll,238" /f
- Reg.exe add "%CAPSLK%\CapLockHotKey" /v "Position" /t REG_SZ /d "Bottom" /f
- Reg.exe add "%CAPSLK%\CapLockHotKey" /v "HasLUAShield" /t REG_SZ /d "" /f
- Reg.exe add "%CAPSLK%\CapLockHotKey\Shell\Disabled" /v "MUIVerb" /t REG_SZ /d "Disabled CAPSLK" /f
- Reg.exe add "%CAPSLK%\CapLockHotKey\Shell\Disabled" /v "Icon" /t REG_SZ /d "SHELL32.dll,131" /f
- Reg.exe add "%CAPSLK%\CapLockHotKey\Shell\Disabled" /v "HasLUAShield" /t REG_SZ /d "" /f
- Reg.exe add "%CAPSLK%\CapLockHotKey\Shell\Disabled\Command" /ve /t REG_SZ /d "cmd /c Reg.exe delete \"HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout\" /v \"Scancode Map\" /f & Reg.exe add \"HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout\" /f & msg * /TIME:20 \"Please restart the Machine to Disabled !!\"" /f
- Reg.exe add "%CAPSLK%\CapLockHotKey\Shell\Enabled" /v "MUIVerb" /t REG_SZ /d "Enabled CAPSLK" /f
- Reg.exe add "%CAPSLK%\CapLockHotKey\Shell\Enabled" /v "Icon" /t REG_SZ /d "SHELL32.dll,144" /f
- Reg.exe add "%CAPSLK%\CapLockHotKey\Shell\Enabled" /v "HasLUAShield" /t REG_SZ /d "" /f
- Reg.exe add "%CAPSLK%\CapLockHotKey\Shell\Enabled\Command" /ve /t REG_SZ /d "cmd /c Reg.exe add \"HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout\" /v \"Scancode Map\" /t REG_BINARY /d \"00000000000000000200000029003a0000000000\" /f & cmd /c Reg.exe delete \"HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout\" /v \"Scancode Map\" /f & Reg.exe add \"HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout\" /f & msg * /TIME:20 \"Please restart the Machine to Enabled !!\"" /f
- Exit
- :IsAdmin
- Reg.exe query "HKU\S-1-5-19\Environment"
- If Not %ERRORLEVEL% EQU 0 (
- Cls & Echo You must have administrator rights to continue ...
- Pause & Exit
- )
- Cls
- goto:eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement