I am using T Lavedas' WSH Scripts for msgbox function. I want to display the
title bar at the top of the msgbox. Can't figure out how or find a reference
on MSDN.

Help?

Thanks,
dra

Re: IE Title Bar by hypnos

hypnos
Fri Feb 18 18:44:37 CST 2005

If you are refering to the examples here
http://www.pressroom.com/~tglbatch/wshindex.html
at quick glance it looks like if you just did a search for title and
replace the values (like Title=""MyMessageBox"" title = "TitleBar"
<title>MsgBox ...</title>) that should do it
If you are talking about a native msgbox not a home grown one here's
the syntax

MsgBox(prompt[, buttons][, title][, helpfile, context])

Example:

Select Case msgbox("Do you wish to do something", vbYesNo, "Title
Here")
Case vbYes
wscript.echo "Yes"
Case vbNo
wscript.echo "No"
End Select

download the Windows Script 5.6 Documentation
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en


Re: IE Title Bar by Michael

Michael
Fri Feb 18 19:58:47 CST 2005

DRARetired wrote:
> I am using T Lavedas' WSH Scripts for msgbox function. I want to
> display the title bar at the top of the msgbox. Can't figure out how
> or find a reference on MSDN.


Assuming this is one of Tom's IE automation scripts and objIE is a reference
to an InternetExplorer.Application object...

objIE.document.title = "my title"


--
Michael Harris
Microsoft MVP Scripting
http://maps.google.com/maps?q=Sammamish%20WA%20US



Re: IE Title Bar by DRARetired

DRARetired
Sat Feb 19 13:33:02 CST 2005

I think I asked the question incorrectly.

What I want top see is the normal title bar with the icon to the left of the
title and the 3 (minimize, maximize and close) boxes on the right. Just as
if I double clicked on the IE icon on my desktop.

Thanks,
dra


"Michael Harris (MVP)" wrote:

> DRARetired wrote:
> > I am using T Lavedas' WSH Scripts for msgbox function. I want to
> > display the title bar at the top of the msgbox. Can't figure out how
> > or find a reference on MSDN.
>
>
> Assuming this is one of Tom's IE automation scripts and objIE is a reference
> to an InternetExplorer.Application object...
>
> objIE.document.title = "my title"
>
>
> --
> Michael Harris
> Microsoft MVP Scripting
> http://maps.google.com/maps?q=Sammamish%20WA%20US
>
>
>

Re: IE Title Bar by hypnos

hypnos
Sat Feb 19 14:08:47 CST 2005

>From one of his examples
set oIE = CreateObject("InternetExplorer.Application")
With oIE
.RegisterAsDropTarget = False
.FullScreen = True :.width = Width : .height = Height

Change this to something like this (just removing the .FullScreen
setting will do it, but I tossed in a few other settings you can
change)


set oIE = CreateObject("InternetExplorer.Application")
With oIE
.RegisterAsDropTarget = False
.resizable = True
.AddressBar = False
.menubar = False
.ToolBar = False
.StatusBar = True
.width = Width : .height = Height