4K Scaling, messed up UI and pages

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 69
    Windows 10
    Thread Starter
       #11

    Yes.
    If you're resolution is at the recommended scaling, it will be disabled, mine gets disabled too at 720 and unlocked if it was bigger than that.
    Thank you, that was great, I'll check it out and play with macro for now.
    Wished if there was more ideal way or program to resize the UI.
    I'll report back with results when I get it to work.
    Thank again!!
      My Computer


  2. Posts : 2,921
    Windows 10 Pro for the Bro
       #12

    Cool. Hope you find a good method for this project. 👍
      My Computer


  3. Posts : 1,203
    11 Home
       #13

    black said:
    @pepanee
    Wow! Thank you! That's actually an awesome tip I can make use of later
    Luckily, the display setting is one right click away.
    What I meant is a press on macro button for instant change to 100 scale without prompt or opening windows.
    Probably can google those commands to get it work but I'll wait for more legit ideas, the scaling is bit wacky with some programs.
    • SetDPI.exe 100
    • SetDPI.exe 200

    GitHub - imniko/SetDPI
      My Computers


  4. Posts : 1,203
    11 Home
       #14

    pepanee said:
    windows 10 - Is it possible to change display scaling via command line? - Super User
    Scroll a little down to the answer with the "Batch Script". Read the paragraph above it.
    Better to just scroll all the way down to the bottom of that thread IMO. lol
      My Computers


  5. Posts : 2,921
    Windows 10 Pro for the Bro
       #15

    hdmi said:
    Better to just scroll all the way down to the bottom of that thread IMO. lol
    Oh! Yes! You're right! You also mentioned that earlier, I just looked at posts on this thread before mine. You're completely right.
    Yes, Thread Starter, check out hdmi's posts! They're much more convenient and better than what I was blabbering about!
      My Computer


  6. Posts : 69
    Windows 10
    Thread Starter
       #16

    hdmi said:
    Better to just scroll all the way down to the bottom of that thread IMO. lol
    I tried that and it missed my desktop beyond repair.
    After searching I thought I'd give it another try and seems to be working fine now!



    So here what I did:
    Made a folder, put Setdpi.exe in it and created 2 text files as follow:
    SetDpi.exe
    Sset.txt
    100.txt

    Rename Sset.txt to Sset.bat, right click edit, inserted the following command:
    Code:
    if exist 100.txt goto :Set200
    SetDpi.exe 100
    Ren 200.txt 100.txt
    exit
    :Set200
    SetDpi.exe 200
    Ren 100.txt 200.txt
    Linked macro button on keyboard to run the Sset.bat file.

    This will check if my dpi is 100 will switch to 200 and vice versa.
    All in one button, I'm not CMD expert but it works.
    And it will work as long as those three files are in one place.

    Hope this help anyone having the same problem till we can find a proper solution.
    Or hopefully MS will hire someone who actually knows how to code and fix it in their next 10 years update.


    Thank you everyone, I'll keep this topic unsolved and open to more idea regarding this issue.
    I'll be checking around :)
      My Computer


  7. Posts : 1,203
    11 Home
       #17

    black said:
    I tried that and it missed my desktop beyond repair.
    After searching I thought I'd give it another try and seems to be working fine now!



    So here what I did:
    Made a folder, put Setdpi.exe in it and created 2 text files as follow:
    SetDpi.exe
    Sset.txt
    100.txt

    Rename Sset.txt to Sset.bat, right click edit, inserted the following command:
    Code:
    if exist 100.txt goto :Set200
    SetDpi.exe 100
    Ren 200.txt 100.txt
    exit
    :Set200
    SetDpi.exe 200
    Ren 100.txt 200.txt
    Linked macro button on keyboard to run the Sset.bat file.

    This will check if my dpi is 100 will switch to 200 and vice versa.
    All in one button, I'm not CMD expert but it works.
    And it will work as long as those three files are in one place.

    Hope this help anyone having the same problem till we can find a proper solution.
    Or hopefully MS will hire someone who actually knows how to code and fix it in their next 10 years update.


    Thank you everyone, I'll keep this topic unsolved and open to more idea regarding this issue.
    I'll be checking around :)
    Assuming that the file SetDPI.exe is in a folder C:\tools
    Code:
    for /f "tokens=*" %%f in ('C:\tools\SetDPI.exe value') do if %%f==100 (C:\tools\SetDPI.exe 200)else (if %%f==200 C:\tools\SetDPI.exe 100)
      My Computers


  8. Posts : 69
    Windows 10
    Thread Starter
       #18

    hdmi said:
    Assuming that the file SetDPI.exe is in a folder C:\tools
    Code:
    for /f "tokens=*" %%f in ('C:\tools\SetDPI.exe value') do if %%f==100 (C:\tools\SetDPI.exe 200)else (if %%f==200 C:\tools\SetDPI.exe 100)
    Well, that looks better than my amateur code.
    I copied your code and corrected the path, nothing happens when I run it.
    Am I suppose to modify anything else?
      My Computer


  9. Posts : 1,203
    11 Home
       #19

    black said:
    Well, that looks better than my amateur code.
    I copied your code and corrected the path, nothing happens when I run it.
    Am I suppose to modify anything else?
    Does your folderpath contain any spaces? If so, enclose the whole filepath in doublequotes e.g. "C:\My Tools\SetDpi.exe"

    Or, alternatively:
    Code:
    cd /d C:\My Tools
    for /f "tokens=*" %%f in ('SetDpi.exe value') do if %%f==100 (SetDpi.exe 200)else (if %%f==200 SetDpi.exe 100)
    Last edited by hdmi; 05 Jul 2023 at 10:43.
      My Computers


  10. Posts : 69
    Windows 10
    Thread Starter
       #20

    hdmi said:
    Does your folderpath contain any spaces? If so, enclose the whole filepath in doublequotes e.g. "C:\My Tools\SetDpi.exe"

    Or, alternatively:
    Code:
    cd /d C:\My Tools
    for /f "tokens=*" %%f in ('SetDpi.exe value') do if %%f==100 (SetDpi.exe 200)else (if %%f==200 SetDpi.exe 100)
    Did that, still not working.
    Getting "%%f unexpected at this time"

    In Powershell I'm getting this error:
    Missing opening '(' after keyword 'for'.
    + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingOpenParenthesisAfterKeyword


    Copied your exact code and folder is in C:\tools\
    I know it's me who's doing something wrong ?
      My Computer


 

  Related Discussions
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 12:59.
Find Us




Windows 10 Forums