Guest User

Untitled

a guest
May 13th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv    
  2. #SingleInstance, Force
  3. SetBatchLines, -1  
  4.  
  5. $8:: ;hotkey to activate buff
  6. Send, {8 down}
  7. Sleep 10
  8. Send, {8 up}
  9.     timerCount := 10 ; Change me
  10.     Gosub, Sub_ShowOverlay
  11. return
  12.  
  13. Sub_ShowOverlay:
  14.  
  15.     Gui, GUI_Overlay:New, +ToolWindow  +LastFound +AlwaysOnTop -Caption +hwndGUI_Overlay_hwnd
  16.     Gui, Margin, 10, 10
  17.     Gui, Font, s20 q4, Segoe UI Bold
  18.     Gui, Add, Text, w50 Center vTEXT_Timer cWhite, %timerCount%
  19.  
  20.     Gui, Color, 000000
  21.     WinSet, Transparent, 200
  22.     Winset, AlwaysOnTop, on
  23.     Gui, Show, Hide, Overlay
  24.  
  25.     WinMove, 200, 5 ; Change these values to move the window
  26.     Gui, GUI_Overlay:Show, NoActivate, Xn: 0, Yn: 0
  27.  
  28.     SetTimer, Timer_Countdown, 1000
  29. return
  30.  
  31. ; Does the countdown and updating of the timer
  32. Timer_Countdown:
  33.    if (timerCount == 1) {
  34.         SetTimer, Timer_Countdown, Off
  35.         Gui, GUI_Overlay:Destroy
  36.     }
  37.  
  38.     timerCount--
  39.     GuiControl, GUI_Overlay:, TEXT_Timer, %timerCount% seconds
  40. return
  41.  
  42. \::
  43. ExitApp
Advertisement
Add Comment
Please, Sign In to add comment