4K Scaling, messed up UI and pages

Page 3 of 3 FirstFirst 123

  1. Posts : 1,204
    11 Home

    black said:
    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 ?
    If you are running the commands directly from the command line, then you need to change %%f to %f so basically %%f only works in a batchfile.
    For example, assuming that SetDpi.exe is in a folder C:\ My Tools (which has a space character in its name) and you're running the command from the command line,
    for /f "tokens=*" %f in ('"C:\My Tools\SetDpi.exe" value') do if %f==100 ("C:\My Tools\SetDpi.exe" 200)else (if %f==200 "C:\My Tools\SetDpi.exe" 100)
    So, to be able to run it within a batchfile instead of running it from the command line, we need to double the percentage signs:
    for /f "tokens=*" %%f in ('"C:\My Tools\SetDpi.exe" value') do if %%f==100 ("C:\My Tools\SetDpi.exe" 200)else (if %%f==200 "C:\My Tools\SetDpi.exe" 100)
    The code from my previous post also works within a batchfile.
      My Computers

  2. Posts : 69
    Windows 10
    Thread Starter

    Ok I got to work this time but only if there's no space in the path, it never works with space, no matter what name is the folder.

    Here my code
    for /f "tokens=*" %%f in ('"C:\Users\Myname\Documents\Programs\PC Tools\SetDpi.exe" value') do if %%f==100 ("C:\Users\Myname\Documents\Programs\PC Tools\SetDpi.exe" 200)else (if %%f==200 "C:\Users\Myname\Documents\Programs\PC Tools\SetDpi.exe" 100)
    If I removed the space from the folder "PC Tools" it runs fine.
    With space, the commands window pops and nothing happens.

    But even then, when it runs without space and change the scale, if I run it again my explorer freeze for about 2 minutes for some reasons after changing the scale back.

    I don't know what's going on.
    I give up, been fiddling with it for too long, not worth it, I'll keep using my noobish code, it works as good xD
    Thank you for the help :)
      My Computer

  3. Posts : 1,204
    11 Home

    I honestly don't know. For me, it works. Just need to wait long enough for Windows to finish doing its thing with the graphical realignments of the desktop and everything else before switching it back. It can take more than just a few seconds, it part depends on how much stuff it has to go through to finish. Switching it back and forth in too rapid succession causes hiccups.

    If you're able to type in cd C:\Users\Myname\Documents\Programs\PC Tools (and then press enter) in a command prompt without getting an error message, normally it should work. Or cd /d C:\Users\Myname\Documents\Programs\PC Tools if the current drive in the command prompt is not the C: drive. (And substituting C:\Users\Myname with %userprofile% should also work.)
      My Computers

  4. Posts : 69
    Windows 10
    Thread Starter

    cd worked fine and changed the path to PC tools folder.
    I have no idea.

    Changing the layout / scale takes about 2 seconds or less for me, but has like a chance of random freezing for 2 minutes after, if I used your code.
    My code doesn't freeze after, ?? go figure lol.
    But then Windows 10 is all random, we shouldn't be discussing this issue in the first place.
    I can't imagine anyone in the world can use the current UI scale for 4K resolution.
    But it is Microsoft, too lazy to fix things and just turns blind as usual.

    Thank you again :)
      My Computer

  5. Posts : 1,204
    11 Home

    On my 55″ 4K TV the recommended scaling in Win 11 is at 300%, no less...

      My Computers

  6. Posts : 69
    Windows 10
    Thread Starter

    Yes exactly.
    I resized my screen and compared it to what it would like next to 25" 4k monitor.

    Literally can't see single letter.
    I don't know how Microsoft thinks this is ok default UI size for 4k.
    Even smart phones do better at 4k scaling with smaller screens.
      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 02:46.
Find Us

Windows 10 Forums