Sign in to follow this  
Followers 0
age

Help about func

4 posts in this topic

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



#2 ·  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

Share this post


Link to post
Share on other sites

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

While 1

sleep(500)

WEnd

The "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

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
Sign in to follow this  
Followers 0