Windows 7 Forums


Windows 7: DirectX toggle?

25 Jul 2011   #1

Windows XP/Windows 7 dual boot
 
 
DirectX toggle?

I have a script I use to use for Windows XP but seems some batch commands have changed.. I want to be able to toggle on/off DirectX in Windows 7. Anyone know if this works in Windows 7 and how to fix the script?



Code:
@Echo off
Title "Toggling DX Mode"
::Mode CON: COLS=35 Lines=5
Reg query HKLM\SOFTWARE\Microsoft\DirectDraw|Findstr /I "emulationonly">Nul
If %Errorlevel%==1 (Set _CurMode=0x0)&Goto _Test
For /F "Tokens=3 skip=3" %%I In ('Reg query HKLM\SOFTWARE\Microsoft\DirectDraw /V EmulationOnly') Do Set _CurMode=%%I
:_Test
If %_CurMode%==0x0 (Set _Setting=Disable) Else (Set _Setting=Enable)
::Set Mode=1 to Disable, Mode=0 to Enable
Set _Mode=0
If /I "%_Setting%"=="Disable" Set _Mode=1
If /I "%_Setting%"=="Enable" Set _Mode=0
Reg Add HKLM\SOFTWARE\Microsoft\DirectDraw /V EmulationOnly /T REG_DWORD /D %_Mode% /F>Nul
Reg Add HKLM\SOFTWARE\Microsoft\Direct3D\Drivers /V SoftwareOnly /T REG_DWORD /D %_Mode% /F>Nul
Echo Acceleration has been %_Setting%d
Ping 1.0.0.0 -n 1 -w 5000>Nul
I keep getting the error (Set was unexpected at this time. this happens after the line...

For /F "Tokens=3 skip=3" %I In ('Reg query HKLM\SOFTWARE\Microsoft\DirectDraw /V EmulationOnly') Do Set _CurMode=%I
My System SpecsSystem Spec

25 Jul 2011   #2

Windows 7 x64 (SP1)
 
 

Why are you wanting to do such a thing?
My System SpecsSystem Spec
26 Jul 2011   #3

Windows XP/Windows 7 dual boot
 
 

An older game I play does not like hardware acceleration.. I use to disable it than play it fine.
My System SpecsSystem Spec
.


26 Jul 2011   #4

Windows 7 Ultimate x64 Service Pack 1
Doncaster, UK
 
 

What is this game? Have you checked for updates?
My System SpecsSystem Spec
26 Jul 2011   #5

Ubuntu 12.10
 
 

What game is it?
My System SpecsSystem Spec
27 Jul 2011   #6

Windows XP/Windows 7 dual boot
 
 

It's an old windows type game... Actually several games written in rtp.. I find when I disable the directx the games would no longer flicker when I go to full screen. So the toggle is what I used to do that.. rtp games are games written by fans with rpg maker which is not a new program at all so tends to have some minor issues and one is full screen flickers on many of the games.
My System SpecsSystem Spec
27 Jul 2011   #7

Ubuntu 12.10
 
 

Show me the game please.
My System SpecsSystem Spec
Reply

 DirectX toggle? problems?



Thread Tools



Similar help and support threads for: DirectX toggle?
Thread Forum
Having DirectX Problem, Specifically DirectX Diagnostic Performance & Maintenance
Solved Radeon HD 5750 directx 10 or directx 11 Graphic Cards
DirectX issue - setup has detected that one or more directx component Graphic Cards
toggle gadgets on/off? Gadgets
Toggle aero General Discussion


All times are GMT -5. The time now is 09:12 AM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32