Jump to content

DPI Scaling & Screen Orientation Tip


DrRisk

Recommended Posts

I wanted to share something that has helped me out and could potentially help others.

 

I'm still in the setup/configuration stage of my Vpin and as a result I'm finding I need to alter scripts, download files, etc. all while trying to view it on a 43in 4k playfield.  My playfield monitor is rotated in a portrait fashion but in Windows it is in Landscape.  This makes trying to type and view things a challenge without rotating my screen back and forth.  Not to mention the text is so small in most cases that trying to do anything is frustrating at best.

 

Any way after way too much time spent in these forums and google I found a couple of tools that helped me tremendously.

SetDPI and Display  I am not the author of either of these and take no credit (or blame if they don't work for you :) ) just sharing them out.

 

I added these to my pinup popper startup and exit scripts.  When launching into Popper I use SetDPI to make sure I'm at 100% scaling mode on both monitors.  I then use Display to set my screen orientation back to 0 and confirm my backglass monitor is in the proper x/y coordinates.   When popper exits it then does the reverse and increases my scaling on my 4k screen to 200% and rotates it back to portrait.  I found this method was far easier than trying to have to edit table after table if I had tried to leave Windows in portrait mode.  

image.thumb.png.7dc52937b0ded10361dc4844976543a7.png

 

 

The beauty of this is since it is done prior to popper launching and after popper exiting it doesn't screw up any of the display settings within.

 

In addition to this I also wrote a short Powershell script to force kill Popper and VPX should I end up in some weird state and have one or more windows running in the background.  

 

This script also sets my scaling and rotation back.  

 

Finally this is all tied together with some AHK scripting so that I can launch popper or brute force kill it with a few keystrokes

CTRL Alt 1 Launches

CTRL Alt 2 Kills

CTRL Alt E opens the Popper Config

image.png.7a54a8cc40633cafa038be8eb1ed0491.png

I'm by no means an expert in scripting so I'm sure there are better ways of doing some of this so if you have suggestions I'm open to feedback.  Also if you find this post and it helps you let me know.

 

Now time to put the keyboard away and play :)

 

 

 

Edited by DrRisk
added screenshots
Link to comment
Share on other sites

  • 2 weeks later...

Thanks for this.   This gives me some ideas to try.   I'm in this never-ending 'config' state of my cab, and I despise having to resort to keyboard.       I will definitely map your 'killscript' to one of my cab's buttons.   If popper (either front end or even a PUP pack) doesn't shut down correctly, it is no bueno.   :) 

Link to comment
Share on other sites

  • 1 month later...

This is what I've been searching for but it didn't work for me. Is it cuz I'm a desktop user? I just don't like having to always change my DPI to 100% and back to 300%. I'm playing on a 75" 4k TV so even putting it to 100% DPI makes the mouse so slow and sluggish. 

I love the idea of a script changing my DPI back and forth once I start and end the game. Maybe a different script for me? I have NO clue about scripts lol. I have my visual pinball in my e drive, would that make a difference?

 

Thanks for any help!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...