Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Set up the GUI for the overlay
- CustomColor := "EEAA99" ; You can change this to any RGB color
- Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
- Gui, Color, %CustomColor%
- Gui, Font, s12 ; Set a large font size (32-point)
- Gui, Add, Text, vMyText cWhite, 5 ; Initial countdown value
- WinSet, TransColor, %CustomColor% ; Make the background transparent
- ; Hotkey to start the countdown
- ~E::
- IfWinActive, Path of Exile
- {
- Gui, Show, x1200 y700 NoActivate ; Show the overlay
- counter := 5
- SetTimer, UpdateOSD, 1000
- }
- return
- UpdateOSD:
- counter--
- if (counter < 0) {
- SetTimer, UpdateOSD, Off
- GuiControl,, MyText, 5 ; Reset the countdown display
- SoundBeep(523, 250, 25) ; Play a beep sound (frequency 750 Hz, duration 300 ms)
- Gui, Hide ; Hide the overlay
- return
- }
- GuiControl,, MyText, %counter%
- return
- ; Hide the GUI when Path of Exile is not active
- #IfWinNotActive, Path of Exile
- Gui, Hide
- #IfWinActive
- ;-------------------------------------------------------------------------------
- SoundBeep(Frequency, Duration, Volume) { ; custom wrapper
- ;-------------------------------------------------------------------------------
- SoundGet, MasterVolume
- SoundSet, Volume
- SoundBeep, Frequency, Duration
- SoundSet, MasterVolume
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement