[Help]How to join this 7 script

09/13/2013 09:22 santozoo#1
hi all,
i just learn how to use autoit
so i made scripts for facebook flashgame using imagesearch and pixelsearch
i dont know how to put only in 1 file

this is example of few script

Script1

Script 2

Script 3

so how to join them in 1 script
when i run all 7 script at flash game it got lag because use big memory
thx alot
09/13/2013 16:33 alpines#2
Joining these scripts into one script is kinda easy.
Think about on what you want to have first, then look at how the first script ends and relate to the 2nd one by inserting in it and the same with the 3rd one.

But pay attention! Don't use the same variablenames or same includes over and over again, these will create errors.
09/15/2013 16:32 santozoo#3
Ok now already join in 1 script
and now i want to make it to pause all function every 30 minutes for clearing my inventory...i got confuse with timerint() and timerdiff()

and also all command still running together what should i use ?
for example if ok.png show at screen i want to pause cast.png until ok.png done

here is my script

thx before for your help

09/15/2013 16:57 alpines#4
Just add:
Code:
AdLibRegister("PauseScript", 1800000)

Func PauseScript()
	Sleep(5 * 60 * 1000); Pause for 5 Minutes.
EndFunc
This will run PauseScript every 30 minutes and sleeps for 5 minutes.