+ Post New Thread
Results 1 to 5 of 5
Scripts Thread, Dialog Box Re-titlement in Coding and Web Development; Hi all, A while ago, I downloaded a script from here to generate a Message of The Day. Works Wonders. ...
  1. #1


    Join Date
    Jan 2009
    Posts
    1,230
    Thank Post
    151
    Thanked 240 Times in 166 Posts
    Rep Power
    155

    Dialog Box Re-titlement

    Hi all,

    A while ago, I downloaded a script from here to generate a Message of The Day. Works Wonders. I was wondering what line(s) would I have to add to change the Dialog Box title from 'Windows Scripting Host' to something original, like..........hey......... 'Message of the Day'

    All Help Greatly Appreciated but unfortunately, not paid.


  2. #2

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,680
    Thank Post
    516
    Thanked 2,451 Times in 1,897 Posts
    Blog Entries
    24
    Rep Power
    832
    What script? Was it VBS? AutoIT?

  3. #3
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42
    Sounds like wscript.echo command is being run. I may be inclined to change that to msgbox instead but i dont know why wscript.echo was used in the first place without looking at the script.

  4. #4


    Join Date
    Jan 2009
    Posts
    1,230
    Thank Post
    151
    Thanked 240 Times in 166 Posts
    Rep Power
    155
    Quote Originally Posted by apeo View Post
    Sounds like wscript.echo command is being run. I may be inclined to change that to msgbox instead but i dont know why wscript.echo was used in the first place without looking at the script.
    It's a VBS script and, yes, there's a number of lines in there that read 'wscript.Echo' and a variable or whatever.

  5. #5

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,756
    Thank Post
    3,265
    Thanked 1,052 Times in 973 Posts
    Rep Power
    365
    example 2 here

    Guy's Scripting Ezine 46 - Example MsgBox() VBScript Function

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


    I will employ the 'Prompt' argument to display text in the Message box. 'Prompt' tells the user what the message box will achieve.
    The most interesting MsgBox argument is - 'buttons'. The default value of 0 (zero) means just displays the OK button. If we change the value of buttons from 0 to 3 then we get two extra buttons, 'No' and 'Cancel'.
    Example A: Buttons is assumed to be 0, the default value.
    strMbox = MsgBox("Guy says you must select the LocalHost!")
    Example B: Buttons is explicitly set to 3 (and title is added).
    strMbox = MsgBox("Do you want the LocalHost?", 3 ,"Hostname")
    When scripting with MsgBox, there are two numbers to be aware of, firstly there is the input or display 'Button' number, which controls the actual Message Box. Secondly, there is a separate output or return value number which we do not normally see. However, this return value can be acted upon by subsequent lines of the script.
    Naturally, what happens to the output depends on which button you press, this is because unlike WScript.echo, MsgBox() is a function, and functions return values. Clicking the Yes button results in a return value of 6.


    Code:
    
    MsgBox("The message you want goes here", 0, "Title of the message box goes here")

  6. Thanks to mac_shinobi from:

    Earthling (10th December 2009)

SHARE:
+ Post New Thread

Similar Threads

  1. [Joke] Windows copy dialog :)
    By localzuk in forum Jokes/Interweb Things
    Replies: 5
    Last Post: 20th July 2009, 02:28 PM
  2. Media Box (NTB box)
    By ESXi_2008 in forum General Chat
    Replies: 3
    Last Post: 25th June 2009, 01:03 PM
  3. [MS Office - 2003] Outlook doesn't display zip files in the Insert file dialog
    By firefox_2006 in forum Office Software
    Replies: 0
    Last Post: 5th November 2008, 09:35 AM
  4. Anyone got a logitech Dialog 320 Microphone
    By russdev in forum Hardware
    Replies: 0
    Last Post: 7th March 2007, 10:47 AM
  5. Replies: 34
    Last Post: 9th May 2006, 12:56 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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