Jump to content

Recommended Posts

Posted

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

Posted (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 by Zedna
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...