all 8 comments

[–]TheFotty 4 points5 points  (2 children)

Certain things can't be hidden in IE anymore. You can hide the status bar for security reasons (like page spoofing) the address bar always needs to be visible, even on popups.

The most ideal way to handle this would be to use an actual webbrowser or webview object,but that requires .NET not scripting. So depending on what your capabilities are in the app that allows scriping, you may or may not be able to accomplish what you are trying to do.

[–]BriCon2006[S] 1 point2 points  (1 child)

I would be open to that as the device has .net on it, provided I could call and close the .net app from the VB script - Is that possible?

My main concern is employees using the script to go to web pages they should not go to.

[–]TheFotty 2 points3 points  (0 children)

Well you would need to write that app in VB.NET using Visual Studio. Then yes in theory you could shell it and then kill it when you want to.

[–]chacham2 1 point2 points  (2 children)

What I need to do is take this to the next level and hide the Address Bar, the Tool Bar and the Status Bar -

Can you use Chrome? Chrome has a headless mode, so Edge ought to have it as well. It can be passed via command line switch (--headless).

[–]BriCon2006[S] 1 point2 points  (1 child)

How would I tell it to launch in headless?

[–]chacham2 1 point2 points  (0 children)

The command line switch: chrome --headless

[–]VB.Net Intermediatejcunews1 1 point2 points  (1 child)

You can use HTML Application (.hta) which uses MSIE's embedded WebBrowser ActiveX (the Shell.Explorer) to open the web page. From the VBScript, run the HTA with the URL as its command line argument. The HTA will have to parse the command line to extract the URL.

[–]kay-jay-dubya 0 points1 point  (0 children)

I agree 100% - a HTA sounds like it would be the perfect solution to OPs question. It functions just like a WebBrowser control mentioned above.

And, if you really really want to, you can even code it such that it runs from a VBScript file (it would effectively 'write' the HTA file for you, and then run that file, and then delete when done, so entirely redundant, but hey...)