Notepad
function is indeed a lot, but I share a little notepad function using some
script below ..:
1. Automatic
open and close the CD / DVD Computer
Copy and paste
the following script in your notepad.
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
For i = 0 to
colCDROMs.Count - 1
colCDROMs.Item
(i) .Eject
Next
end If
wscript.sleep
5000
loop
Save the format
* .vbs. (Eg, otomatis.vbs)
Such File then
Open
2. Automatic
Typing in Notepad
Copy and paste
the following script in your notepad.
Set wshshell =
wscript.CreateObject ( "WScript.Shell")
do
wscript.sleep
100
wshshell.sendkeys
"This story will write itself in your notepad"
loop
Save the format
* .vbs. (Eg, Menulis.vbs)
Such File then
Open
3. Make the
Message repeated - again
Copy and paste
the following script in your notepad.
ECHO off
: Begin
msg * hahahhaa
msg * relaxed
boss
msg * This is
just a game
msg * do not be
angry yes
msg * visit my
blog, blog-prayoga.blogspot.com
GOTO BEGIN
Save the format
* .bat. (Eg, muncul.bat)
Such File then
Open
4. Make
Computer Shutdown with the message.
Copy and paste
the following script in your notepad.
@echo off
msg * Death to
you ..
shutdown -s -c
"The computer you die"
Save the format
* .bat. (Eg, shutdown.bat)
Such File then
Open
5. Make
CapsLock button remain lit.
Copy and paste
the following script in your notepad.
-> Set
wshshell = wscript.CreateObject ( "WScript.Shell") do wscript.sleep
100 wshshell.sendkeys
"{CapsLock}"
loop
Save the format
* .vbs (eg, capslock.vbs)
Such File then
Open
6. Creating a
Simple Virus
Copy and paste
the following script in your notepad.
lol = MsgBox (
"Warning a virus has been detected on your PC. Press YES to format your
hard disk now or press NO to format your hard disk after system reboot",
20 "Warning")
Save the format
* .vbs (eg, virus.vbs)
Then later once
open select Yes or No.
7. Make a
Simple Calculator
Copy and paste
the following script in your notepad.
======================================
@echo off
title
Calculator by: infopc
: reset
Let's count the
echo infopc ... !!
set / p A =
Enter First Score =
set / p B =
Enter Second Score =
set / p o =
Choose your operation (*, +, -, /) =
set / a
"number" = A% o% B
echo Number =%
amount%
pause> null
goto birthday
======================================
Save the format
* .bat (eg, kalkulator.bat)
The file then
open
Tidak ada komentar:
Posting Komentar