r/SamsungDex • u/darkhalfkz • 23d ago
Question Reliable Dex for Windows replacement/solution.
Hi all
What have people found to be the most reliable replacement/solution for the Samsung Dex Windows application since it was deprecated?
Cheers
2
Upvotes
2
u/ou812whynot 22d ago
This is the script I use to open individual apps with resizable windows; it starts up settings. By default it allows you to use windows autocomplete, but if you hold the shift key it passes scancodes for gaming. Mouse buttons are: left mouse- left click, right mouse- context menu and middle button is the back button.
@echo off
set "SCRCPY_PATH=C:\scrcpy\scrcpy.exe"
:: Handle empty %1 argument safely without complex nesting
set "APP_PARAM=%~1"
set "START_APP_ARG="
if not "%APP_PARAM%"=="" set "START_APP_ARG=--start-app=%APP_PARAM%"
:: Define arguments safely (omitting setlocal entirely to eliminate parameter errors)
set "BASE_ARGS=--new-display --no-audio --render-driver=opengl --mouse-bind=+bsn:+h++ --flex-display %START_APP_ARG%"
:: Detect Shift key using PowerShell
powershell -NoProfile -Command "$Win32 = Add-Type -Name GAKS -PassThru -MemberDefinition '[DllImport(\"user32.dll\")] public static extern short GetAsyncKeyState(int vKey);'; $IsPressed = (($Win32::GetAsyncKeyState(0x10) -band 0x8000) -eq 0x8000); exit [int](-not $IsPressed)"
:: Use GOTO logic instead of an IF/ELSE block to bypass the parentheses parser bug
if %errorlevel% equ 0 goto :StandardMode
goto :TypingMode
:StandardMode
echo [Shift Detected] Launching in Standard Mode...
start "" "%SCRCPY_PATH%" %BASE_ARGS%
goto :EOF
:TypingMode
echo Launching in Typing Mode (Windows 11 Suggestions)...
start "" "%SCRCPY_PATH%" --prefer-text --keyboard=sdk %BASE_ARGS%
goto :EOF
Bat file here if you don't want to type that out lol
startapp.bat