Results 1 to 10 of 10

Thread: VBScript Newbie - msgbox

  1. #1

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Cool

    Coming from VB & trying to learn VBS, can anyone tell me about the title of the Alert function?

    With VB, I would normally do:
    MSGBOX "SOME MESSAGE HERE",,"TITLE OF MSGBOX HERE"

    With VBS Alert:
    ALERT "SOME MESSAGE HERE"

    But I cannot seem to find how to set the title. Any help very much appriciated, thank you!
    Alex Read

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    I thought VBScript supported the MsgBox (client-side), so why not use that?
    Harry.

    "From one thing, know ten thousand things."

  3. #3

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Another question...

    Thank you Harry for responding quickly. I didn't realise the messagebox was supported.

    I have just tried this, and rather than the title showing as "TITLE OF MSGBOX HERE", as the original post, IE comes up with "VBScript: TITLE OF MSGBOX HERE". Is there any way to get rid of the VBScript : part?

    Thank you.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  4. #4
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696
    Hi Alex
    This has been posted many times and as of yet I and I think no one else has come up with a solution for that problem. If any one has found out, do tell because half of this forum want's to know

    Sorry I couldn't be more helpful

    Ian
    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

  5. #5

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Smile Thank you Ian

    Sorry, I did not realise as I am new to this forum (normally use the VB general Q's on this site). I have tried other newsgroups too, so if I find ouut I will post back!

    Thank you everyone,
    Alex Read

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  6. #6
    Guest
    You could make a simple ActiveX control (in VB) that displays a proper message box. Then invoke it from your asp.

    I'm assuming you're making a .vbs file to run on your own pc here...

  7. #7

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Post

    Thank you everyone, I have been told everywhere that this is definitly not possible.

    Thanks for the tip with the active x Matthew, unfortnately I only have learning edition, but I will look into this one.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  8. #8
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    292
    The reason that you can't change the title is because malicious scripters might try to confuse the user into thinking the message box is from Windows and try and get them to do something stupid.
    "People who think they know everything are a great annoyance to those of us who do."

  9. #9

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Lightbulb It all makes sense now ...

    Can't see the point in writing viruses myself, but thinking about it, your answer makes sense no-one.

    Bl!#@y annoying, but I guess it's for a good reason!

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  10. #10
    Guest
    If you want to try the ActiveX idea, then find an old cover CD and install VB5 CCE. It's free and will compile ActiveX controls for you.

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