This article will show you how to program your own error message on your Windows to pop up whenever you open a certain file. No internet required, and the only program you need is Notepad, which should come pre-installed when you buy your computer. Have fun!

Steps

  1. 1
    Open Notepad (Start>Programs>Accessories>Notepad).
  2. 2
    Copy and paste the following text into the program: lol=msgbox("",16,"Error")
    Advertisement
  3. 3
    In between the two adjacent quotation marks, type the error message you wish to appear in the popup (eg. lol=msgbox("Example",16,"Error")).
  4. 4
    Click File>Save As.
  5. 5
    In the 'Save type as' dropdown, change the setting from 'Text Documents' to 'All files'. Then, as your file name, type your file name (when you open the file, it will trigger the popup), followed by '.vbs' (eg. Example.vbs). Then, in the 'save in' dropdown, select a place where you can access your file. When you have selected your desired place to save the file, click 'save' to save your file.
  6. 6
    Open 'My Computer' (Start>My Computer) and find your newly-created file.
  7. 7
    Open the file, and your error message should pop up on the screen!
  8. Advertisement

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 9 people, some anonymous, worked to edit and improve it over time. This article has been viewed 49,009 times.
How helpful is this?
Co-authors: 9
Updated: December 23, 2021
Views: 49,009
Categories: Windows
Advertisement