Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv
- #SingleInstance, Force
- SetBatchLines, -1
- $8:: ;hotkey to activate buff
- Send, {8 down}
- Sleep 10
- Send, {8 up}
- timerCount := 10 ; Change me
- Gosub, Sub_ShowOverlay
- return
- Sub_ShowOverlay:
- Gui, GUI_Overlay:New, +ToolWindow +LastFound +AlwaysOnTop -Caption +hwndGUI_Overlay_hwnd
- Gui, Margin, 10, 10
- Gui, Font, s20 q4, Segoe UI Bold
- Gui, Add, Text, w50 Center vTEXT_Timer cWhite, %timerCount%
- Gui, Color, 000000
- WinSet, Transparent, 200
- Winset, AlwaysOnTop, on
- Gui, Show, Hide, Overlay
- WinMove, 200, 5 ; Change these values to move the window
- Gui, GUI_Overlay:Show, NoActivate, Xn: 0, Yn: 0
- SetTimer, Timer_Countdown, 1000
- return
- ; Does the countdown and updating of the timer
- Timer_Countdown:
- if (timerCount == 1) {
- SetTimer, Timer_Countdown, Off
- Gui, GUI_Overlay:Destroy
- }
- timerCount--
- GuiControl, GUI_Overlay:, TEXT_Timer, %timerCount% seconds
- return
- \::
- ExitApp
Advertisement
Add Comment
Please, Sign In to add comment