Rabu, 02 Januari 2013

Menunggu tampilan website keluar (AHK)

Biasanya pada AHK, untuk run website tertentu, untuk menunggu tampilannya lama keluar keburu jalan action berikutnya. jadi perlu jendela baru sebagai jembatan. untuk memastikan website sempurna keluar baru run command berikutnya. yaitu jendela perantara kalau di IE bisa tekan Ctrl + l
seperti contoh dibawah :

run http://mymacrosformula.blogspot.com/
Sleep, 100

Send, {CTRLDOWN}l{CTRLUP}
WinWait, Open, Type the Internet ad
IfWinNotActive, Open, Type the Internet ad, WinActivate, Open, Type the Internet ad
WinWaitActive, Open, Type the Internet ad
Send, {ESC}       Kalau untuk mengisi kotak kosong di tengah web bisa dengan perintah Find "apa yang diminta " lalu tekan Tab untuk pindah ke kotak kosongnya. lihat contoh di bawah :  

Sleep, 100
Send, {CTRLDOWN}f{CTRLUP}
Sleep, 100
send Ussser
Sleep, 100

send {ENTER}
Sleep, 100
send {ESC}
Sleep, 100
send {TAB}
sleep, 100
Send, BBBBB
Send, {TAB}{TAB}{TAB}{TAB}

Sleep, 100
send {ENTER}


Kalau mengisi kotak kosong di tengah web juga bisa pakai record mouse di AHK, tapi syaratnya koordinat kotak kosong atau isian tersebut dari ujung kiri atas jendela web tidak berubah. lebih aman pakai command Tab saja. contohnya :

MouseClick, left,  800,  554

Tidak ada komentar:

Posting Komentar

Page View