Does not get a software as expected, this is extremely annoying. Especially when Windows garnishes the misconduct with an annoying and repeatedly populating dialog window - either with (half-way) detailed causes description or only with cryptic characters. Whether for fun or to display your own memories: error messages can be created by yourself. Programming skills and additional software are not necessary. Only a word processing needs it - which brings Windows in multiple execution already with. In the article, COMPUTER BILD explains the steps required to create error windows and how to automate their display - so the PC reminds you to make an important purchase every three hours.
Editor and insert code
Create your own error messages - this is how it works © COMPUTER BILD
Where does the shoe say? What Windows gives here is completely free.
First, start a word processing, for example, the system's own editor: press Windows-R, tap notepad, and then click OK . Copy the following code to the program to create an error message, as shown on the right of the screen:
x = msgbox ("The PC is defective, switch off immediately!", 0 + 64, "Important warning")
The text of this basic framework is converted individually. What you read directly after the opening parenthesis corresponds to the reference text of your future error window. Enter here a horror message for a prank victim or an important reminder for your own needs. The back text part in the example appears in the title bar; You should also exchange this heading. The two numbers next to the plus sign affect the design: the 0 can be replaced by a 1, 2, 3, 4 or 5 - the 64 by a 16, 32 or 48. The first value determines the clickable buttons, the latter The type of error and, ultimately, the symbol used:
- 0 shows the OK button
- 1 press the OK and Cancel buttons
- 2 the Cancel , Repeat, and Ignore buttons
- 3, select Yes , No, and Cancel
- 4 the buttons Yes and No
- 5 the buttons Repeat and Cancel
- 16 shows a red warning cross and plays sound
- 32 shows a blue question mark icon, does not use sound
- 48 displays a yellow exclamation mark similar to the Device Manager, playing sound
- 64 displays a blue info icon and plays sound
Define and save click actions
What happens when you click on one of the buttons? Nothing.This does not have to be the case: copy your fully adapted code and also add it to the line below.No matter which button the user clicks later, the error message of the second code opens.The latter can be adapted to your needs, so that different text, symbol and sound output can occur.To save, press Ctrl-S in any case.Specify a location, such as the desktop, and assign a filename with the extension.vbs that you put in quotes above.The latter ensure the correct data type.When you click Save, a script file ends up in the selected location. Double-click it.
Ds works by the way, If the so-called Windows Script Host is activated.Some tweaking software recommends its shutdown for security reasons, but the system function can also serve as a gateway for viruses and Trojans. The execution of a Windows message generated in self-government is safe. If the Windows Script Host is disabled according to the (real) system error message, unblock the system and reactivate the default behavior of Windows: Open the registry editor using Windows-R and regedit, double-click HKEY_LOCAL_MACHINE, Software, Microsoft, Windows, Windows Script Host, Settings and delete Enabled in the right pane.
Automate the call
Beyond brushing, self-made Windows dialogs provide refreshing memory.You do not need to operate a reminder with subsequent messages that appear after clicking on one of the buttons. To make sure that the newly created file does not only open by double-clicking, you can make your call invalidate! Windows brings the necessary tools with the task planning. It starts with Windows-R and the taskschd.msc command.Select Action, Create Simple Task, and then follow the wizard.Significantly more automation options offer action, create task.In order to avoid spills in the future, Go to task planning library on the left in the task planning library and delete your newly created task. More convenient automate the file call using Aborange Scheduler; The tool offers less possibilities than the mentioned Windows Bordmittel, is however straightforward therefore easier to look through.