OK i have a question, kinda noob question but, how do i make a script run slower not the sleep command but how many times it reads all the commands. because it seems like its flying through the au3 and lagging out my computer.
here is the code im using.........
CODEsleep (2000)
WinActivate("SRO_Client")
sleep (2000)
Global $Paused
HotKeySet("z", "Pause")
Func Pause()
$Paused = NOT $Paused
While $Paused
Sleep (400)
WEnd
EndFunc
Func fight()
$coord = PixelSearch( 100, 100, 900, 525, 0xa00a00, 1, 2)
If Not @error Then
MouseMove($coord[0],$coord[1],0)
Sleep (100)
MouseClick("left",$coord[0],$coord[1])
Sleep (500)
if (pixelgetcolor (429,21) = 0x2C89CB) then
send ("1")
send ("2")
endif
EndIf
;send ("{left 6}")
EndFunc
while 1=1
fight()
wend
this basically just looks for a color and executes 2 different buttons. but seems to lag out the sro.exe that its running in.