Qball Posted June 22, 2009 Share Posted June 22, 2009 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 Link to comment Share on other sites More sharing options...
Tec Posted June 22, 2009 Share Posted June 22, 2009 Sticky 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] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now