write a program to display the system specifications of
client system with the help of vb script.
Answer / vasanth
Sub Screen_Resolution
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer
& "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * From
Win32_DisplayConfiguration")
For Each objItem in colItems
'msgbox "Name: " & objItem.DeviceName
'msgbox "Color depth: " & objItem.BitsPerPel
'msgbox "Horizontal resolution: " & objItem.PelsWidth
'msgbox "Vertical resolution: " & objItem.PelsHeight
If objItem.PelsWidth <> 1024 Or objItem.PelsHeight <> 768
Then
MsgBox "Current screen resolution is "
&objItem.PelsWidth& " by " &objItem.PelsHeight
MsgBox "Scripts cannnot be executed, We only support 1024
by 768 "
ExitAction()
End if
Next
End Sub
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the rules to name variable in vbscript?
what is the object hyrarchy in QTP for a web based application
Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?
How should i Create Email invite with server-side Coding?
write generic functions for webapplication?like generic function for webedit generic function for webbutton generic function for links
Can automation testing find ssame no. of bugs what we can find by manual testing?
How to search word in a string without using instring function?
what is resorceallocation
Mention what if you do not specify anything when you call a procedure?
Hi, I need to accept user inputs for login at runtime.I know i can use Inputbox but how to proceed further that i dont know. Thanks in advance
Explain the scope of the variables using dim, public, and private keywords respectively.
How can I get the value of an object property or variable in another frame?