1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| Set colItems = GetObject("winmgmts:root\cimv2").ExecQuery("Select ScreenHeight, ScreenWidth from Win32_DesktopMonitor Where ScreenHeight Is Not Null And ScreenWidth Is Not Null")
For Each objItem in colItems
intHorizontal = objItem.ScreenWidth
intVertical = objItem.ScreenHeight
Next
Dim objExplorer
Set objExplorer = CreateObject("InternetExplorer.Application")
objExplorer.Offline = True
objExplorer.Navigate "about:blank"
objExplorer.ToolBar = 0
objExplorer.StatusBar = 0
objExplorer.Left = (intHorizontal-300) / 2
objExplorer.Top = (intVertical-300) / 2
objExplorer.StatusBar = 0
objExplorer.Width = 350
objExplorer.Height = 150
objExplorer.Visible = 1
objExplorer.Resizable = 0
objExplorer.MenuBar = 0
objExplorer.Document.Title = "Ouverture de session en cours......."
Do While (objExplorer.Busy)
Wscript.Sleep 200
Loop
Dim strHTML : strHTML = "<html><head><center></head>"
strHTML = strHTML & "<marquee BEHAVIOR='alternate'><B><font size='2' face='Arial' color='white'>"
strHTML = strHTML & "Connexion au domaine en cours.....</marquee></B></body>"
objExplorer.Document.Body.InnerHTML = strHTML
objExplorer.Document.Body.Style.overflow = "auto"
objExplorer.Document.body.style.backgroundcolor="blue"
wscript.sleep 10000
objExplorer.quit
set objExplorer = Nothing
wscript.quit |
Partager