age Posted September 21, 2007 Share 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 Link to comment Share on other sites More sharing options...
Zedna Posted September 21, 2007 Share 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 Link to comment Share on other sites More sharing options...
age Posted September 22, 2007 Author Share 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 Link to comment Share on other sites More sharing options...
Achilles Posted September 23, 2007 Share 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] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now