Message Box creation with VBScript

To create VBScript File 



In short --

>change the extension of a notepad as .vbs from .txt
>edit and write the script as
>Strtext=msgbox("message")
>save and doule click on file !!

Detailed explanation --

Open folder and search options

For Windows7
my computer>organize  option menubar>'folder and search options'
OR
Click on windows button and search for 'folder and search' options

For WindowsXP
mycomputer>view option in menubar>click on folder options



  • Click on View in folder options window
  • Uncheck Hide Extensions for known file types if it is checked.
  • Check below figure



 



  •  Now Goto desktop (you can choose any other location)
  • Right click on mouse
  • Goto New and select Textdocument





A new text Document will be created on desktop as shown in below figure























    >>Now Rename that file as Trickster.vbs



      Script file will be made on your desktop
      • Now right click on file
      • Goto Edit
      and type the script as STRTEXT=INPUTBOX("message which you want to display")


       


      Now goto file and click on save.
       Done.. Your VBscript file is ready to display result.

       








      This is it.

      >>Now try some more by icons and more options on it

      To display Critical Message icon type 16 after your message(check below figure)
      As it is
          For Warning Query icon type  32

      •     48 = Warning Message icon
      •     64 =Information Message icon




       




      To display more options on window check these all (Check fig)

       1 =OK and Cancel buttons
          2 =Abort, Retry, and Ignore buttons
          3 =Yes, No, and Cancel buttons
          4 =Yes and No buttons
          5 =Retry and Cancel buttons

       

      You can also give the name for window
      Check out this script

       Strtext=msgbox("message you want to display" , "dialog box name you want to display")

       





      All Done :)

      'Comment if you know anything else'







      Comments

      Popular posts from this blog

      Permissions are too open // #AWS keypair issue - Windows

      5 tips for Python Beginners

      #Kubernetes Cluster Initialization iptables error #K8s