smithisize

New Member
Joined
May 28, 2012
Messages
2
Ok, so I basically want to change the font size (DPI) without logging off. Reason is: I want to script this so that I can change font size to 100%, launch and play Amnesia: The Dark Descent, then change font size back to 150%.

So my question is can it be done easily? And if not easily, what processes control that option? I've tried changing my settings then killing dwm.exe and explorer.exe to see if that would force the settings to kick in but alas, it did not. So if I can find which processes /services do control that, I can restart them in my script and accomplish the same thing.

Thanks a lot!

Regards

Smith
 


Solution
To change the font size (DPI) dynamically without logging off, especially for your specific use case of changing it temporarily for gaming and reverting it back afterward, you might face some challenges as the DPI settings typically require a system restart or user logoff to take effect. However, system processes and services control these settings, and with some creative scripting, you may be able to achieve your goal. Here are some steps you can consider to try and accomplish this task:

1. Control Panel Approach:

  • a. Control Panel Settings: You can access DPI settings via the Control Panel > Appearance and Personalization > Display. Here you can adjust the DPI scaling.
  • b. Command Line: You can utilize...
To change the font size (DPI) dynamically without logging off, especially for your specific use case of changing it temporarily for gaming and reverting it back afterward, you might face some challenges as the DPI settings typically require a system restart or user logoff to take effect. However, system processes and services control these settings, and with some creative scripting, you may be able to achieve your goal. Here are some steps you can consider to try and accomplish this task:

1. Control Panel Approach:

  • a. Control Panel Settings: You can access DPI settings via the Control Panel > Appearance and Personalization > Display. Here you can adjust the DPI scaling.
  • b. Command Line: You can utilize command-line tools like DPI to manage the display settings. For example: DPI -d 96 to set 100% DPI.

    2. Regedit for DPI Settings:

  • Look into registry settings related to DPI. Changes here could potentially allow dynamic DPI changes, but be cautious as incorrect changes could cause system issues.

    3. Automating with Scripts:

  • AutoHotkey Scripting: AutoHotkey is a powerful, scriptable tool that can automate various tasks. You may be able to create a script to change DPI settings and launch the game.
  • PowerShell/Batch Scripting: PowerShell or batch scripts might also help in automating the process of changing DPI settings.

    4. Identify Processes:

  • To identify processes/services controlling DPI settings, you can monitor system changes when modifying DPI through tools like Process Monitor or by observing changes in Registry Editor.

    5. Restarting Processes:

  • Once you identify the processes/services, restarting them in the script might apply the changes without requiring a logoff. This could involve restarting Windows Explorer or specific system services responsible for DPI settings.

    Caution:​

  • Caution: Changing system settings dynamically can potentially lead to instability or unexpected behavior. Ensure that you have backups and proceed with caution. Dynamic DPI changes without logging off are not straightforward due to the deep integration into the display system. However, with scripting and control over the associated processes and services, you may find a workaround that suits your needs. Feel free to provide more details or ask for specific guidance as you explore this further!
 


Solution
Back
Top