Visit >> My New BLOG!!!!

Showing posts with label Alert Message Box. Show all posts
Showing posts with label Alert Message Box. Show all posts

Saturday, October 27, 2007

Creating An Alert Message Box

Here is a funny way to fool someone by using an ALERT MESSAGE BOX trick. The following script is a VBScript (Visual Basic Script) for an Alert Message box.


I know some of you knows this already, but I just want to share this to you 'coz I burst out in laughters after my friend panicked after clickng on the file that I had made.


Here are the steps:

1. Open your Notepad and type this:

x = MsgBox("YOUR MESSAGE HERE",FORMAT NUMBER FOR BUTTON/ICON,"TITLE")


Just change the UPPERCASE text to anything you want. For the FORMAT NUMBER BUTTON/ICON, choose from the list below with some of its actual appearance


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



64 = Information Message icon



none = Normal Message box



2. After you had modify your code, save it as
yourownfilename.vbs.

3. To activate it, just open it.

To fool someone,

1. save the file on another folder, (Ex. in My Documents)

2. Right-click on the file, and select Send To then click on Desktop (create shortcut)

3. On the shortcut you had made on your desktop, right-click on it and select
Properties

4. Click on the Shortcut tab and click on Change Icon... then select your desired icon.

5. Click OK, then rename your file to something that suits the icon given.

My example is: