From: Tom Lavedas on 14 Jun 2010 08:21 On Jun 14, 3:50 am, Maw <maw81...(a)gmail.com> wrote: > I all, > i have find this easy solution: > > Set objExplorer = > WScript.CreateObject("InternetExplorer.Application","IE_") > objExplorer.Navigate "about:blank" > ' size of window > objExplorer.ToolBar = 0 > objExplorer.StatusBar = 0 > objExplorer.Width=400 > objExplorer.Height = 100 > objExplorer.Left = 0 > objExplorer.Top = 0 > ' window visible and starting message > objExplorer.Visible = 1 > objExplorer.Document.Body.scroll = "no" > > and when you need to print the message i put the code below: > objExplorer.Document.Body.InnerHTML = "Connection to AD..." > wscript.sleep(500) > > it's easy but good to understand where is the script. > > Only one question: It's possible remove the title bar??? > > Thx to all for the reply. > > bye If the machine running the script has IE 7 or later installed, the answer is NO. For IE6 or earlier, the answer is that it can be done by first setting the FullScreen property to True and THEN reset the Height and Width properties to the desired values. However, the HTA solution that I posted CAN remove the title bar. Simply change the borderstyle property to None. However, since the title bar in my solution has no buttons and a title that is under user control, there really is little reason to remove it. As far as setting it's message, it works exactly like the IE solution. That is, the body.innerHTML can be used to set the message (though it is a bit simpler to just use the Msg object that the function provides. _____________________ Tom Lavedas
First
|
Prev
|
Pages: 1 2 3 Prev: PINGing a List of Servers Using VBScript Next: Simple hack to get $500 to your home |