Re: Dialogs and VBSCRIPT by Yannick
Yannick
Thu Jan 26 13:00:58 CST 2006
Dim oBrowser
' Implements a shell object, used later to run an application
Set oShell = WScript.CreateObject("WScript.Shell")
' Creates a new instance of the application internet explorer (the object is
named oBrowser)
' The second parameter (Browser_) is used to catch events in the vbs script,
from the IE application
Set oBrowser = WScript.CreateObject("InternetExplorer.Application",
"Browser_")
' Opens the page YourHTMLPage.htm in the same repertoire the vbs file is
oBrowser.navigate ".\YourHTMLPage.htm"
' Launches IE with the page defined upper, and set the title (of the HTML
page) as "HTML Page"
oShell.AppActivate "HTML Page"
Yannick SCHAPPLER
France
"Guy Austrian" <gapcnet@newsgroup.nospam> a écrit dans le message de news:
e5kvsKqIGHA.1312@TK2MSFTNGP09.phx.gbl...
> Would you be kind enough to post an english translation of the code?
>
> Thanks.
> "Yannick SCHAPPLER" <yannick.schappler@free.fr> wrote in message
> news:uxGnyDqIGHA.1836@TK2MSFTNGP11.phx.gbl...
>> Hi,
>>
>> You can use an instance of internet explorer, which displays the dialog
>> page you want.
>> The page is made with standard html components, such buttons, textboxes,
>> radio or checkboxes.....
>>
>> Use this part of vbscript code to call the page you made :
>> Dim oNavigateur
>> Set oShell = WScript.CreateObject("WScript.Shell")
>> Set oNavigateur = WScript.CreateObject("InternetExplorer.Application",
>> "Navigateur_")
>> oNavigateur.navigate ".\HTMLPage.htm"
>> oShell.AppActivate "Page de saisie HTML"
>>
>> All the objects presents on the page are accessible from your script, so
>> you can use variables to process data entered.
>>
>> Hope it could help you.
>>
>>
>> Yannick SCHAPPLER
>> France
>>
>>
>>
>> "Theo Coolen" <TheoCoolen@discussions.microsoft.com> a écrit dans le
>> message de news: 4236E0B8-BBD2-49B9-A7C2-2DE441ABA1B3@microsoft.com...
>>> Anyone any ideas to create dialogs in vbscript (pushbuttons included?).
>>>
>>> I would like to create a dialog in which a user can select severe custom
>>> buttons.
>>>
>>
>>
>
>