LATEST UPDATES
ShareHolder Finder v0.9.3 is now released!!! Check Product Page for more details.
✉ info@automationdevelopers.com

ITS ALL ABOUT AUTOMATION

Sunday, 17 April 2016

AutoIt - Get Display Height (Vertical Resolution) and Width (Horizontal Resolution)


Author Post Date Sunday, 17 April 2016
Macros:
@DesktopHeight - Returns Height of the primary display in pixels. (Vertical resolution)
@DesktopWidth - Returns Width of the primary display in pixels. (Horizontal resolution)

Example is provided below:

#include <MsgBoxConstants.au3>

;Display Vertical and Horizontal resolutions
MsgBox($MB_SYSTEMMODAL, "Display Resolution", "Display Height(Vertical resolution): " & @DesktopHeight & @CRLF & _
                                             "Display Width(Horizontal resolution): " & @DesktopWidth)

Related Posts




Interesting? Share and Let Others Know.

Post a Comment