Hi.

I'm a bit curios about a thing that I saw a few days ago.
In a scripts, they hade the ability to write the following
to present the user with a very nice dialog box, with
progress bar and everything.

Set oStatusBox = CreateObject
("InternalScriptRuntime.StatusBox")
oStatusBox.Create
' Set's the titel of the dialog box
oStatusBox.SetTitle "Testbox"
' Adds the first message to the text box
oStatusBox.AddMessage "Yeay!!"&vbCRLF
' Moves the progress bar to 30%
oStatusBox.SetProgress 30

WScript.Sleep 1000
' Adds a second line to the textbox box
oStatusBox.AddMessage "This is very nice!"&vbCRLF
' Moves the progress bar to 70%
oStatusBox.SetProgress 70

WScript.Sleep 1000
' Closes the dialog box
oStatusBox.Destroy

How are they abel to do things like this? I want to be
abel to do this? I know that this must be some addedd
program or .dll file that give them this "ability", but
how do I do this! That's what I want to know...

/Johan Christensson

Re: How do teh do this? by Torgeir

Torgeir
Fri Dec 19 10:19:56 CST 2003

Johan Christensson wrote:

> I'm a bit curios about a thing that I saw a few days ago.
> In a scripts, they hade the ability to write the following
> to present the user with a very nice dialog box, with
> progress bar and everything.
>
> Set oStatusBox = CreateObject
> ("InternalScriptRuntime.StatusBox")
> (snip)
>
> How are they abel to do things like this? I want to be
> abel to do this? I know that this must be some addedd
> program or .dll file that give them this "ability", but
> how do I do this! That's what I want to know...

Hi

For some free 3rd party controls that you can use from a VBScript, take a look
at e.g. the "non-modal" links here:

http://home.att.net/~wshvbs/#wshLtWtNonModalDlg




--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter



Re: How do teh do this? by Johan

Johan
Mon Dec 22 05:17:33 CST 2003

If I would like to write my own component (COM), where
would I start? I have written som COM Add-ins for Outlook,
but I guess that's not the same thing...

/Johan Ch


>-----Original Message-----
>Johan Christensson wrote:
>
>> I'm a bit curios about a thing that I saw a few days
ago.
>> In a scripts, they hade the ability to write the
following
>> to present the user with a very nice dialog box, with
>> progress bar and everything.
>>
>> Set oStatusBox = CreateObject
>> ("InternalScriptRuntime.StatusBox")
>> (snip)
>>
>> How are they abel to do things like this? I want to be
>> abel to do this? I know that this must be some addedd
>> program or .dll file that give them this "ability", but
>> how do I do this! That's what I want to know...
>
>Hi
>
>For some free 3rd party controls that you can use from a
VBScript, take a look
>at e.g. the "non-modal" links here:
>
>http://home.att.net/~wshvbs/#wshLtWtNonModalDlg
>
>
>
>
>--
>torgeir
>Microsoft MVP Scripting and WMI, Porsgrunn Norway
>Administration scripting examples and an ONLINE version
of the 1328 page
>Scripting Guide:
http://www.microsoft.com/technet/scriptcenter
>
>
>.
>