I'd like to do something like the following bit of VB without having to write a dll
It is probably something like
Only problem is I don't know what something is. Any ideas?
Code:
Private Declare Function GetSystemMetrics Lib "user32" ( _
ByVal nIndex As Long _
) As Long
Dim x
x = GetSystemMetrics(80)
WScript.Echo "There are " & cstr(x) & " monitors"
Code:
set objUser32 = CreateObject ([COLOR=red]something[/color])
x = objUser32.GetSystemMetrics (80)
WScript.Echo "There are " & cstr(x) & " monitors"