Simple time passed script. [autoit]

Posts 1–4 of 4 · Page 1 of 1
Simple time passed script. [autoit]
Well I just wrote this script for a personal project and decided to share it.. It keeps track of minutes passed so you can easily run a script for a certain amount of time..


Ok here is just the basic time difference checker script.
Code:
#include <Date.au3>
$StartTicks = _TimeToTicks(@HOUR,@Min..,@Sec)
while 1
    if _TimeToTicks(@HOUR,@Min..,@Sec) = $StartTicks + 1 * 60 * 1000 Then
        MsgBox(0,"diff", "1 minute passed")
        Exit
    EndIf
WEnd
change the part where it says + 1 , change the 1 to the amount of minutes you want to pass.




And here it is, with a cool current time tooltip added.
Code:
#include <Date.au3>
Global $Sec, $Min, $Hour, $Time
$StartTicks = _TimeToTicks(@HOUR,@Min..,@Sec)
while 1
    $CurrentTicks = _TimeToTicks(@HOUR,@Min..,@Sec)
    _TicksToTime($CurrentTicks, $Hour, $Min, $Sec)
    tooltip("Current time- " & $Hour & ":" & $Min & ":" & $Sec)
    if _TimeToTicks(@HOUR,@Min..,@Sec) = $StartTicks + 1 * 60 * 1000 Then
        MsgBox(0,"diff", "1 minute passed")
        Exit
    EndIf
WEnd
Not really Vindictus-related but I'd keep it here cause normal AutoIT users wont use this tho. Good job.
Quote Originally Posted by Nico View Post
Not really Vindictus-related but I'd keep it here cause normal AutoIT users wont use this tho. Good job.
This is useful for mining bots and labrynth bots, stuff like that.. Tis it's purpose for vindi.
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?