simplercoder000 Posted February 13 Share Posted February 13 Hi there, I'm facing this issue where my GUI app gets blurriness/fuzziness controls. My screen size are big so I'm enforced to up-scale my display text to 150% so I can view things normally. The same issue has been reported as bug here: https://www.autoitscript.com/trac/autoit/ticket/3238 But this issue seems like still unsolved until today. I have been searching in the forum for a while, and I have found this: I have tried this script, but I'm still facing the same issue. I have even tried adding the High DPI feature into my script but that's also didn't work #AutoIt3Wrapper_Res_HiDpi Example GUI: Quote #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 220, 172, 195, 124) $Button1 = GUICtrlCreateButton("Button1", 32, 112, 75, 33) $Button2 = GUICtrlCreateButton("Button2", 114, 112, 75, 33) $Input1 = GUICtrlCreateInput("Input1", 48, 72, 121, 21) $Label1 = GUICtrlCreateLabel("Autoit are awesome !", 64, 24, 103, 17) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd I'm running on Windows 7 x64 Link to comment Share on other sites More sharing options...
argumentum Posted February 13 Share Posted February 13 (edited) Welcome to the forum. Take a look at https://www.autoitscript.com/forum/index.php?showtopic=210613 Edited February 13 by argumentum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
simplercoder000 Posted February 13 Author Share Posted February 13 1 hour ago, argumentum said: Take a look at https://www.autoitscript.com/forum/index.php?showtopic=210613 I don't know how did I miss this thread, maybe I haven't search well, thank you! The High DPI issue must be treated as serious problem since not all users have the same screen sizes. I say this because I even notice that some internal AutoIt tools like Koda (Form Designer) or AutoIt3Wrapper GUI has the HiDPI issues. argumentum 1 Link to comment Share on other sites More sharing options...
argumentum Posted February 13 Share Posted February 13 before you settle for what you've found, please try and let me know. Thanks simplercoder000 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
simplercoder000 Posted February 13 Author Share Posted February 13 @argumentum Here's my result: Added 60 items to the list Screen Dimensions: 1280 x 800 Listview Dimensions: 19382 x 19 Calculated GUI size: 640 x 360 OS: WIN_7 Link to comment Share on other sites More sharing options...
argumentum Posted February 13 Share Posted February 13 ...but how does it look ?, the code in the 1st post. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
argumentum Posted February 13 Share Posted February 13 (edited) for example, this is the way it looks in each of my 2 monitors: placed one on top of the other. 100% and 225%. Even if you have one in Win7. And, sorry, I meant the one here at this post ( https://www.autoitscript.com/forum/topic/210604-tester-needed/#comment-1522028 ) not the first one. My bad. Edited February 13 by argumentum better pic simplercoder000 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
simplercoder000 Posted February 13 Author Share Posted February 13 8 minutes ago, argumentum said: ...but how does it look ?, the code in the 1st post. I have attached a screenshot in the thread you mentioned: Link to comment Share on other sites More sharing options...
argumentum Posted February 13 Share Posted February 13 1 minute ago, argumentum said: I meant the one here at this post ( https://www.autoitscript.com/forum/topic/210604-tester-needed/#comment-1522028 ) not the first one. My bad. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
simplercoder000 Posted February 13 Author Share Posted February 13 @argumentum I tried it and doesn't shows any GUI windows. The output also doesn't prints any errors. argumentum 1 Link to comment Share on other sites More sharing options...
argumentum Posted February 13 Share Posted February 13 ok then. Your solution was the best for your setup, that unfortunately I don't have ( one of those ) to try out. Thanks @simplercoder000 simplercoder000 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Solution simplercoder000 Posted February 14 Author Solution Share Posted February 14 I have solved the issue by combining HiDPI_Changes.au3 UDF by @Jos with @InnI method to get current value of DPI That resulted in getting a correctly working GUI with High DPI support and without any issues. For more info please check here: Thanks @argumentum for helping me. argumentum 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now