DPI

For certain emulators/games in Windows having DPI set to anything over 100% and resolution above 1080p can affect bezels and tracking. This AHK can allow you to change resolution and DPI by editing the directory. Add it into your own AHK when launching certain games/emulators.

WARNING
WARNING - This AHK edits your registry, use at your own risk!

Required User Steps

 * First open the Registry (Win + R, enter 'regedit', press return)
 * Navigate to HKEY_CURRENT_USER\Control Panel\Desktop\PerMonitorSettings\ and take note of the entry. This will relate to your monitor(s), hopefully it will say something like 'ACR' for Acer or SAM for Samsung at the start to match your monitor's brand name).
 * Copy the name of the folder and replace both ' ' sections on lines 3 and 23

Script Explaination

 * The DpiValue section on line 3 sets the DPI to 100% from 150%

also works for 300% so -2 should mean 100% but you may need to experiment


 * Lines 5-17 changes the resolution to 1080p


 * Line 23 changes the DPI to the recommended (default) DPI for the monitor. If using the non-recommended DPI you may need to adjust this value.


 * Linse 25-37 changes the resolution back to 4K

Time Crisis 5 Example
You can use these AHK scripts for launching a game/emulator, an example for Time Crisis 5 is below.


 * This includes disabling and restoring the second display as well (lines 9 & 85).

Add the code for switching before launching the game/emulator and the switch back after you've closed the game/emulator.