Nama : Gusty Cholid Fahrudi
NIM : E3210320
Prodi : TKK-A
Aplikasi Mobile TextBox
1. Pertama kita jalankan dulu Java Netbeans 7.1, Kemudian buat project baru. ikuti seperti gambar dibawah ini....
2. Cara Membuat Midlet baru
3. Cara Membuat Class Baru
4. Cara Membuat Package Baru
5.Setelah anda membuat class Input
( Isikan Class Input Dengan Script tersebut )
package pkgprak2;
import javax.microedition.lcdui.*;
public class FormInput extends Form {
private TextField tfNama, tfEmail;
public FormInput() {
super("Input Data");
tfNama = new TextField("Nama Anda", null, 15, TextField.ANY);
tfEmail = new TextField("Email", null, 15, TextField.EMAILADDR);
append(tfNama);
append(tfEmail);
}
public String getNama() {
return tfNama.getString();
}
public String getEmail() {
return tfEmail.getString();
}
}
6. Setelah Membuat Class FormShow1
(Isikan Class Form1 Dengan script tersebut)
package pkgprak2;
import javax.microedition.lcdui.*;
public class FormShow1 extends Form {
private StringItem stNama, stEmail;
public FormShow1() {
super("Tampil 1");
stNama = new StringItem("Nama:", null);
stEmail = new StringItem("Email", null);
append(stNama);
append(stEmail);
}
public void setNama(String nama) {
stNama.setText(nama);
}
public void setEmail(String email) {
stEmail.setText(email);
}
}
7. Setelah Membuat Class FormShow2
(Isikan Class Form2 dengan Script tersebut)
package pkgprak2;
import javax.microedition.lcdui.*;
public class FormShow2 extends TextBox{
public FormShow2() {
super("Tampil 2", null, 30, 0);
}
public void setTextBox(String isi) {
this.setString(isi);
}
}
8.Setelah Itu Membuat Midlet
(Isikan Halaman Midlet Dengan Script tersebut)
package pkgprak2;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
public class Prak2Midlet extends MIDlet implements CommandListener {
private FormInput frmInput;
private FormShow1 frmShow1;
private FormShow2 frmShow2;
private Command cmShow1, cmShow2, cmBack, cmExit;
public void startApp() {
if (frmInput == null)
frmInput = new FormInput();
if (frmShow1 == null)
frmShow1 = new FormShow1();
if (frmShow2 == null)
frmShow2 = new FormShow2();
cmShow1 = new Command("Show 1", Command.OK, 0 );
cmShow2 = new Command("Show 2", Command.OK, 1 );
cmBack = new Command("Kembali", Command.BACK, 0 );
cmExit = new Command("Keluar", Command.EXIT, 0 );
frmInput.addCommand(cmShow1);
frmInput.addCommand(cmShow2);
frmInput.addCommand(cmExit);
frmShow1.addCommand(cmBack);
frmShow2.addCommand(cmBack);
frmInput.setCommandListener(this);
frmShow1.setCommandListener(this);
frmShow2.setCommandListener(this);
Display.getDisplay(this).setCurrent(frmInput);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
public void commandAction(Command c, Displayable d) {
if (d == frmInput) {
if (c == cmExit) {
destroyApp(true);
notifyDestroyed();
}
if (c == cmShow1) {
frmShow1.setNama(frmInput.getNama());
frmShow1.setEmail(frmInput.getEmail());
Display.getDisplay(this).setCurrent(frmShow1);
}
if (c == cmShow2) {
frmShow2.setTextBox(frmInput.getNama() + "\n" + frmInput.getEmail());
Display.getDisplay(this).setCurrent(frmShow2);
}
}
if (d == frmShow1) {
if ( c == cmBack) {
Display.getDisplay(this).setCurrent(frmInput);
}
}
if (d == frmShow2) {
if ( c == cmBack) {
Display.getDisplay(this).setCurrent(frmInput);
}
}
}
}
9. Kemudian Setelah Selesai semuanya anda jalankan programnya
Akan Muncul Seperti ini.
Gambar Inputan
Gambar Tampilan Form1
Gambar TextBox
Jika anda kurang paham silakan komentar di sini......
ISENG ISENG BUAT BLOG
kata pengantar
Rabu, 14 Maret 2012
Minggu, 04 Maret 2012
Aplikasi Mobile Dengan J2ME (DATA DIRI)
Politeknik Negeri Jember
Nama : Gusty Cholid Fahrudi
Nim : E3210320
Prodi : TKK-A
Script J2ME Aplikasi Mobile Data Pribadi
package hello;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
/**
* @author Gusty
*/
public class HelloMIDlet extends MIDlet implements CommandListener {
//inisialisasi properti
private Display display;
private Form fmMY_Data_Pribadi;
private Form fmHasil;
private Command cmYa;
private Command cmKeluar;
private Command cmKembali;
private TextField tfNama;
private TextField tfNIM;
private TextField tfJurusan;
private TextField tfProdi;
private TextField tfAlamat;
private ChoiceGroup cgJenisKelamin;
private int choiceGroupIndex;
private StringItem siNama, siNIM, siJurusan, siProdi, siAlamat, siJenisKelamin;
private boolean midletPaused = false;
//
private Command exitCommand;
private Form form;
private StringItem stringItem;
//
public HelloMIDlet() {
}
//
//
//
/**
* Initializes the application. It is called only once when the MIDlet is
* started. The method is called before the
*
*/
private void initialize() {
// write pre-initialize user code here
// write post-initialize user code here
}
//
//
/**
* Performs an action assigned to the Mobile Device - MIDlet Started point.
*/
public void startMIDlet() {
// write pre-action user code here
switchDisplayable(null, getForm());
// write post-action user code here
}
//
//
/**
* Performs an action assigned to the Mobile Device - MIDlet Resumed point.
*/
public void resumeMIDlet() {
// write pre-action user code here
// write post-action user code here
}
//
//
/**
* Switches a current displayable in a display. The
*
*
* design for switching displayable.
*
* @param alert the Alert which is temporarily set to the display; if
*
*
* @param nextDisplayable the Displayable to be set
*/
public void switchDisplayable(Alert alert, Displayable nextDisplayable) {
// write pre-switch user code here
Display display = getDisplay();
if (alert == null) {
display.setCurrent(nextDisplayable);
} else {
display.setCurrent(alert, nextDisplayable);
}
// write post-switch user code here
}
//
//
/**
* Called by a system to indicated that a command has been invoked on a
* particular displayable.
*
* @param command the Command that was invoked
* @param displayable the Displayable where the command was invoked
*/
public void commandAction(Command command, Displayable displayable) {
// write pre-action user code here
String nama,nim,jurusan,prodi,alamat,JenisKelamin = null;
//jika tombol/command OK ditekan
if(command == cmYa){
//mendapatkan inputan user
nama = tfNama.getString();
nim = tfNIM.getString();
jurusan = tfJurusan.getString();
prodi = tfProdi.getString();
alamat = tfAlamat.getString();
JenisKelamin = cgJenisKelamin.getString(cgJenisKelamin.getSelectedIndex());
//memasukkan hasil input ke StringItem
siNama.setText(nama);
siNIM.setText(nim);
siJurusan.setText(jurusan);
siProdi.setText(prodi);
siAlamat.setText(alamat);
siJenisKelamin.setText(JenisKelamin);
//menampilkan form hasil setelah cmOk ditekan
display.setCurrent(fmHasil);
} else if(command == cmKeluar){ //jika tombol/command Exit ditekan
destroyApp(true);
notifyDestroyed();
} else if(command == cmKembali){ //jika tombol/command Back ditekan
//menampilkan kembali form DataPribadi sebagai tampilan default/awal
display.setCurrent(fmMY_Data_Pribadi);
}
if (displayable == form) {
if (command == exitCommand) {
// write pre-action user code here
exitMIDlet();
// write post-action user code here
}
}
// write post-action user code here
}
//
//
/**
* Returns an initialized instance of exitCommand component.
*
* @return the initialized component instance
*/
public Command getExitCommand() {
if (exitCommand == null) {
// write pre-init user code here
exitCommand = new Command("Exit", Command.EXIT, 0);
// write post-init user code here
}
return exitCommand;
}
//
//
/**
* Returns an initialized instance of form component.
*
* @return the initialized component instance
*/
public Form getForm() {
if (form == null) {
// write pre-init user code here
form = new Form("Welcome", new Item[]{getStringItem()});
form.addCommand(getExitCommand());
form.setCommandListener(this);
// write post-init user code here
}
return form;
}
//
//
/**
* Returns an initialized instance of stringItem component.
*
* @return the initialized component instance
*/
public StringItem getStringItem() {
if (stringItem == null) {
// write pre-init user code here
stringItem = new StringItem("Hello", "Hello, World!");
// write post-init user code here
}
return stringItem;
}
//
public Display getDisplay() {
return Display.getDisplay(this);
}
public void exitMIDlet() {
switchDisplayable(null, null);
destroyApp(true);
notifyDestroyed();
}
public void startApp() {
display = Display.getDisplay(this);
//membuat tombol
cmKeluar = new Command("Exit", Command.EXIT, 0);
cmYa = new Command("Ok", Command.SCREEN, 0);
cmKembali = new Command("Back", Command.BACK, 0);
//textfield untuk data pribadi
tfNama = new TextField("Nama: ", "", 30, TextField.ANY);
tfNIM = new TextField("NIM:", "", 30, TextField.ANY);
tfJurusan = new TextField ("Jurusan:", "", 30, TextField.ANY);
tfProdi = new TextField("Program Studi: ", "", 30, TextField.ANY);
tfAlamat = new TextField("Alamat: ", "", 30, TextField.ANY);
//pemilihan Jenis Kelamin
cgJenisKelamin = new ChoiceGroup("Jenis Kelamin", Choice.EXCLUSIVE);
//meng-append pilihan atau choice
cgJenisKelamin.append("Pria", null);
cgJenisKelamin.append("Wanita", null);
//membuat form dan memasukkan komponen
fmMY_Data_Pribadi = new Form("Politeknik Negeri Jember");
fmMY_Data_Pribadi.addCommand(cmKeluar);
fmMY_Data_Pribadi.addCommand(cmYa);
fmMY_Data_Pribadi.append(tfNama);
fmMY_Data_Pribadi.append(tfNIM);
fmMY_Data_Pribadi.append(tfJurusan);
fmMY_Data_Pribadi.append(tfProdi);
choiceGroupIndex = fmMY_Data_Pribadi.append(cgJenisKelamin);
fmMY_Data_Pribadi.append(tfAlamat);
fmMY_Data_Pribadi.setCommandListener(this);
//membuat form hasil input user
fmHasil = new Form("Politeknik Negeri Jember");
//membuat string item untuk menampilkan text dan pilihan yang diisi
siNama = new StringItem("Nama: ", null);
siNIM = new StringItem ("NIM : ", null);
siJurusan = new StringItem ("Jurusan : ", null);
siProdi = new StringItem("Program Studi: ", null);
siJenisKelamin = new StringItem("Jenis Kelamin: ", null);
siAlamat = new StringItem("Alamat: ", null);
//menampilkan StringItem yang nanti akan diisi oleh data hasil input user
fmHasil.append(siNama);
fmHasil.append(siNIM);
fmHasil.append(siJurusan);
fmHasil.append(siProdi);
fmHasil.append(siJenisKelamin);
fmHasil.append(siAlamat);
//menambahkan command
fmHasil.addCommand(cmKembali);
fmHasil.setCommandListener(this);
//menampilkan form DataPribadi sebagai tampilan awal
display.setCurrent(fmMY_Data_Pribadi);
midletPaused = false;
}
public void pauseApp() {
midletPaused = true;
}
public void destroyApp(boolean unconditional) {
}
}
Output
Masukkan Data Diri Anda Dengan Klik Tombol Yang Tersedia
Contoh 1
Setelah Selesai Diisi Semuannya Klik Menu - Ok
contoh 2
Selamat Mencoba Semoga Sukses
Warning Harap Kritik dan Saran Anda Dengan Program Diatas
Nama : Gusty Cholid Fahrudi
Nim : E3210320
Prodi : TKK-A
Script J2ME Aplikasi Mobile Data Pribadi
package hello;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
/**
* @author Gusty
*/
public class HelloMIDlet extends MIDlet implements CommandListener {
//inisialisasi properti
private Display display;
private Form fmMY_Data_Pribadi;
private Form fmHasil;
private Command cmYa;
private Command cmKeluar;
private Command cmKembali;
private TextField tfNama;
private TextField tfNIM;
private TextField tfJurusan;
private TextField tfProdi;
private TextField tfAlamat;
private ChoiceGroup cgJenisKelamin;
private int choiceGroupIndex;
private StringItem siNama, siNIM, siJurusan, siProdi, siAlamat, siJenisKelamin;
private boolean midletPaused = false;
//
private Command exitCommand;
private Form form;
private StringItem stringItem;
//
public HelloMIDlet() {
}
//
//
//
/**
* Initializes the application. It is called only once when the MIDlet is
* started. The method is called before the
*
startMIDlet method.*/
private void initialize() {
// write pre-initialize user code here
// write post-initialize user code here
}
//
//
/**
* Performs an action assigned to the Mobile Device - MIDlet Started point.
*/
public void startMIDlet() {
// write pre-action user code here
switchDisplayable(null, getForm());
// write post-action user code here
}
//
//
/**
* Performs an action assigned to the Mobile Device - MIDlet Resumed point.
*/
public void resumeMIDlet() {
// write pre-action user code here
// write post-action user code here
}
//
//
/**
* Switches a current displayable in a display. The
*
display instance is taken from*
getDisplay method. This method is used by all actions in the* design for switching displayable.
*
* @param alert the Alert which is temporarily set to the display; if
*
null, then*
nextDisplayable is set immediately* @param nextDisplayable the Displayable to be set
*/
public void switchDisplayable(Alert alert, Displayable nextDisplayable) {
// write pre-switch user code here
Display display = getDisplay();
if (alert == null) {
display.setCurrent(nextDisplayable);
} else {
display.setCurrent(alert, nextDisplayable);
}
// write post-switch user code here
}
//
//
/**
* Called by a system to indicated that a command has been invoked on a
* particular displayable.
*
* @param command the Command that was invoked
* @param displayable the Displayable where the command was invoked
*/
public void commandAction(Command command, Displayable displayable) {
// write pre-action user code here
String nama,nim,jurusan,prodi,alamat,JenisKelamin = null;
//jika tombol/command OK ditekan
if(command == cmYa){
//mendapatkan inputan user
nama = tfNama.getString();
nim = tfNIM.getString();
jurusan = tfJurusan.getString();
prodi = tfProdi.getString();
alamat = tfAlamat.getString();
JenisKelamin = cgJenisKelamin.getString(cgJenisKelamin.getSelectedIndex());
//memasukkan hasil input ke StringItem
siNama.setText(nama);
siNIM.setText(nim);
siJurusan.setText(jurusan);
siProdi.setText(prodi);
siAlamat.setText(alamat);
siJenisKelamin.setText(JenisKelamin);
//menampilkan form hasil setelah cmOk ditekan
display.setCurrent(fmHasil);
} else if(command == cmKeluar){ //jika tombol/command Exit ditekan
destroyApp(true);
notifyDestroyed();
} else if(command == cmKembali){ //jika tombol/command Back ditekan
//menampilkan kembali form DataPribadi sebagai tampilan default/awal
display.setCurrent(fmMY_Data_Pribadi);
}
if (displayable == form) {
if (command == exitCommand) {
// write pre-action user code here
exitMIDlet();
// write post-action user code here
}
}
// write post-action user code here
}
//
//
/**
* Returns an initialized instance of exitCommand component.
*
* @return the initialized component instance
*/
public Command getExitCommand() {
if (exitCommand == null) {
// write pre-init user code here
exitCommand = new Command("Exit", Command.EXIT, 0);
// write post-init user code here
}
return exitCommand;
}
//
//
/**
* Returns an initialized instance of form component.
*
* @return the initialized component instance
*/
public Form getForm() {
if (form == null) {
// write pre-init user code here
form = new Form("Welcome", new Item[]{getStringItem()});
form.addCommand(getExitCommand());
form.setCommandListener(this);
// write post-init user code here
}
return form;
}
//
//
/**
* Returns an initialized instance of stringItem component.
*
* @return the initialized component instance
*/
public StringItem getStringItem() {
if (stringItem == null) {
// write pre-init user code here
stringItem = new StringItem("Hello", "Hello, World!");
// write post-init user code here
}
return stringItem;
}
//
public Display getDisplay() {
return Display.getDisplay(this);
}
public void exitMIDlet() {
switchDisplayable(null, null);
destroyApp(true);
notifyDestroyed();
}
public void startApp() {
display = Display.getDisplay(this);
//membuat tombol
cmKeluar = new Command("Exit", Command.EXIT, 0);
cmYa = new Command("Ok", Command.SCREEN, 0);
cmKembali = new Command("Back", Command.BACK, 0);
//textfield untuk data pribadi
tfNama = new TextField("Nama: ", "", 30, TextField.ANY);
tfNIM = new TextField("NIM:", "", 30, TextField.ANY);
tfJurusan = new TextField ("Jurusan:", "", 30, TextField.ANY);
tfProdi = new TextField("Program Studi: ", "", 30, TextField.ANY);
tfAlamat = new TextField("Alamat: ", "", 30, TextField.ANY);
//pemilihan Jenis Kelamin
cgJenisKelamin = new ChoiceGroup("Jenis Kelamin", Choice.EXCLUSIVE);
//meng-append pilihan atau choice
cgJenisKelamin.append("Pria", null);
cgJenisKelamin.append("Wanita", null);
//membuat form dan memasukkan komponen
fmMY_Data_Pribadi = new Form("Politeknik Negeri Jember");
fmMY_Data_Pribadi.addCommand(cmKeluar);
fmMY_Data_Pribadi.addCommand(cmYa);
fmMY_Data_Pribadi.append(tfNama);
fmMY_Data_Pribadi.append(tfNIM);
fmMY_Data_Pribadi.append(tfJurusan);
fmMY_Data_Pribadi.append(tfProdi);
choiceGroupIndex = fmMY_Data_Pribadi.append(cgJenisKelamin);
fmMY_Data_Pribadi.append(tfAlamat);
fmMY_Data_Pribadi.setCommandListener(this);
//membuat form hasil input user
fmHasil = new Form("Politeknik Negeri Jember");
//membuat string item untuk menampilkan text dan pilihan yang diisi
siNama = new StringItem("Nama: ", null);
siNIM = new StringItem ("NIM : ", null);
siJurusan = new StringItem ("Jurusan : ", null);
siProdi = new StringItem("Program Studi: ", null);
siJenisKelamin = new StringItem("Jenis Kelamin: ", null);
siAlamat = new StringItem("Alamat: ", null);
//menampilkan StringItem yang nanti akan diisi oleh data hasil input user
fmHasil.append(siNama);
fmHasil.append(siNIM);
fmHasil.append(siJurusan);
fmHasil.append(siProdi);
fmHasil.append(siJenisKelamin);
fmHasil.append(siAlamat);
//menambahkan command
fmHasil.addCommand(cmKembali);
fmHasil.setCommandListener(this);
//menampilkan form DataPribadi sebagai tampilan awal
display.setCurrent(fmMY_Data_Pribadi);
midletPaused = false;
}
public void pauseApp() {
midletPaused = true;
}
public void destroyApp(boolean unconditional) {
}
}
Output
Masukkan Data Diri Anda Dengan Klik Tombol Yang Tersedia
Contoh 1
Setelah Selesai Diisi Semuannya Klik Menu - Ok
contoh 2
Selamat Mencoba Semoga Sukses
Warning Harap Kritik dan Saran Anda Dengan Program Diatas
Sabtu, 03 Maret 2012
BERMAIN DENGAN NOTEPAD
Nah kembali lagi dengan bermain main dengan notepad. Pada postingan yang sebelumnya sudah saya singgung cara membuat file yang tersembunyi di gambar dengan notepad. dan sekarang saya juga akan bermain main dengan notepad lagi.
Kali ini saya akan share buat sobat tentang tutorila membuat Scrip Jailin orang paling mantep menggunakan Notepad.
Caranya juga sangat simple dan mudah , Siapapun juga bisa membuat
scrip ini. Biasanya sih Scrip ini untuk jailin teman di
computernya , Contohnya saja membuat virus di computer dengan Script di Notepad.
Caranya juga sangat simple dan mudah , Siapapun juga bisa membuat
scrip ini. Biasanya sih Scrip ini untuk jailin teman di
computernya , Contohnya saja membuat virus di computer dengan Script di Notepad.
Menurut saya sih ini bukan virus, Tetapi hanya script texs untuk jailin teman saja. Nah saya langsung share aja yuk di bawah ini.
1.
Messege Berulang-ulang:
Quote:
@ECHO off
:Begin
msg * Jontor Virus Beraksi
msg * Muka lo jelek - ngaca dulu gih
msg * hayo lo,cupu lu gw acak2
msg * ud install ulang aja
msg * biar masalah nya kelar
GOTO BEGIN
save namafile.BAT (ekstensi filenya harus .BAT) Simpan dalam notepat.
2.
shutdown messege:
Quote:
Code:
@echo off
msg * apaan sih lo
shutdown -s -c “Error! muka mu standar abis”
save namafile.BAT (ekstensi filenya harus .BAT) Simpan dalam notepat.
3.
Disko Keyboard:
Quote:
Code:
set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys"{CAPSLOCK}"
wshshell.sendkeys"{NUMLOCK}"
wshshell.sendkeys "{SCROLLLOCK}"
loop
lalu save as dalam bentuk .VBS
4.
buka tutup CD/DVD:
Quote:
Code:
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 namafile.vbs (save dengan Ekstensi file .vbs) simpan dalam notepat.
5.
vbscript nongol terus:
Quote:
Code:
Set wshShell = wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “~(enter)”
loop
save namafile.vbs ket:di task manager full wscript yg lg running
6
Membuat kata yang anda mau:
Code:
[i]WScript.Sleep 1800
WScript.Sleep 100
Set WshShell = WScript.CreateObject(“WScript.Shell”)
WshShell.Run “notepad”
WScript.Sleep 10
WshShell.AppActivate “Notepad”
WScript.Sleep 50
WshShell.SendKeys “ka”
WScript.Sleep 50
WshShell.SendKeys “mu “
WScript.Sleep 50
WshShell.SendKeys “je”
WScript.Sleep 50
WshShell.SendKeys “le”
WScript.Sleep 50
WshShell.SendKeys “k “
WScript.Sleep 50
WshShell.SendKeys ” se”
WScript.Sleep 50
WshShell.SendKeys “ka”
WScript.Sleep 50
WshShell.SendKeys “li”
WScript.Sleep 50
WshShell.SendKeys ” y”
WScript.Sleep 50
WshShell.SendKeys “a”
WScript.Sleep 50
WshShell.SendKeys ” h”
WScript.Sleep 50
WshShell.SendKeys “!”
WScript.Sleep 50
WshShell.SendKeys “!! “
save namafile.vbs
1.
Messege Berulang-ulang:
Quote:
@ECHO off
:Begin
msg * Jontor Virus Beraksi
msg * Muka lo jelek - ngaca dulu gih
msg * hayo lo,cupu lu gw acak2
msg * ud install ulang aja
msg * biar masalah nya kelar
GOTO BEGIN
save namafile.BAT (ekstensi filenya harus .BAT) Simpan dalam notepat.
2.
shutdown messege:
Quote:
Code:
@echo off
msg * apaan sih lo
shutdown -s -c “Error! muka mu standar abis”
save namafile.BAT (ekstensi filenya harus .BAT) Simpan dalam notepat.
3.
Disko Keyboard:
Quote:
Code:
set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys"{CAPSLOCK}"
wshshell.sendkeys"{NUMLOCK}"
wshshell.sendkeys "{SCROLLLOCK}"
loop
lalu save as dalam bentuk .VBS
4.
buka tutup CD/DVD:
Quote:
Code:
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 namafile.vbs (save dengan Ekstensi file .vbs) simpan dalam notepat.
5.
vbscript nongol terus:
Quote:
Code:
Set wshShell = wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “~(enter)”
loop
save namafile.vbs ket:di task manager full wscript yg lg running
6
Membuat kata yang anda mau:
Code:
[i]WScript.Sleep 1800
WScript.Sleep 100
Set WshShell = WScript.CreateObject(“WScript.Shell”)
WshShell.Run “notepad”
WScript.Sleep 10
WshShell.AppActivate “Notepad”
WScript.Sleep 50
WshShell.SendKeys “ka”
WScript.Sleep 50
WshShell.SendKeys “mu “
WScript.Sleep 50
WshShell.SendKeys “je”
WScript.Sleep 50
WshShell.SendKeys “le”
WScript.Sleep 50
WshShell.SendKeys “k “
WScript.Sleep 50
WshShell.SendKeys ” se”
WScript.Sleep 50
WshShell.SendKeys “ka”
WScript.Sleep 50
WshShell.SendKeys “li”
WScript.Sleep 50
WshShell.SendKeys ” y”
WScript.Sleep 50
WshShell.SendKeys “a”
WScript.Sleep 50
WshShell.SendKeys ” h”
WScript.Sleep 50
WshShell.SendKeys “!”
WScript.Sleep 50
WshShell.SendKeys “!! “
save namafile.vbs
======== JANGAN DI SALAH GUNAKAN YA ========
Langganan:
Postingan (Atom)


