Script to change display refresh rate

  1. Posts : 2
    Windows 10 Pro X64
       08 Mar 2018 #1

    Script to change display refresh rate

    Hi there,

    I'd like to know if someone knows a script or tool that I can use to automatically change the refresh rate in windows display settings to 75Hz when a specific program launches and then when that program closes it reverts to 60Hz

    Kind regards
      My ComputerSystem Spec

  2.    08 Mar 2018 #2

    Have a look at NirCMD's setdisplay command. I haven't used setdisplay but it has a refresh rate optional parameter that looks like it will do what you want.

    One of the examples shows: setdisplay 1024 768 24 90
    i.e. 1024 x 768 24-bit colour 90Hz refresh rate

    As for scripting, NirCMD commands can be called from a .BAT file or wrapped in AutoHotkey/AutoIt.

    Hope this helps...
      My ComputerSystem Spec

  3.    08 Mar 2018 #3

    As @RickC says, Autohotkey lends itself to this- you could simply have a loop running and test for the presence or absence of the process, and launch nircmd accordingly. More simply you could launch the program and nircmd in the script, then have a loop test for the closure of the program and then launch nircmd to change the resolution back.

    If unfamiliar with Autohotkey it has an extensive help file and a good support forum.

    It's easy to write 1,2 or 3 line scripts to test elements of what you need.
      My ComputerSystem Spec


Related Threads
I have a 5th gen carbon X1 (Intel HD Graphics 620) driving a BenQ PD2710QC through USB-C. I'm trying to connect an HD projector through the HDMI port. Most often, when I connect the projector, the display flickers on and off several times and I'm...
How to Change Screen Refresh Rate of a Display in Windows 10 The refresh rate is the number of frames per second your monitor can display. Hertz frequency is used as the measurement at which the screen is redrawn. Using a high frequency rate...
Resolution & Refresh rate in Graphic Cards
Some time ago I purchased a MINIX Z83-4 mini computer which comes with Win 10 64bit preloaded, The reason I got this was that when viewing films via Kodi on an Android box the quality of the picture was never that good. I'm not talking about the...
I switch between 1920x1080 to 3840x2160 and viceversa quite frequently. However, when I do this, Windows sets the refresh rate to 30hz, instead of 60. I need to manually set it to 60 each time I change resolution. Is there a way to set a default...
Old CRT Refresh Rate Issues in Graphic Cards
Hello everyone, just built a new PC after about 7 years and I'm coming from XP64. Although I plan on purchasing a new monitor soon I am still using my old ViewSonic G90f CRT. With XP I used ReForce to use refresh rates of 120hz in 640x480/800x600...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:58.
Find Us