Shaiya Auto It Script

03/26/2010 07:32 mccoy595#1
While 1
Send("1")
Sleep(2000)
send("2")
Sleep(5000)
WEnd


This is a very basic script im useing with alot of success thus far. But what i have found is that i want it to do more. Is there a way that i can have each send command be on its own indipendant count down?

For example, i want it to send 1 every 2 seconds, while seindind 2 every 5 seconds, while sending 7 and 8 every 320 seconds, and 9 every 620 seconds.

Any ideas or sugestions on how to make it do this? Help if you can thank you.
03/26/2010 19:34 Timo264#2
AdlibRegister ( "function" [, time] )
Quote:
Every 250 ms (or time ms) the specified "function" is called--typically to check for unforeseen errors. For example, you could use adlib in a script which causes an error window to pop up unpredictably.
The adlib function should be kept simple as it is executed often and during this time the main script is paused. Also, the time parameter should be used carefully to avoid CPU load.

Several Adlib functions can be registered. Re-registering an already existing Adlib function will update it with a new time.
and
AdlibUnRegister( [ "function" ] )
03/27/2010 01:32 mccoy595#3
So....what your saying is.....

While 1
Send("1"[sleep (2000])
Wend

and that will creat a count down on that skill rather than a scrip that pauses inbetween each send?