Skip to content

Instantly share code, notes, and snippets.

@thomasruiz
Created September 1, 2019 21:01
Show Gist options
  • Save thomasruiz/7f57a130b12c5fff42bfb3cd9986d62c to your computer and use it in GitHub Desktop.
Save thomasruiz/7f57a130b12c5fff42bfb3cd9986d62c to your computer and use it in GitHub Desktop.
<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend">
<gs:UserList>
<gs:User UserID="Current" CopySettingsToDefaultUserAcct="false" CopySettingsToSystemAcct="false"/>
</gs:UserList>
<gs:InputPreferences>
<gs:InputLanguageID Action="add" ID="0409:00000409"/>
<gs:InputLanguageID Action="add" ID="0809:00000809"/>
<gs:InputLanguageID Action="add" ID="0409:00000809"/>
<gs:InputLanguageID Action="add" ID="0809:00000409"/>
</gs:InputPreferences>
</gs:GlobalizationServices>
<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend">
<gs:UserList>
<gs:User UserID="Current" CopySettingsToDefaultUserAcct="false" CopySettingsToSystemAcct="false"/>
</gs:UserList>
<gs:InputPreferences>
<gs:InputLanguageID Action="remove" ID="0409:00000409"/>
<gs:InputLanguageID Action="remove" ID="0809:00000809"/>
<gs:InputLanguageID Action="remove" ID="0409:00000809"/>
<gs:InputLanguageID Action="remove" ID="0809:00000409"/>
</gs:InputPreferences>
</gs:GlobalizationServices>
@echo off
echo ----------------
echo add English (US)
echo ----------------
control intl.cpl,, /f:"AddKeyboardLanguage.xml"
echo.
echo ----------------
echo start CS:GO
echo ----------------
start steam://rungameid/730
:search
tasklist|find "csgo.exe"
IF %ERRORLEVEL% == 0 (GOTO found)
TIMEOUT /T 2
GOTO search
:found
TIMEOUT /t 10
echo.
echo ----------------
echo remove English (US)
echo ----------------
control intl.cpl,, /f:"RemoveKeyboardLanguage.xml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment