Jump to content
Sign in to follow this  
BitByteBit

Display Countdown of Millseconds in Minutes hours

Recommended Posts

monoceres

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
BitByteBit

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.