Retrieving the resolution of an open screen at runtime.

Question:

At run time, how can I retrieve the resolution of an open screen in an E3Viewer?

Solution:

To do so, you must write a script similar to the one below in a button’s Click() event.

Example:

strComputer = “.”
Set objWMIService = GetObject(“winmgmts:” & “{impersonationLevel=impersonate}!\\” & strComputer & “\root\cimv2”)
Set colItems = objWMIService.ExecQuery(“Select * From Win32_VideoController”)
For Each objItem in colItems
    MsgBox “Width: “&objItem.CurrentHorizontalResolution
    MsgBox “Height: ” & objItem.CurrentVerticalResolution
Next
Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Deixe seu Comentário

Seu endereço de e-mail não será publicado. Campos marcados com asterisco são obrigatórios *