Jump to content

screen resulotion


Recommended Posts

;) Try Searching the help file for System Info Macros : @DesktopHeight, @DesktopWidth, @DesktopDepth and @DesktopRefresh. I personally recommend to read the Help-File thoroughly.

Regards

Edited by MKISH

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Link to comment
Share on other sites

For multiple displays you might also want to try:

If Not IsDeclared("SM_VIRTUALWIDTH") Then Global Const $SM_VIRTUALWIDTH = 78
If Not IsDeclared("SM_VIRTUALHEIGHT") Then Global Const $SM_VIRTUALHEIGHT = 79
$VirtualDesktopWidth = DLLCall("user32.dll", "int", "GetSystemMetrics", "int", $SM_VIRTUALWIDTH)
$VirtualDesktopWidth = $VirtualDesktopWidth[0]
$VirtualDesktopHeight = DLLCall("user32.dll", "int", "GetSystemMetrics", "int", $SM_VIRTUALHEIGHT)
$VirtualDesktopHeight = $VirtualDesktopHeight[0]

NiVZ

Link to comment
Share on other sites

Also see

_WinAPI_SystemParametersInfo()

get work area returns the desktop area accounting for Taskbar. By looking at the returned numbers you can tell if the Taskbar is on top bottom left or right of the desktop. But taskbar is tricky. Work area is ignored unless the taskbar is set to stay on top or at least AutoHide is disabled. It's good to avoid setting Left and Top to 0 when the Taskbar is on the top of the screen. Users get annoyed when the caption bar is hidden underneath the Taskbar. ;)

Edited by MilesAhead
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...