[main] Title=Auto Keyboard Description=Change the keyboard layout of your build based on your PC's settings Selected=False Level=6 Author=Peter Schlang Contact=http://BootLand.pt.vu Credits=To all of those who support free software and bernat who initially proposed a way to customize the keyboard - thanks! Date=2006-06-28 Version=004 Locked=True Updates=http://www.psc.boot-land.net/Scripts Download_Level=2 Upload=2007-Sep-20 15:34:51 [AuthorEncoded] authorlogo.jpg=3257,4345 [Variables] %target_sys%=%TargetDir%\i386\system32 [process] If,%pRadioButton2%,Equal,True,Set,%number%,2 RegRead,"HKCU","Control Panel\International","Locale","%DOSKEYBKEY%" RegRead,"HKLM","SYSTEM\ControlSet001\Control\Keyboard Layouts\%DOSKEYBKEY%","Layout Display Name","%LAYOUTNAME%" RegRead,"HKLM","SYSTEM\ControlSet001\Control\Keyboard Layouts\%DOSKEYBKEY%","Layout File","%KBDDLL%" RegRead,"HKLM","SYSTEM\ControlSet001\Control\Keyboard Layouts\%DOSKEYBKEY%","Layout Text","%LAYOUTTEXT%" RegRead,"HKLM","SYSTEM\ControlSet001\Control\Keyboard Layout\DosKeybCodes",%DOSKEYBKEY%,"%DOSKEYBVALUE%" Echo,"Copying %KBDDLL% from %sourceDir%.." If,ExistFile,"%source_win%\%KBDDLL%",FileCopy,"%source_win%\%KBDDLL%","%target_sys%\%KBDDLL%" If,NotExistFile,"%source_win%\%KBDDLL%",FileCopy,"%WindowsDir%\System32\%KBDDLL%","%target_sys%\%KBDDLL%" Echo,"Writing to Default Hive.." RegHiveLoad,"WB-Default","%target_sys%\config\default" If,%pRadioButton1%,Equal,True,RegWrite,"HKLM",0x1,"WB-Default\Keyboard Layout\Preload",1,"%DOSKEYBKEY%" If,%pRadioButton2%,Equal,True,Run,%ScriptFile%,Set-Secondary If,%pRadioButton3%,Equal,True,Run,%ScriptFile%,Set-Primary RegHiveUnLoad,"WB-Default" Echo,"Writing to Software Hive.." RegHiveLoad,"WB-Software","%target_sys%\setupreg.hiv" RegWrite,"HKLM",0x1,"WB-Software\ControlSet001\Control\Keyboard Layout\DosKeybCodes","%DOSKEYBKEY%","%DOSKEYBVALUE%" RegWrite,"HKLM",0x1,"WB-Software\ControlSet001\Control\Keyboard Layouts\%DOSKEYBKEY%","Layout Text","%LAYOUTTEXT%" RegWrite,"HKLM",0x1,"WB-Software\ControlSet001\Control\Keyboard Layouts\%DOSKEYBKEY%","Layout Display Name","%LAYOUTNAME%" RegWrite,"HKLM",0x1,"WB-Software\ControlSet001\Control\Keyboard Layouts\%DOSKEYBKEY%","Layout File","%KBDDLL%" RegHiveUnLoad,WB-Software IniWrite,"%ProjectInfo%","CustomLogs","KeyboardLayout",%LAYOUTTEXT% If,ExistFile,"%ScriptLog%",If,ExistFile,"%ProjectInfo%",Run,%ScriptLog%,Process-log Echo,"All done." [Set-Secondary] RegWrite,"HKLM",0x1,"WB-Default\Keyboard Layout\Preload",2,"%DOSKEYBKEY%" Run,%ScriptFile%,Set-Toggle [Set-Primary] RegRead,"HKLM","WB-Default\Keyboard Layout\Preload","1","%temp%" RegWrite,"HKLM",0x1,"WB-Default\Keyboard Layout\Preload",1,"%DOSKEYBKEY%" RegWrite,"HKLM",0x1,"WB-Default\Keyboard Layout\Preload",2,"%temp%" Run,%ScriptFile%,Set-Toggle [Set-Toggle] RegWrite,"HKLM",0x1,"WB-Default\Keyboard Layout\Toggle","Hotkey",1 RegWrite,"HKLM",0x1,"WB-Default\Keyboard Layout\Toggle","Language Hotkey",1 RegWrite,"HKLM",0x1,"WB-Default\Keyboard Layout\Toggle","Layout Hotkey",2 [EncodedFile-AuthorEncoded-authorlogo.jpg] lines=1 0=eJyVzmk41I0aBvD/mBjLWGZQ0sg2GERhhkFZ85oZWWbshilLYrImWcq+vYnXxKBjixhmZEuWLEmylSQjS2RfsySytCin95zrnOs6H8/9fPw993M9h2OHM4AQ4Q/8HwAIBACg3wMcTgDGADcXF4SLkxsCgfDwcPNCRfihfHzQ43BhQREJccmTEuIIhBRSVUFK5pQsAoHSUjx1Rg2NRksqaJ/Dqp9V1UCr/30ExMPD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ZIxvC4uPx7GjeRt93Mv6KuloeiZyJhbDVf/gaF2UJ/Xo1N6eWg+GK+InFMl4nEmat0ZcsEU+pHAUKZqYIheGgtyqUyPT5frDnfbziLK0j8SHq9/pQasrfap6c2RfOYI9oBy6lZe+Yuz9Un+7woX+no4mrd1+lQb3er1ST8DrCta86PezqUvQ7vTwuk9o9Q3MSeywigY4siqnnD3ZcKBL+JjQ3e7UKKHbvx73qbkpDgOc2mMVBiwlJ6pcLRwWa6JpHMwfk2J9PrLmVtY07kpdD1VdOJpLMfX2cwDKtrbeNxWnqYZKwkqZg6KX1n5ecJ9jCjOk9+g8b+h1fvlrOZ8cJUU5txLG7jSewGa2Ng0Sk7CVskuba7YfxbCYIGeK2QZTglrfRo7zZ40kxq9y8uWtR/3VWMrjczlzrwrT7IwiZIzUsbL0qrbmFXejuTK/nMoW4VQju8mJIXn7HpHbGYnsxH2bkuTQxDkxAzDB4a9tJxzwrtq//e3o+ZK7/eaNxZea/NKS67Us9xgmzjdHZQM3ybAWDjUk0mZp2V2czZaUaZHHs5SVZq6Yd86n+v88v8uIQY1MjYTn+NdQwKd3hUfqtcAj2eeYu5g41H7l3onosJ 1=cTL1IhBYUrGMRLTFdPI4u6cxnLHYk1i48ZSKCSCflEIy24hVFQnk2PAbESTuO3JJSGJI9ZlCajPxuwE+Re804PVBTwjiSefx1UeWFoJP7YGulb6VLXzDENQaclz5N1ygOY2G9FL5NuH77/J8G/rzp4nONLLC3JyC/KyU/P18sqSGcYBSMLtPNA6Gwe7PKLo6/uZWACAGSPCV4A1StMAQAAAAIAAAAqAAAAawwAAAAAAAABAAAAAAAAAAAAAAA [Interface] pRadioButton1="Overwrite source CD's keyboard with local PC's keyboard",1,11,26,26,310,20,true pRadioButton2="Add local PC's keyboard as secondary keyboard",1,11,26,121,289,20,false pRadioButton3="Add local PC's keyboard as primary keyboard",1,11,26,101,253,20,false pTextLabel1="Toggle between two keyboards by using :",1,1,26,64,200,35,9,Bold pBevel1=pBevel1,1,12,10,55,350,100 pBevel2=pBevel2,1,12,10,13,350,44 pBevel3=pBevel3,1,12,10,14,349,140