Guest User

Untitled

a guest
May 7th, 2017
120
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.     timerCount := 10 ; Change me
  7.     Gosub, Sub_ShowOverlay
  8. return
  9.  
  10. Sub_ShowOverlay:
  11.  
  12.     Gui, GUI_Overlay:New, +ToolWindow  +LastFound +AlwaysOnTop -Caption +hwndGUI_Overlay_hwnd
  13.     Gui, Margin, 10, 10
  14.     Gui, Font, s20 q4, Segoe UI Bold
  15.     Gui, Add, Text, w50 Center vTEXT_Timer cWhite, %timerCount%
  16.  
  17.     Gui, Color, 000000
  18.     WinSet, Transparent, 200
  19.     Gui, Show, Hide, Overlay
  20.  
  21.     WinMove, 200, 5 ; Change these values to move the window
  22.     Gui, GUI_Overlay:Show, NoActivate, Xn: 0, Yn: 0
  23.  
  24.     SetTimer, Timer_Countdown, 1000
  25. return
  26.  
  27. ; Does the countdown and updating of the timer
  28. Timer_Countdown:
  29.    if (timerCount == 1) {
  30.         SetTimer, Timer_Countdown, Off
  31.         Gui, GUI_Overlay:Destroy
  32.     }
  33.  
  34.     timerCount--
  35.     GuiControl, GUI_Overlay:, TEXT_Timer, %timerCount% seconds
  36. return
  37.  
  38. \::
  39. ExitApp
Advertisement
Add Comment
Please, Sign In to add comment