UEZ Posted August 4, 2023 Author Posted August 4, 2023 24 minutes ago, Shark007 said: The GUI would not present itself. The Application would run and show an icon on the taskbar but I could not get the GUI to show. When I hovered the taskbar icon, I could see the preview of a thin sliver of the gui vertical in the center on the taskbar gui thumbnail. By the way, I only create 64Bit DpiAware Gui's and had no issue's using the old code except for what was previously discussed. I do use the manifest to set up Dpi Aware'ness. 64bit GUI's are a must if you distribute your software publicly and want to avoid false positives. Ok thanks but without source code I cannot troubleshoot. Using x86 works? Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
Shark007 Posted August 4, 2023 Posted August 4, 2023 2 minutes ago, UEZ said: Ok thanks but without source code I cannot troubleshoot. Using x86 works? It has been more than 1 year already that I have stopped creating 32Bit GUI's completely mostly because of the false positives.
UEZ Posted August 4, 2023 Author Posted August 4, 2023 2 minutes ago, Shark007 said: It has been more than 1 year already that I have stopped creating 32Bit GUI's completely mostly because of the false positives. That's was not my question. 😉 If you compile it as x86 just for testing purposes, does it work? Maybe you have to turn off your AV. Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
Shark007 Posted August 4, 2023 Posted August 4, 2023 4 minutes ago, UEZ said: That's was not my question. 😉 If you compile it as x86 just for testing purposes, does it work? Maybe you have to turn off your AV. I will try an x86 compile. I stopped using AV of any kind, not even Windows Defender more than 10 years ago. Once you familiarize your self with the possible source's of viruses, it becaomes simple to avoid.
Shark007 Posted August 4, 2023 Posted August 4, 2023 (edited) 24 minutes ago, UEZ said: That's was not my question. 😉 If you compile it as x86 just for testing purposes, does it work? Maybe you have to turn off your AV. OK. I compiled my script as x86 using your latest iteration of your UDF and I get the exact result as x64, a thin sliver of a thumbnail presented on the taskbar and no GUI presented. Edited August 4, 2023 by Shark007
UEZ Posted August 4, 2023 Author Posted August 4, 2023 Thx for testing. Can you send me the source code for troubleshooting? Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
Shark007 Posted August 4, 2023 Posted August 4, 2023 1 minute ago, UEZ said: Thx for testing. Can you send me the source code for troubleshooting? It is 4200 lines of code involving a 1/2 dozen (or more) private UDF's.
UEZ Posted August 4, 2023 Author Posted August 4, 2023 The interesting part is why your GUI is not shown. Anyhow, I cannot fix it when I cannot reproduce the bug. Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
Shark007 Posted August 4, 2023 Posted August 4, 2023 (edited) I will see what I can do to tear my gui down to something shareable and still presents the issue. If I pull this off, I do not expect any of the GUI controls to be functional at all because this will be solely for GUI presentation. Currently it is using 10 private UDF's. Edited August 4, 2023 by Shark007
Shark007 Posted August 4, 2023 Posted August 4, 2023 @UEZ In stripping my GUI down to something you can test with I did notice that the problem occurs only when the manifest sets the DPI Aware'ness I've included my AutoIt3Wrapper.au3 because it autosets the awareness I prefer. Check you private messaging for a download url
Shark007 Posted August 4, 2023 Posted August 4, 2023 (edited) To followup further, UEZ did some testing with files I provided. The conclussion was that my personally modified AU3Wrapper was causing the issue with the newest _WinAPI_DPI.au3 provided by UEZ. Edited August 4, 2023 by Shark007 argumentum 1
Shark007 Posted August 10, 2023 Posted August 10, 2023 new screenshots 4KPC @225 laptop 1080p screen @ 150 laptop dragged to 4K @ 225 UEZ 1
UEZ Posted August 10, 2023 Author Posted August 10, 2023 (edited) Looks good. Dragging the GUI across the monitors should also fit. What is left is to adjust the size of the Avi clip accordingly. Today I updated the GUI example. @Shark007 Thanks for the screenshots. Creating DPI aware GUI is not an easy task... @All; What about OS < Win11? How does it look on Win7, Win8 and Win10 on multi-monitor environment? Can somebody test and share any screenshot? Edited August 10, 2023 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
ioa747 Posted August 12, 2023 Posted August 12, 2023 Windows Shortcut win10 If you want to move a window to a display located to the left of your current display, press Windows + Shift + Left Arrow. If you want to move a window to a display located to the right of your current display, press Windows + Shift + Right Arrow. I know that I know nothing
TheSaint Posted August 12, 2023 Posted August 12, 2023 Interesting project. Just for fun, this is my result for the code in Post #1 with Win 7 32 Bit, along with the needed #include <WinAPIGdi.au3> Added 222 items to the list Screen Dimensions: 1920 x 1080 Listview Dimensions: 50840 x 19 Calculated GUI size: 960 x 540 OS: WIN_7 Here's a screenshot to give you a laugh. Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)
UEZ Posted August 12, 2023 Author Posted August 12, 2023 (edited) @TheSaint thanks for it but I'm more interested in the Sample GUI from here: Any change to test it and provide a screenshot same as Shark007? The interesting part is when the DPI is > 100%. 222 desktop icons!?!?! The Toolbar Desktop tool can be found currently only on German site. I'm currently struggling with the file icon on DPI change to resize it properly... Edited August 12, 2023 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
ioa747 Posted August 12, 2023 Posted August 12, 2023 (edited) I have Windows 10 Pro Version:22H2 I have two screens DISPLAY1 Dim:1920, 1080 Scale:100% is primary DISPLAY2 Dim:3840, 2160 Scale:200% Spoiler Advanced scaling settings (if it plays any role) _WinAPI_DPI.au3 test1 https://www.autoitscript.com/forum/topic/210604-tester-needed/#comment-1522028 ;----------------------------------------------------------------------------------------------------------------------- when i run it it comes to the primary screen DISPLAY1 Rectangle:0, 0, 1920, 1080 Scale:100% ;----------------------------------------------------------------------------------------------------------------------- when I drag it to the right on monitor 2 DISPLAY2 Rectangle:1920, 0, 5760, 2160 Scale:200% console say - DPI change triggered! DPI: 192 ;----------------------------------------------------------------------------------------------------------------------- when I drag it to back to primary screen DISPLAY1 Rectangle:0, 0, 1920, 1080 Scale:100% console say - DPI change triggered! DPI: 96 ;----------------------------------------------------------------------------------------------------------------------- when I press (win+shift+right) GUI move it to the monitor 2 DISPLAY2 Rectangle:1920, 0, 5760, 2160 Scale:200% console say - DPI change triggered! DPI: 192 ;----------------------------------------------------------------------------------------------------------------------- when I press (win+shift+right) GUI move it to the primary monitor DISPLAY1 Rectangle:0, 0, 1920, 1080 Scale:100% console say - DPI change triggered! DPI: 96 ;----------------------------------------------------------------------------------------------------------------------- then i did the same without the _WinAPI_DPI.au3 just with the default C:\Program Files (x86)\AutoIt3\Examples\GUI\SampleControls.au3 DISPLAY1 Rectangle:0, 0, 1920, 1080 Scale:100% ;----------------------------------------------------------------------------------------------------------------------- when I drag it to the right on monitor 2 DISPLAY2 Rectangle: 1920, 0, 3840, 1080 Scale:200% from Rectangle:1920, 0, 5760, 2160 which was previously ;----------------------------------------------------------------------------------------------------------------------- when I drag it to back to primary screen DISPLAY1 Rectangle:0, 0, 1920, 1080 Scale:100% ;----------------------------------------------------------------------------------------------------------------------- when I press (win+shift+right) GUI move it to the monitor 2 DISPLAY2 Rectangle: 1920, 0, 3840, 1080 Scale:200% ;----------------------------------------------------------------------------------------------------------------------- when I press (win+shift+right) GUI move it to the primary monitor DISPLAY1 Rectangle:0, 0, 1920, 1080 Scale:100% Edited August 12, 2023 by ioa747 UEZ 1 I know that I know nothing
argumentum Posted August 12, 2023 Posted August 12, 2023 8 hours ago, ioa747 said: press Windows + Shift + Right Arrow. I've got your same setup only with the 4k as primary. I was watching something with VLC when I was reading your post. I tested it right there an then. Funny enough, dragging VLC with the mouse and using the shortcut behaved very differently. It takes a bunch of us doing stuff to come up with good code. Today I used SplashTextOn() and realized that I need to add it to the UDF but did not realize it until ..., until I did. The point is: thanks for testing. I'd have never looked into it otherwise Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
ioa747 Posted August 12, 2023 Posted August 12, 2023 7 minutes ago, argumentum said: dragging VLC with the mouse and using the shortcut behaved very differently. I agree, this happens with, or without _WinAPI_DPI.au3 argumentum 1 I know that I know nothing
UEZ Posted August 12, 2023 Author Posted August 12, 2023 @ioa747 thanks for providing the screenshots. What I can see is that the tab control is not properly positioned when moved from 2nd monitor whereas win+shift+right looks properly. Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
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