Created
June 17, 2021 09:57
-
-
Save agail/ccc378dc8a743eb1130604f74b41c5b9 to your computer and use it in GitHub Desktop.
Citrix Alt+tab - Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: | |
:: v0.1 - initial version | |
:: | |
SetLocal | |
set HKCU=HKEY_CURRENT_USER\SOFTWARE\Citrix\ICAClient\Engine\Lockdown Profiles\All Regions\Lockdown\Virtual Channels\Keyboard | |
set HKLM32=HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\ICA Client\Engine\Lockdown Profiles\All Regions\Lockdown\Virtual Channels\Keyboard | |
set HKLM64=HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Citrix\ICA Client\Engine\Lockdown Profiles\All Regions\Lockdown\Virtual Channels\Keyboard | |
set Key=TransparentKeyPassthrough | |
set Value=Remote | |
if "%1" == "query" call :querykey | |
if "%1" == "set" call :addkey | |
if "%1" == "" call :help | |
goto :eof | |
:help | |
echo. | |
echo. Enable Alt-Tab Hotkey Within A Citrix Desktop Session - Citrix Workspace App - https://support.citrix.com/article/CTX232298 | |
echo. | |
echo. %~nx0 query^|set | |
echo. | |
goto :eof | |
:querykey | |
for /f "tokens=3 skip=2" %%a in ('reg query "%HKLM64%" /v %Key%') do set key_val=%%a | |
if "%key_val%" == "" ( | |
echo Not set | |
) ELSE ( | |
echo %Key% = %key_val% | |
) | |
goto :eof | |
:addkey | |
reg add "%HKLM64%" /v %Key% /t REG_SZ /d %Value% /f 1>nul | |
call :querykey | |
goto :eof | |
EndLocal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment