Guest User

Untitled

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