Upload
indra-satria
View
30
Download
0
Embed Size (px)
Citation preview
Fungsi notepad memang banyak, tapi saya share sedikit fungsi notepad menggunakan beberapa script berikut.. :
1. Otomatis membuka dan menutup CD/DVD KomputerCopy script dibawah ini dan paste di notepad anda.
Set oWMP = CreateObject(“WMPlayer.OCX.7″)Set colCDROMs = oWMP.cdromCollectiondoif colCDROMs.Count >= 1 thenFor i = 0 to colCDROMs.Count – 1colCDROMs.Item(i).EjectNextFor i = 0 to colCDROMs.Count – 1colCDROMs.Item(i).EjectNextEnd Ifwscript.sleep 5000loop
Simpan dengan format *.vbs. (contoh, otomatis.vbs)Lalu Buka File Tersebut
2. Otomatis Mengetik di NotepadCopy script dibawah ini dan paste di notepad anda.
Set wshShell = wscript.CreateObject(“WScript.Shell”)dowscript.sleep 100wshshell.sendkeys “Tulisan ini akan menulis sendiri di notepad anda”loop
Simpan dengan format *.vbs. (contoh, Menulis.vbs)Lalu Buka File Tersebut
3. Membuat Pesan muncul berulang – ulangCopy script dibawah ini dan paste di notepad anda.
@ECHO off:Beginmsg * hahahhaamsg * santai bossmsg * ini hanya main-mainmsg * jangan marah yamsg * kunjungi blog saya di, blog-prayoga.blogspot.comGOTO BEGIN
Simpan dengan format *.bat. (contoh, muncul.bat)Lalu Buka File Tersebut
4. Membuat Komputer Shutdown dengan muncul pesan.Copy script dibawah ini dan paste di notepad anda.
@echo offmsg * Mampus Kau..shutdown -s -c “Komputer anda mati”
Simpan dengan format *.bat. (contoh, shutdown.bat)Lalu Buka File Tersebut
5. Membuat Tombol Capslock terus menyalaCopy script dibawah ini dan paste di notepad anda.
--> Set wshShell =wscript.CreateObject(“WScript.Shell”) do wscript.sleep 100 wshshell.sendkeys “{CAPSLOCK}” loop
Simpan dengan format *.vbs (contoh, capslock.vbs)Lalu Buka File Tersebut
6. Membuat Virus SederhanaCopy script dibawah ini dan paste di notepad anda.
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")
Simpan dengan format *.vbs (contoh, virus.vbs)Lalu nanti setelah terbuka pilih Yes atau No
7. Membuat Kalkulator SederhanaCopy script dibawah ini dan paste di notepad anda.
======================================@echo offtitle Kalkulator by : infopc:ulangecho Mari berhitung Dengan infopc...!!set /p A=Masukkan Angka Pertama =set /p B=Masukkan Angka Kedua =set /p o=Pilih pengoperasian anda (*, +, -, /) =set /a "jumlah" = A%o%Becho Jumlah = %jumlah%pause>nullgoto ulang======================================
Simpan dengan format *.bat (contoh, kalkulator.bat)Lalu buka Filenya