Guest User

Untitled

a guest
May 13th, 2017
111
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.     Gui, Show, Hide, Overlay
  23.  
  24.     WinMove, 200, 5 ; Change these values to move the window
  25.     Gui, GUI_Overlay:Show, NoActivate, Xn: 0, Yn: 0
  26.  
  27.     SetTimer, Timer_Countdown, 1000
  28. return
  29.  
  30. ; Does the countdown and updating of the timer
  31. Timer_Countdown:
  32.    if (timerCount == 1) {
  33.         SetTimer, Timer_Countdown, Off
  34.         Gui, GUI_Overlay:Destroy
  35.     }
  36.  
  37.     timerCount--
  38.     GuiControl, GUI_Overlay:, TEXT_Timer, %timerCount% seconds
  39. return
  40.  
  41. \::
  42. ExitApp
Add Comment
Please, Sign In to add comment