WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OLE with MSIE
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Zoom IE Window


;***************************************************************************
;**
;**    Zoom Internet Explorer Window
;**
;***************************************************************************

cURL = "http://www.winbatch.com"

;Create Internet Explorer Object
oBrowser = ObjectCreate("InternetExplorer.Application")

;Zoom IE window
oBrowser.visible = @TRUE
oBrowser.top = 0
oBrowser.left = 0
oBrowser.height = WinMetrics(1) ;in pixels
oBrowser.width = WinMetrics(0) ;in pixels

;Navigate to URL
oBrowser.navigate(cURL)

;Wait for page to load
While oBrowser.busy || oBrowser.readystate == 1
   TimeDelay(0.5)
EndWhile
While oBrowser.document.readystate != "complete"
   TimeDelay(0.5)
EndWhile

;Setup the document object...
oBrowserDoc = oBrowser.document

;Cleanup
oBrowserDoc = 0
oBrowser = 0
Exit

Article ID:   W17184
File Created: 2007:07:03:14:28:38
Last Updated: 2007:07:03:14:28:38