I actually have tested a script similar that launches the hta and monitors the PID of the instance. It looped constantly checking the PID's existance in taskmanager and relaunched if it was gone (if the user hit ALT+F4). However, users still were able to navigate away from the maximized form/window and start clicking on other stuff.
I did however find code to do something very close to what I want to do but I keep getting an error on the line "objIE.document.focus()"
Here's the entire code...
'**************************************************************************************************
'This code will open a web browser and point it at the url specified.
'sURL is the url to the website you want to load.
'This vbscript will not allow the user to switch to any other window till this script ends.
'**************************************************************************************************
dim sURL
'**************************************************************************************************
'**************************************************************************************************
'The url to the webpage that you want the user to go to.
sURL= "
'**************************************************************************************************
'**************************************************************************************************
'**************************************************************************************************
'!!!!!!!!!!DO NOT CHANGE BELOW HERE UNLESS YOU KNOW WHAT YOU DOING!!!!!!
'**************************************************************************************************
'**************************************************************************************************
'**************************************************************************************************
dim objIE, bExit
bExit = 0
'on error resume next
'Create an Internet Explore Browser
Set objIE = CreateObject("InternetExplorer.Application")
objIE.navigate(surl) 'Navigate to the website
'Set the browser to fullscreen and theatermode
objIE.Fullscreen=true
'This makes the window not closable until the user exits the page using a script on the html
'page that has a window.close command or they use Alt-F4
'Setting the TheaterMode on and then off makes the object show properly.
objIE.TheaterMode=true
objIE.TheaterMode=false
'Turn off the status bar
objIE.statusbar=false
'Turn off the toolbar
'objIE.toolbar=false
'Turn off Resizable
objIE.Resizable=false
while bExit=0
'While the browser is showing loop
objIE.document.focus()
'Set the browser to focus which brings it to the top.
objIE.top =0
objIE.Left=0
'Sets the window to the upper left hand corner
if err.number <>0 then
'if an error occured exit the program
bExit = 1
end if
wend
'Clean up the objects
set objIE = nothing
Any help on this is greatly appreciated!
Thanks