Jump to content
Sign in to follow this  

find dual monitor resolution

Recommended Posts


i cant figure out how to find the resolution of 2 monitors. is there a way to find each monior individually or just get the total resolution? i tried creating a window thats like 10000/10000 and measuring it but it turns out it doent go to the max screen size it actuallt goes 10000 by 10000 lol. anyway any help would be great

Share this post

Link to post
Share on other sites


Q15. How can I get the screen resolution in multiple monitor setups?

A1. The following code was worked out by Larry to determine the total screen resolution of multiple monitors:

Global Const $SM_VIRTUALWIDTH = 78
    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]

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.