Hi, I have a monitor running at 1920x1080 (1080p) and another running at 3840x2160 (4K). I'm having real trouble obtaining the screen sizes and placing a multiwindow GUI.
I've tried a number of scripts available in the forums, but they all are reporting the same results. Here's the script that I'm currently using which I've gotten from the Internet
;author: ahha
;filename: determine screen sizes v1b.au3
;http://msdn.microsoft.com/en-us/library/ms724385%28VS.85%29.as
Working example:
#include <GUIConstants.au3>
#include <WinAPIGdi.au3>
_Example()
Func _Example()
; taken from HelpFile Example for _WinAPI_EnumDisplayMonitors()
Local $aMonitors_data = _WinAPI_EnumDisplayMonitors()
If @error Then Return SetError(@error, @extended, 0)
Local $hMonitor = $aMonitors_data[1][0] ; handle to first Monitor
ConsoleWrite("! " & $hMonitor & @CRLF)
Local Enum $MONITOR_X1