Sign in to follow this  
Followers 0
BitByteBit

Display Countdown of Millseconds in Minutes hours

3 posts in this topic

$Time = 7440000
Func AutoIt()
While 1
Plant()
Sleep($Time)
if WinExists("Adobe Flash Player") Then
Harvest()
Plow()
Else
Login()
Harvest()
Sleep(180000)
Plow()
Sleep(180000)
EndIf
WEnd
EndFunc

Would I be able to display the remaining amount of time of $Time (In Minutes) at a keypress without exiting the function?

Share this post


Link to post
Share on other sites



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!

Share this post


Link to post
Share on other sites

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

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