Autoexec script on load

Forums Desktop Info Autoexec script on load

Viewing 4 reply threads
  • Author
    Posts
    • #4569
      lobsi
      Participant

      Hi Glenn,
      Is there a possibility to automatically execute a powershell script on initial load?
      This would enable us to fix the scaling issue. We’d like to change monitor resolution to a low value and back to the original value by script. The scaling is mutch better afterwards.

    • #4570
      Nathan_K
      Participant

      You should be able to add that by using the CMD option with an “interval:0” and “hidden:1” options, telling it to run once on load and never run again, and not show any output.

    • #4577
      lobsi
      Participant

      Thank you, Nathan K. Your advice is working although it actually can’t be used to solve the scaling problem.

      • #4578
        Nathan_K
        Participant

        Sorry to hear that it’s not doing the trick. What is it (or is it not) doing that causes it not to resolve the issue?

    • #4579
      lobsi
      Participant

      Executing our script during onload would start to early (in our case the main form has to be loaded before script execution).

      Fortunately I found the solution to our problem in Windows compatibility settings: DTI is DPI unaware.

      Solution
      Setting following compatibility flag fixed our scaling issues:
      [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
      “C:\\Program Files\\DesktopInfo\\DesktopInfo64.exe”=”~ DPIUNAWARE”

    • #4602
      Glenn
      Keymaster

      yeah that was my next thought given I seem to having trouble getting the buttons scaled properly. Setting the dpiunaware compatibility setting makes it size properly but there is some fuzziness to it I believe so it’s a trade-off.

Viewing 4 reply threads
  • You must be logged in to reply to this topic.
Glenn's Page