_WinAPI_DPI.au3 test

 
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%
 

 

 _WinAPI_DPI.au3 test1

 ;-----------------------------------------------------------------------------------------------------------------------
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% 









Comments

Popular posts from this blog

ControlGetHandle ($hWnd, "", "[REGEXPCLASS:<>; INSTANCE:<>]")

Simple Calculator