Code: Select all
ExamineDesktops()
myDesktopWidth = DesktopWidth(0)
myDesktopHeight = DesktopHeight(0)
Debug "myDesktopWidth=" + myDesktopWidth + ", myDesktopHeight=" + myDesktopHeight
myHorzRes = GetDeviceCaps_(GetDC_(GetDesktopWindow_()), #HORZRES)
myVertRes = GetDeviceCaps_(GetDC_(GetDesktopWindow_()), #VERTRES)
Debug "myHorzRes=" + myHorzRes + ", myVertRes=" + myVertRes
myDisplayScaling = Round(myDesktopWidth * 100 / myHorzRes, #PB_Round_Nearest)
Debug "myDisplayScaling=" + myDisplayScaling + "%"
Code: Select all
[15:01:43] myDesktopWidth=1366, myDesktopHeight=768
[15:01:43] myHorzRes=1093, myVertRes=614
[15:01:43] myDisplayScaling=125%