1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
on load("Bot Loaded") { set(#dateTime,$date,"Global") } ui drop down("Hours:","1,2",#Hours) ui stat monitor("Remaining",#remaining) set(#dateTime,$plugin function("Advanced DateTime.dll", "$datetime increment", 0, 0, 0, #Hours, 0, 0, 0, $date, "UBOT (MM/dd/yyyy HH:mm:ss)", "UBOT (MM/dd/yyyy HH:mm:ss)"),"Global") comment("Run defind \"DoSomething\" every 10 second") thread { loop while($true) { set(#remaining,$plugin function("Advanced DateTime.dll", "$datetime count up/down", #dateTime, "UBOT (MM/dd/yyyy HH:mm:ss)", "hh:m:s"),"Global") if($comparison(#remaining,"= Equals","00:00:00")) { then { DoSomething() set(#dateTime,$plugin function("Advanced DateTime.dll", "$datetime increment", 0, 0, 0, #Hours, 0, 0, 0, $date, "UBOT (MM/dd/yyyy HH:mm:ss)", "UBOT (MM/dd/yyyy HH:mm:ss)"),"Global") } else { } } wait(1) } } set(#Count,0,"Global") define DoSomething { increment(#Count) alert("Compile: {#Count}") } |