Thursday, 15 May 2014

How to create dialog boxes through notepad?

Here is a script that helps to create different message boxes.

Steps to follow:
1. Open notepad.exe
2. Type the scrip "x=msgbox("Your Message Here" ,0, "Your Title Here")"
     Example : x=msgbox("hello" ,4+16, "warning")

Creation of different dialog boxes:
If you want to create different dialog boxes, just change the number 0 with the appropriate values.
  * 0 -OK button only 
  * 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
  * 16 -Critical Message icon
  * 32 -Warning Query icon
  * 48 -Warning Message icon
  * 64 -Information Message icon
  * 0 -First button is default
  * 256 -Second button is default
  * 512 -Third button is default
  * 768 -Fourth button is default
  * 0 -Application modal (the current application will not work until the user responds to the message box)
  * 4096 -System modal (all applications wont work until the user responds to the message box)
  * 4+16 - Warning message box


No comments: