Tuesday, 19-Sep-2017, 3:46 PM


Main
Sign Up
Login
Wains Organization Welcome Guest | RSS  
Menu

Section categories
How? [3]
Custom Script [1]

Information


Please Login Or Register to see all info
Name : Guest
Username : Guest
IP Address : 54.225.3.207
Group : Guests
Browser :

<..........................>
Current date : 19-Sep-2017
Current day : Tuesday

Get Updates

New Downloads
[ Games/Torrents ]
[ Games/Torrents ]
[ Softwares ]
demo image         
jQuery Book - 1.2-V1 (0)
[ Games/Torrents ]

Statistics

Total online: 1
Guests: 1
Users: 0

Main » How? » How to create Mockup Windows Alert Box
1:10 PM
How to create Mockup Windows Alert Box
I think using VBScript would be an easy way of doing this.
Use Notepad to create a file called alertbox.vbs on your desktop and add this to it:

Code
MsgBox "Unable to read disk, " & vbcrlf & "do you want to retry?", 18, "Disk error."
Change the error message at the beginning and the title at the end. Ensure the error message and the title are both enclosed in inverted commas.

Use the table below and add up all the numbers to show various buttons and the icon on the popup. In this example, 18 is a combination of "2 = Displays Abort, Retry, and Ignore buttons." and "16 = Displays Critical Message icon." from the table below.

The " & vbcrlf & " bit creates a new line, if you want more than one line of text in the popup.

Simply double-click the file on your desktop to show the popup.

From the above example:

Code
Constant                           Value     Description

vbOKOnly                            0         Displays OK button only.
vbOKCancel                         1         Displays OK and Cancel buttons.
vbAbortRetryIgnore              2         Displays Abort, Retry, and Ignore buttons.
vbYesNoCancel                     3         Displays Yes, No, and Cancel buttons.
vbYesNo                               4         Displays Yes and No buttons.
vbRetryCancel                      5         Displays Retry and Cancel buttons.
vbCritical                             16        Displays Critical Message icon. 
vbQuestion                          32        Displays Warning Query icon.
vbExclamation                     48        Displays Warning Message icon.
vbInformation                     64        Displays Information Message icon.
vbDefaultButton1                  0         First button is default.
vbDefaultButton2                256       Second button is default.
vbDefaultButton3                512       Third button is default.
vbDefaultButton4                768       Fourth button is default.
vbApplicationModal               0         Application modal; the user must respond to the message box before continuing work in the current application.
vbSystemModal                 4096      System modal; all applications are suspended until the user responds to the message box.
vbMsgBoxHelpButton         16384     Add Help button to the message box.
VbMsgBoxSetForeground   65536     Specify the message box window as the foreground window.
vbMsgBoxRight                 524288    Text is right aligned.
vbMsgBoxRtlReading     1048576   Specify that text should appear as right-to-left reading on Hebrew and Arabic systems.
Category: How? | Views: 720 | Added by: Alex | Tags: mockup, Windows, How, AlexWains, by Ali Ameen Wains, alert box, to create | Rating: 5.0/1
Total comments: 0
Only registered users can add comments.
[ Sign Up | Login ]
Search

Partners
Add your website

New Scripts
[ HTML scripts ]
[ Javascripts ]
[18-Apr-2013]
Random Link (0)
[ HTML scripts ]
[14-Mar-2013]
Alignments (0)
[ HTML scripts ]
[14-Mar-2013]
Table with Color effect (0)
[ HTML scripts ]
[14-Mar-2013]
Line Divider (1)

New Blogs
[ Custom Script ]
[ How? ]
[ How? ]
[ How? ]

Our poll
How would you rate your knowledge in uCoz?

Copyright Wains Org. © 2017Powered by uCoz / Customization by Ali Ameen Wains / About AdminPrivacy Policy