Results 1 to 4 of 4

Thread: Writting code in VB Script

  1. #1

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Cool

    How do I make a form when I am writting in VBscript (i.e. .vbs files).
    Does anyone know this or is it impossible.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    I dont't think it is possible.Forms(windows) are made Through API and in VBScript You can't use API.Visual Basic makes the form automatically unlike VC++.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3
    Hyperactive Member
    Join Date
    May 2000
    Location
    Or
    Posts
    316
    Vlatko is right. You cannot make forms in VBscript. For a variety of reasons it isn't possible. (Though you can call certain API through the scripting language. You just have to shell then through rundll32.exe). Anyway, if you need to create a form that will accept input, the easiest way is to create a windows scripting component. This is relatively new to vbscript/window scripting host and uses xml to all users to create plain text files and register them as COM components. Using wsc, you could relatively easily create a wrapper for IE, to use as a set of forms.

    Anyway, you can go to Microsoft's scripting pages to learn more about Windows scripting components.

    Hope this helps.


  4. #4
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    I would shell out a new browser window that is designed to look like a form to get the information you wanted.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width