Script to toggle screen resolution

Discussion in 'Scripting' started by rupsdb, Dec 24, 2020.

  1. rupsdb

    rupsdb MDL Novice

    Nov 19, 2011
    34
    0
    0
    #1 rupsdb, Dec 24, 2020
    Last edited: Dec 24, 2020
    Win10 Pro on HP Pavillion-14, 1080p res

    Default display resolution is 1920x1080 up-scaled by 150%. But whenever I want to run XP VM on VirtualBox, either I need to scale it at 150 % or reduce win10 display res at 1366x768.

    Problem with up-scaling VM is that guest OS gets blurred. Otherwise screen is too small to use.

    So, if there's a script which can toggle between 1920x1080/150% <-->1366x768/100% that would make things easier. Can it be done using cmd/powershell?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. adric

    adric MDL Expert

    Jul 30, 2009
    1,255
    1,327
    60
    Have you tried nircmd.exe setdisplay?