Sign in to follow this  
Followers 0
fosil

Find all available screen resolution based on hardware

3 posts in this topic

I'm working on a script that needs to find out screen resolutions that windows finds available based on your current setup and react accordingly.

I'm wondering if there is a way to pull a list of all available screen resolutions (not just current) into autoit? Or if anyone knows the location where windows might store this that would be helpful as well.

Any help is much appreciated!

Share this post


Link to post
Share on other sites



This is one possible solution:

; List All Possible Video Controller Resolutions (Win 7)
Local $strComputer = "."
Local $objWMIService = ObjGet("winmgmts:" & "{impersonationLevel=impersonate}!\\" & $strComputer & "\root\cimv2")
Local $colItems = $objWMIService.ExecQuery("Select * from CIM_VideoControllerResolution")
For $objItem in $colItems
    ConsoleWrite("Setting: " & $objItem.SettingID & @crlf )
Next
Exit

Output sample:

Setting: 640 x 480 x 256 colors @ 60 Hertz
Setting: 640 x 480 x 256 colors @ 59 Hertz
Setting: 640 x 480 x 256 colors @ 75 Hertz
...
Setting: 1680 x 1050 x 4294967296 colors @ 60 Hertz
Setting: 1920 x 1080 x 256 colors @ 60 Hertz
Setting: 1920 x 1080 x 65536 colors @ 60 Hertz
Setting: 1920 x 1080 x 4294967296 colors @ 60 Hertz

 

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  
Followers 0