Advertisement
LaDEEKill3R

Input language hotkeys by CAPSLK

Mar 24th, 2022
1,379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.11 KB | None | 0 0
  1. @Echo Off
  2. Title Reg Converter v1.2 & Color 1A
  3. cd %systemroot%\system32
  4. call :IsAdmin
  5.  
  6. Set "CAPSLK=HKLM\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell"
  7. Reg.exe add "%CAPSLK%\CapLockHotKey" /v "MUIVerb" /t REG_SZ /d "Input language hotkeys by CAPSLK" /f
  8. Reg.exe add "%CAPSLK%\CapLockHotKey" /v "SubCommands" /t REG_SZ /d "" /f
  9. Reg.exe add "%CAPSLK%\CapLockHotKey" /v "Icon" /t REG_SZ /d "SHELL32.dll,238" /f
  10. Reg.exe add "%CAPSLK%\CapLockHotKey" /v "Position" /t REG_SZ /d "Bottom" /f
  11. Reg.exe add "%CAPSLK%\CapLockHotKey" /v "HasLUAShield" /t REG_SZ /d "" /f
  12. Reg.exe add "%CAPSLK%\CapLockHotKey\Shell\Disabled" /v "MUIVerb" /t REG_SZ /d "Disabled CAPSLK" /f
  13. Reg.exe add "%CAPSLK%\CapLockHotKey\Shell\Disabled" /v "Icon" /t REG_SZ /d "SHELL32.dll,131" /f
  14. Reg.exe add "%CAPSLK%\CapLockHotKey\Shell\Disabled" /v "HasLUAShield" /t REG_SZ /d "" /f
  15. 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
  16. Reg.exe add "%CAPSLK%\CapLockHotKey\Shell\Enabled" /v "MUIVerb" /t REG_SZ /d "Enabled CAPSLK" /f
  17. Reg.exe add "%CAPSLK%\CapLockHotKey\Shell\Enabled" /v "Icon" /t REG_SZ /d "SHELL32.dll,144" /f
  18. Reg.exe add "%CAPSLK%\CapLockHotKey\Shell\Enabled" /v "HasLUAShield" /t REG_SZ /d "" /f
  19. 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
  20. Exit
  21.  
  22. :IsAdmin
  23. Reg.exe query "HKU\S-1-5-19\Environment"
  24. If Not %ERRORLEVEL% EQU 0 (
  25.  Cls & Echo You must have administrator rights to continue ...
  26.  Pause & Exit
  27. )
  28. Cls
  29. goto:eof
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement