Jump to content

Recommended Posts

Posted

You need to divide those huge sleep's into smaller ones (and loop them) and use TimerInit() and TimerDiff() to determine how long time has passed / is left.

Broken link? PM me and I'll send you the file!

Posted

Ok so:

$Time = $Time / 60000

Now I have the time in minutes right?

Where would I do that calculation?

I'm not fussed about the sleeps used later. . . Just $Time.

I kinda know how to use TimerInit()

$Time = 7440000 
Func AutoIt() 
While 1 
Plant() 
Local $Start = _Timer_Init()
ToolTip(_Timer_Diff($Start))
Sleep($Time)
if WinExists("Adobe Flash Player") 
Then Harvest() Plow() 
Else Login() 
Harvest() 
Sleep(180000) 
Plow() 
Sleep(180000) 
EndIf 
WEnd 
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...