age 0 Posted September 21, 2007 HotkeySet("{F2}","_exit") HotKeySet("{F3}","type") Func type() While 1 MouseClick("left", 180, 404, 2) Sleep (1500) Send("kamu sudah cape blom") Sleep (1000) Send ("{ENTER}") MouseClick("left", 180, 404, 2) Sleep (1500) Send("kamu sudah cape blom") Sleep (1000) Send ("{ENTER}") MouseClick("left", 180, 404, 2) Sleep (1500) Send("kamu sudah cape blom") Sleep (1000) Send ("{ENTER}") MouseClick("left", 480, 604, 2) WEnd EndFunc Func _exit() Exit EndFunc why my script cant work anyone can help me what wrong with my script thx Share this post Link to post Share on other sites
Zedna 289 Posted September 21, 2007 (edited) HotKeySet("{F2}", "_exit") HotKeySet("{F3}", "type") While 1 Sleep(100) WEnd Func type() MouseClick("left", 180, 404, 2) Sleep(1500) Send("kamu sudah cape blom") Sleep(1000) Send("{ENTER}") MouseClick("left", 180, 404, 2) Sleep(1500) Send("kamu sudah cape blom") Sleep(1000) Send("{ENTER}") MouseClick("left", 180, 404, 2) Sleep(1500) Send("kamu sudah cape blom") Sleep(1000) Send("{ENTER}") MouseClick("left", 480, 604, 2) EndFunc ;==>type Func _exit() Exit EndFunc ;==>_exit EDIT: you were close :-) Edited September 21, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Share this post Link to post Share on other sites
age 0 Posted September 22, 2007 While 1 sleep(500) WEnd what for that script ? can u explain to me while 1 <--- one ? one mean what ? i know from help while can make loop sorry i always asking about this program, cause i want learn from basic about program autoit thx for your help and attentions my script have progress, now i can loop HotkeySet("{F2}","_Exit") HotkeySet("{F10}","type") WinWait("order mobil.txt - Notepad","",10) While 1 sleep(500) WEnd Func type() $a = 0 While $a <= 99 Send("kamu sudah makan blom") Sleep(1000) Send("{ENTER}") Sleep(1000) $a = $a + 1 WEnd EndFunc Func _Exit() Exit EndFunc Share this post Link to post Share on other sites
Achilles 2 Posted September 23, 2007 While 1sleep(500)WEndThe "While 1" means to keep on going forever. "Sleep(500)" is there to keep the CPU usage down. If there was no sleep there the processor would go to 100% and wouldn't be doing anything useful"WEnd" is the closing statement that relates to the "While 1" My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Share this post Link to post Share on other sites