Using a prank script can be an enjoyable way to entertain yourself or prank friends. For example, you can create text on the screen that suddenly changes color, or strange sounds appear when your friend is running a certain program. In addition, making a prank script can also be a fun exercise for those of you who want to learn coding from the basics. Simple but fun!
Well, even though prank scripts are fun, you must also understand the limits and ethics of using them. Not everyone will be happy if they are pranked using a troublesome script or even making their data disappear. So, before using a prank script on someone else’s computer, make sure they agree first, and your script won’t ruin or upset them. Anyway, let this prank script remain a positive entertainment tool and not bother anyone.
Steps to Create a .bat Script with Notepad:
1. Open Notepad:
You can open Notepad by clicking Start and typing “Notepad”, then selecting the application. Alternatively, you can also press the Windows + R button to open Run, continue to type “notepad” and press Enter.
2. Write the Script:
In the Notepad window that has been opened, you can immediately write the Batch code according to the prank script you want to create.
3. Save As .bat File:
- After finishing writing the code, save the file by clicking File > Save As….
- In the Save As window, select the storage location you want.
- In the File name section, give your file a name, e.g. “prank.bat”.
- Make sure in the Save as type section select All Files.
- Don’t forget, add “.bat” to the end of your filename, so that the file becomes a Batch script.
4. Run the Script:
- After the .bat file is saved, look for the file in the storage location you chose earlier, then double-click to run the script.
- The script will run directly in the command prompt window.
Collection of the Most Popular Prank Scripts
1. Persistent Messages
ECHO off
:Begin
msg * Your face is not okay
msg * Let's look in the mirror first
msg * Come on, your CPU will be messed up by me
msg * Maybe you should reinstall
msg * Let the problem be solved
GOTO BEGIN
This script is not easy to stop with Task Manager, as the message will continue to appear until the script is manually stopped. To stop it, you can close the command prompt window or end the cmd.exe process through the Task Manager.
Be careful with your use: Make sure you don’t use this script to prank people who aren’t prepared for this joke. This script can be disruptive and cause problems on the target computer if not used wisely.
You can change the text of the message according to your taste. For example, if you want to write a more romantic or funny message, just replace the text in the msg command.
2. Display the message and then turn off the computer
echo off
msg * What the hell is this?
shutdown -s -c “Error! Your face is very standard” -t 30
Make sure to use this script wisely. Shutting down the computer can lead to data loss if there is work that has not been saved.
Always notify people who may be affected by this prank so that they don’t lose important data.
3. Enabling and Disabling Persistent Caps Lock
Set wshShell = WScript.CreateObject(“WScript.Shell”)
Do
WScript.Sleep 100
wshShell.SendKeys “{CAPSLOCK}”
Loop
This script can cause interference on the target computer by enabling and disabling Caps Lock continuously, which can confuse or make it difficult for the user.
Make sure not to misuse this script on someone else’s computer without permission.
Other Interesting Articles
4. Opening and Closing CD/DVD Drive Automatically
Set oWMP = CreateObject(“WMPlayer.OCX.7”)
Set colCDROMs = oWMP.cdromCollection
Do
If colCDROMs.Count >= 1 Then
For i = 0 To colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
WScript.Sleep 2000
For i = 0 To colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
End If
WScript.Sleep 5000
Loop
5. Pressing the Enter key constantly
Set wshShell = WScript.CreateObject(“WScript.Shell”)
Do
WScript.Sleep 100
wshShell.SendKeys “ (enter)”
Loop
6. Pressing the Backspace Button Constantly
MsgBox “Return to the previous menu”
Set wshShell = WScript.CreateObject(“WScript.Shell”)
Do
WScript.Sleep 100
wshShell.SendKeys “{BS}”
Loop
7. Opening Notepad Constantly
ECHO off
:top
START %SystemRoot%\system32\notepad.exe
GOTO top
8. Opening Notepad and Auto typing
WScript.Sleep 1800
WScript.Sleep 100
Set WshShell = WScript.CreateObject(“WScript.Shell”)
WshShell.Run “notepad”
WScript.Sleep 100
WshShell.AppActivate “Notepad”
WScript.Sleep 50
WshShell.SendKeys “your”
WScript.Sleep 50
WshShell.SendKeys “ugly”
WScript.Sleep 50
WshShell.SendKeys “!”
WScript.Sleep 50
WshShell.SendKeys “!! “
Conclusion
Using a prank script can indeed be an exciting way to add fun and humor to everyday life. However, it is very important to always remember that creativity must be balanced with ethics. Don’t let the script you create cause problems, interfere with people’s work, or damage data. Creativity in making a prank script is cool, but it must be accompanied by consideration and responsibility to stay within reasonable and safe limits.
Exploring new ideas can make your script even more unique and fun. Try different techniques, learn new programming languages, and don’t hesitate to try different things, as long as you maintain ethics and safety. The fun of creating a prank script will increase as you continue to experiment with fresh ideas.