View Single Post
Old 29th December 2017, 23:03   #47983  |  Link
mclingo
Registered User
 
Join Date: Aug 2016
Posts: 1,348
Quote:
Originally Posted by Manni View Post
Code:
REM Change a registry key and values with Regedit.exe 
REM and a temporary .reg file. Self contained script.
REM
REM For magic keyboard numbers go here: 
REM http://3dvision-blog.com/3053-modifying-all-3d-vision-control-key-combinations-as-you-need/

REM Necessary header for importing .reg file.
> "%temp%\Update3DSettings.reg" ECHO Windows Registry Editor Version 5.00
>> "%temp%\Update3DSettings.reg" ECHO.

REM Decide which CPU architecture- to set the proper registry keys for x86 and x64.
REM Using GOTO instead of IF THEN ELSE because of better compatibility.
REM Assume x86 as the architecture.
SET "KEY=[HKEY_LOCAL_MACHINE\SOFTWARE\NVIDIA Corporation\Global\Stereo3D]"
REM Reset the key if that's not right.
IF "%PROCESSOR_ARCHITECTURE%"=="x86"  GOTO EchoKey
SET "KEY=[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\NVIDIA Corporation\Global\Stereo3D]"
:EchoKey
>> "%temp%\Update3DSettings.reg" ECHO %KEY%

REM Now the series of registry dwords for that \Stereo3D key.
REM Let's auto-enable 3D, without going through the test.
REM Bypass the Medical Test
>> "%temp%\Update3DSettings.reg" ECHO "StereoVisionConfirmed"=dword:00000001
REM Reset from Discover
>> "%temp%\Update3DSettings.reg" ECHO "StereoViewerType"=dword:00000001

REM Now let's import registry file
REM /s is used to avoid an "Are you sure" prompt
regedit.exe /s "%temp%\Update3DSettings.reg"

REM -- No registry key for Enable stereoscopic 3D checkbox, so we'll directly
REM  call the activation tool.  Change path if this is not correct.
REM  We call for both 32 bit and 64 bit. If one fails it's not a problem.
CALL "C:\Program Files\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable
CALL "C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable
Thanks
mclingo is offline   Reply With Quote