HD Software Co. Blog

Software You Can Use

NeoBook Functions – VBScript & JavaScript :: RE: VBScript For Getting Available Desktop Resolutions

Posted by Wrangler on March 14, 2012
Posted in: NeoSoft Forum. Tagged: Available, desktop, Functions, Getting, JavaScript, neobook, Resolutions, VBScript.

Author: Tony Kroos

Posted: Wed Mar 14, 2012 9:40 am (GMT -7)
Topic Replies: 1


Code:
{NeoBook Function}

Version=5,70

Language=VBScript

Comment=GetVideoResolutions

{End}

On Error Resume Next

dim i, objWMIService, colItems, objItem

Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\.\root\cimv2")

Set colItems = objWMIService.ExecQuery ("Select * from CIM_VideoControllerResolution")

For Each objItem in colItems

i=i+1

nbSetVar "[Resolution"&i&"]",objItem.HorizontalResolution & "x" & objItem.VerticalResolution _

& "x" & objItem.NumberOfColors & "@" & objItem.RefreshRate

Next

Set colItems = Nothing

Set objWMIService = Nothing


NeoSoft Support Forum





Share

Posts navigation

← Exclusive: Mystery Court Challenge Sheds Light on Pervasive Patriot Act Power
WP7 Devices Will Not Upgrade to Windows Phone 8? →
  • Search

  • Categories

    • Computer HowTo Videos
    • Computer Stuff
    • Feed Generators
    • Freeware
    • Home/Hobby Software
    • Internet Software
    • NeoBook RAD5
      • NeoBook Plugins
      • NeoBook Sample Pubs
      • NeoBook Tips
    • NeoSoft Forum
    • Programming
    • Quote Of The Day
    • Uncategorized
    • Web Developer News
    • Windows Tips & Tricks
      • IE 9 Tips
    • Wired
    • WordPress Tips
  • Code Cloud

    Game Functions Java Suggestions apps Français iPad Over Jan. This 2012 Future developers software twitter podcast first Could Text More Space JavaScript About android Internet Español Facebook Apple Commands Into Data Windows NeoBookDBPro Action cloud microsoft Video From plugin google GoogleaDay General Puzzle Discussions neobook


Proudly powered by WordPress Theme: Parament by Automattic.