Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- overlay(){
- global
- #SingleInstance, Force
- Time := 0
- Time1 := 0
- Time2 := 0
- IfWinExist, RuneLite
- WinActivate
- SetTimer, ShowGui, 1000
- SetTimer, CloseGui, 2500
- Sleep, 1000
- Gui, 2:Font, s7
- Gui, 2:Add, Text, x5 y5 w200 volTitle,
- Gui, 2:Add, Text, x5 y20 w200 volScriptType,
- Gui, 2:Add, Text, x5 y35 w200 vTimer,
- return
- ShowGui:
- {
- WinWait, ahk_class SunAwtFrame
- WinGetPos, GuiX, GuiY,,, ahk_class SunAwtFrame
- WinGet, WinID, ID, ahk_class SunAwtFrame
- IfWinExist, ahk_class SunAwtFrame
- {
- GuiX := GuiX + 4
- GuiY := GuiY + 27
- Gui, 2:+Owner%WinID%
- Gui, 2:-Caption
- Gui, 2:Show, NoActivate x%GuiX% y%GuiY% w250 h55
- Gui, 2:Color, 0xCCBB9A3
- Time++
- if (time = 60){
- Time1 := Time1 + 1
- Time := 0
- }
- if (time1 = 60){
- Time2 := Time2 + 1
- Time1 := 0
- }
- GuiControl, 2:, Timer, Runtime: %Time2% Hours %Time1% Minutes %Time% Seconds.
- GuiControl, 2:, olTitle, %title% %version%
- GuiControl, 2:, olScriptType, You are currently running: %scriptType%
- }
- return
- }
- CloseGui:
- {
- IfWinNotExist, ahk_id %WinID%
- {
- Gui, Destroy
- ExitApp
- }
- return
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement