Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

screen width & height query

Status
Not open for further replies.

rohithere

Programmer
Oct 27, 2003
51
IN
Hi,
I want to find out the screen width & height in vbscript.How can i do so???

Please help.

IT IS URGENT.

THANX in advance..
 
Hello rohithere,

Standalone version can be done like this.
Code:
set omshtml=createobject("htmlfile")
with omshtml.parentwindow
	iwidth=.screen.width
	iheight=.screen.height
end with
set omshtml=nothing
wscript.echo iwidth & "x" & iheight
If that is the only function you need to perform with omshtml, you can sure make it shorter. But, that's the idea.

regards - tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top