How to create a popup dialog box? A never ending dialog box.?? We have the simplest solution for you all..
So today I have brought you another trick for you all. Do
you know how to create a popup dialog box reading out a message for you all?
Yes today I am here to give away the codes for creating a popup box and all the related
to it.
Have you ever seen any kind of warning or information
dialog box on your PC? If yes it is somewhat similar to it but the only
difference is that it is you that creates it modifies it. In here I will give
the simple code for making or creating the popup box and some other codes to
modify it. If you want more tricks like this you can consider reading “Make Your Antivirus In Seconds..!!”, “Create A NEVER Ending Popup Box”, “Create aPassword Protected Folder” and many more.
To create a Popup Box like this:-
#1. Firstly open Notepad and copy & paste what you
see below between the two apostrophes:-
“x=msgbox ("Text"
,64, "Title")” {Avoid the apostrophes or just copy the yellow portion}
#3. Change the ‘Save As Type’ to 'All files' from ‘Text
Documents (*.txt)’ and then in the ‘File Name’ option type the required name of
the Popup box. For example: Anything.vbs. Notice you must save the file in the
format of .vbs, by following the steps aforesaid.
#4. Open the Popup box from wherever you have saved. It should be looking like this:-
#5. You can close this type of Popup box very easily by
clicking 'OK' or ‘Close’ as you programmed it for.
To Modify the Code, & give your own touch:-
Simply
right-click on the required Popup to be renamed and select the option ‘Rename’
on the menu. And change it with the required name of your wish. Or simply click
once at the file and press ‘F2’ on your keyboard, you will be ready for
renaming the file.
[ii] To change the Title of the Popup Box:-
Firstly when creating the Popup Box, enter the title of
the box in the place of ‘“Title”’ and work is done. If after creating the box
you need to change the title just right-click on the file and select the option
given ‘Edit’, a notepad window will open with your code written just replace
the then Title with the new Title. WORK DONE!!
[iii] To put some Text in the dialog box:-
Just replace your required text in place of ‘“Text”’ and
your work is done. To modify it simply right-click on the created file and replace
your given text with your new text.
[iv] You can replace the code '64' with the following
codes given, each of which has some different functions:-
>To Change Buttons:
0 – ‘OK’ button only.
1 – ‘OK’ and ‘Cancel’.
2 – ‘Abort’, ‘Retry” and ‘Ignore’.
3 – ‘Yes’, ‘No’ and ‘Cancel’.
4 – ‘Yes’ and ‘No’.
5 – ‘Retry’ and ‘Cancel’.
16 - Critical Message Icon.
32 - Warning Icon.
48 - Warning Message.
64 - Info Message.
Keep your attention when putting this code, because any change
in the given model code that is in the curly brackets {x=msgbox
("Text",64, "Title”) }. And both the code for changing the
buttons and changing the symbol or icon cannot be applied together. The default
combo for all the symbol is the ‘OK’ button, only.
Having any Problems?? Contact us and clear your queries on
the given Contact form below of the page ... Or contact us through email at tanmaypdst2011@gmail.com...Or simply Comment Below..!!
Aptitude Amplifier ©2017. All Rights Reserved.
COMMENTS