Jump to content
Hypertrophy

dpi settings messing up my program

Recommended Posts

Hypertrophy

i have been coding a script for a while now and im usually running a native dpi like 96 but when i ran the script on my other computer every control i created was completely messed up and in the wrong place, overlapping and cut-off. can someone help me to solve this problem i don't know what to do, is there a function that will let me run according to computers dpi or something?

Share this post


Link to post
Share on other sites
picaxe

You can get the gui dimension scaling ratio from here

Share this post


Link to post
Share on other sites
tonycst

I get error saying

"C:\Users\Administrator\Desktop\GetDPI.au3" (56) : ==> Can not initialize a variable with itself.:
Local $hDC = DllCall("user32.dll", "long", "ReleaseDC", "long", $hWnd, "long", $hDC)
Local $hDC = DllCall("user32.dll", "long", "ReleaseDC", "long", $hWnd, "long", ^ ERROR

I know its old post but i have yet found a solution thats current and that works with current version of autoit

Share this post


Link to post
Share on other sites
JLogan3o13
4 hours ago, tonycst said:

I know its old post

And you should have known better than to resurrect a thread from 8 years ago - especially when it doesn't get you any closer to solving your own issue. Next time think first and just create a new topic.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×