Introduction
This program's purpose is to load the target url and keep it in focus and covering the whole screen until the user selects a button on the screen which closes the window or hit's <ALT-F4>.
Using the code
The code is pretty self documenting. Just cut and paste it into a .vbs file. Change the URL to any address, be it on the web or a network UNC path.< /p>< /p>
dim sURL
sURL= "http://www.google.com"
dim objIE, bExit
bExit = 0
on error resume next
Set objIE = CreateObject("InternetExplorer.Application")
objIE.navigate(surl)
objIE.Fullscreen=true
objIE.TheaterMode=true
objIE.TheaterMode=false
objIE.statusbar=false
objIE.toolbar=false
objIE.Resizable=false
while bExit=0
objIE.document.focus()
objIE.top =0
objIE.Left=0
if err.number <>0 then
bExit = 1
end if
wend
set objIE = nothing
Points of Interest
The key to this working of course is the loop which moves the window into focus and to position 0,0. It took a little playing around but it works very effectively.
History
Written on 2/22/2004
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here