Back to Blog
Quick resolution switcher7/8/2023 It will execute the script (with an icon in the system tray that you can use to shut it off). To use the script, install AutoHotkey, save the following script to a file with an “.ahk” extension, and then double-click the file. The following script maps CTRL‑6 through CTRL‑9 to different screen resolutions (and refresh rates). What I really wanted was the ability to switch resolutions with a single keystroke, and AutoHotkey came to the rescue!ĪutoHotkey is an open-source tool for Windows that allows you to automate tasks through text scripts, and map them to any Windows key (as well as joystick and mouse events). So I find myself frequently flipping resolutions, which on Windows 10 is not a simple one-click operation. ![]() Meanwhile, I also like to step away from my desk and use Chrome Remote Desktop on a small 14″ Chromebook to continue my work on the road. There are a lot of good solutions on Super User in this question as well, but I think what I have provided will suffice.I use a 39″ 4K monitor for my computer display because I appreciate a large work surface. You could use NirCmd in conjuction with AutoHotKey as shown above to have a functioning toggle. This changes the display to a resolution of 1920 x 1080 with a 24 bit color depth. Example of usage: nircmd.exe setdisplay 1920 1080 24 (some source of this question from that site).Īlternatively, you could use the freeware tool NirCmd. There is more documentation on the use of Qres here. Again, the path to Qres would need to be inputted to the correct path. ![]() This script would use Windows A Windows A but could be changed to whatever you like (preferably something that Windows doesnt already use). Toggle := -1 set to -1 so on next run it will end up being 0 ![]() Toggle = 1 This increments toggle state (so values after execution of this line will be either 0 or 1) You can create a second batch file with the alternative resolution and switch between the two resolutions with each separate batch file, or if you need to change the display resolution constantly then you could write something with a toggle using Autohotkey:Īn example of an AutoHotKey script in conjunction with Qres might look something like this: #a:: ![]() bat file extension.Īfter you complete the steps, double-click the batch file and the screen resolution should change automatically without the need for extra steps. For example, 1366 x 768, 1440 x 900, 1680 x 1050, 1920 x 1080, 2560 x 1440, etc.Ģ - Click the File menu and select the 'Save A's option.ģ - Save the batch file with a descriptive name and a. In the command above make sure to enter the correct path for the QRes.exe file, and enter a supported width (x) and height (y) pixel resolution. bat file:ġ - Open notepad, create a new file and copy and paste the following command:: %homepath%\Downloads\QRes\QRes.exe /x:1920 /y:1080 Once Qres is installed do the following to create a simple. bat file to switch between the two resolutions: You can use the CMD to change to any of the supported resolutions, therefore you will be able to create a. There is a free Windows utility that should be able to get the job done called QRes.
0 Comments
Read More
Leave a Reply. |