Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.78 KB | None | 0 0
  1. $timer = TimerInit()
  2. $days = 0
  3. $hours = 0
  4. $mins = 0
  5. $seconds = 0
  6. while 1
  7.     if TimerDiff($timer) > 999 Then
  8.         $seconds += 1
  9.         $timer = TimerInit()
  10.     EndIf
  11.     if $seconds = 60 Then
  12.         $mins += 1
  13.         $seconds = 0
  14.     EndIf
  15.     if $mins = 60 Then
  16.         $hours += 1
  17.         $mins = 0
  18.     EndIf
  19.         if $hours = 24 Then
  20.         $days += 1
  21.         $hours = 0
  22.     EndIf
  23. $displaydays = $days
  24. $displayhours = $hours
  25. $displayseconds = $seconds
  26. $displaymins = $mins
  27. if $seconds < 10 Then
  28.     $displayseconds = 0&$seconds
  29. EndIf
  30. if $mins < 10 Then
  31. $displaymins = 0&$mins
  32. EndIf
  33. if $days < 10 Then
  34. $displaydays = 0&$days
  35. EndIf
  36. if $hours < 10 Then
  37. $displayhours = 0&$hours
  38. EndIf
  39.     ControlSetText("ManyCam Options", "", "RichEdit20A1", "Time Awake: "&$displaydays&":"&$displayhours&":"&$displaymins&":"&$displayseconds)
  40. WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement