DirectX toggle?


  1. Posts : 6
    Windows XP/Windows 7 dual boot
       #1

    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 Computer


  2. Posts : 5,642
    Windows 10 Pro (x64)
       #2

    Why are you wanting to do such a thing?
      My Computer


  3. Posts : 6
    Windows XP/Windows 7 dual boot
    Thread Starter
       #3

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


  4. Posts : 9,582
    Windows 8.1 Pro RTM x64
       #4

    What is this game? Have you checked for updates?
      My Computer


  5. Posts : 1,375
    Ubuntu 12.10
       #5

    What game is it?
      My Computer


  6. Posts : 6
    Windows XP/Windows 7 dual boot
    Thread Starter
       #6

    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 Computer


  7. Posts : 1,375
    Ubuntu 12.10
       #7

    Show me the game please.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
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
All times are GMT -5. The time now is 17:53.
Find Us