Tor Valstrom 2009-07-24 00:56
Hello - thanks for a great program! :)
How do you get IE7 to run in Kiosk mode (like IEXPLORE.EXE -K) using the MultiBrowser3 script ?`
I can only get fullscren with everything disabled, but I need to remove all scroll bars AND the window title bar.
Thanks! Rgds Tor
|
Christian Studer 2009-07-24 09:04
I'm not aware of a way to remove the scrollbars (-k also doesn't do this for me, I tested with IE8 on Vista), but removing the status bar is possible.
To do this, look for
If ie7 = True Then ie.Visible = True ie.FullScreen = True End If
in the script, then add the line
ie.StatusBar = False
like this:
If ie7 = True Then ie.Visible = True ie.FullScreen = True ie.StatusBar = False End If
Christian Studer - www.realtimesoft.com
|
Tor Valstrom 2009-07-25 02:24
Hi Christian
Thank you for the very fast reply.
I'm sorry for the confusing statement about the scroll bars. They only appear because the kiosk mode and fullscreen mode have different screen areas for the webpage display.
Kiosk mode runs at full screen and only shows the website (there is no title bar, no borders or anything.)
The fullscreen mode that is used by the vbscript has a window title, this means that approx 10 pixels of height is being used to display the IE window title.
The reason I need this is because it is used to display a multi screen "slideshow" using internet explorer, kind of like powerpoint in presentation mode, but with the benefits of HTML/PHP etc.
Hope this clarifies it a bit more, so basically I need to remove the window title bar. The status bar is no problem, just like you explained :-)
Rgds from Denmark
|
Christian Studer 2009-07-25 06:51
I'm not sure why you would get a title bar, doesn't happen for me with the MultiBrowser script.
There are a couple of other properties for the ie object that you could disable, maybe this will fix the problem for you. The properties are AddressBar, MenuBar and ToolBar.
Christian Studer - www.realtimesoft.com
|
Tor Valstrom 2009-07-26 23:29
Hello Christian
This is already included in my Multiscreen3 script. Perhaps you can see what I am doing wrong by looking at the script below. I have changed the http adresses to website1 -> 4 just to keep it generic for any other readers.
I have put a screenshot of the difference in appearance between Multiscript3 launched IE window and the Kiosk mode launched window so you can see it here:
http://www.xpdata.dk/multiscript3.jpg
Here is the Multiscreen3.vbs code I am using:
sites = Array("http://website1", "http://website2", "http://website3", "http://website4") monitors = Array(1, 2, 3, 4) 'ids of the monitors on which an IE instance should be created Const INTERVAL = 0 'number of seconds between site changes, set to zero if sites shouldn't be changed
Set sys = CreateObject("UltraMon.System") Set sh = CreateObject("WScript.Shell")
ie7 = False ieVer = sh.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Version") If ieVer <> "" Then ieVer = Left(ieVer, InStr(ieVer, ".") - 1) If CLng(ieVer) >= 7 Then ie7 = True End If
ReDim browsers(UBound(monitors)) For i = 0 To UBound(browsers) WScript.Sleep 5 * 1000 Set ie = CreateObject("InternetExplorer.Application") Set mon = sys.Monitors(CLng(monitors(i)) - 1) If ie7 = False Then ie.Visible = True ie.AddressBar = False ie.MenuBar = False ie.ToolBar = False ie.StatusBar = False ie.Resizable = False ie.FullScreen = True End If ie.Left = mon.Left ie.Top = mon.Top ie.Width = mon.Width ie.Height = mon.Height If ie7 = True Then ie.Visible = True ie.AddressBar = False ie.MenuBar = False ie.ToolBar = False ie.StatusBar = False ie.Resizable = False ie.FullScreen = True End If Set browsers(i) = ie Next
site = 0 If INTERVAL = 0 Then For i = 0 To UBound(browsers) Set ie = browsers(i) ie.Navigate sites(site) site = site + 1 If site > UBound(sites) Then site = 0 Next Else Do While True For i = 0 To UBound(browsers) Set ie = browsers(i) ie.Navigate sites(site) site = site + 1 If site > UBound(sites) Then site = 0 Next WScript.Sleep INTERVAL * 1000 Loop End If
best regards, Tor
|
Tor Valstrom 2009-07-26 23:35
Sorry about the Multiscreen3 mixup in my previous post, I am of course still talking about the MultiBrowser3 script... :-)
best regards, Tor
|
Christian Studer 2009-07-27 07:22
It's most likely an IE setting or different behavior in IE7, with IE8 on Vista I get no title bar with the MultiBrowser3 script.
One other thing you could try is to set the TheaterMode property to True.
Christian Studer - www.realtimesoft.com
|
Tor Valstrom 2009-07-29 20:51
This is really odd. This setting did not change anything.
ie.TheaterMode = true;
IE is version 8.0.6001.18783 OS: is Vista Home Basic SP1 32-bit
Any ideas?
I will test this on some other machines and see if I they behave differently.
|
Christian Studer 2009-07-30 10:54
Unfortunately I don't know what else might cause this.
Christian Studer - www.realtimesoft.com
|
Tor Valstrom 2009-07-30 21:56
Hi Christian
Just wanted to let you know that the script works perfectly on a Windows 7 machine using the IE v. 8.0.7100.0 so you are absolutely right it must be something with this particular system (or perhaps the HTML or CSS code).
So time for more testing from my side...
I will post more info to this thread later, perhaps someone else will see this problem in the future and find this thread :-)
Thank you for all your support so far!
Rgds Tor
|