Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. overlay(){
  2. global
  3. #SingleInstance, Force
  4. Time := 0
  5. Time1 := 0
  6. Time2 := 0
  7. IfWinExist, RuneLite
  8. WinActivate
  9. SetTimer, ShowGui, 1000
  10. SetTimer, CloseGui, 2500
  11. Sleep, 1000
  12.  
  13. Gui, 2:Font, s7
  14. Gui, 2:Add, Text, x5 y5 w200 volTitle,
  15. Gui, 2:Add, Text, x5 y20 w200 volScriptType,
  16. Gui, 2:Add, Text, x5 y35 w200 vTimer,
  17. return
  18.  
  19. ShowGui:
  20. {
  21. WinWait, ahk_class SunAwtFrame
  22. WinGetPos, GuiX, GuiY,,, ahk_class SunAwtFrame
  23. WinGet, WinID, ID, ahk_class SunAwtFrame
  24. IfWinExist, ahk_class SunAwtFrame
  25. {
  26. GuiX := GuiX + 4
  27. GuiY := GuiY + 27
  28. Gui, 2:+Owner%WinID%
  29. Gui, 2:-Caption
  30. Gui, 2:Show, NoActivate x%GuiX% y%GuiY% w250 h55
  31. Gui, 2:Color, 0xCCBB9A3
  32. Time++
  33. if (time = 60){
  34. Time1 := Time1 + 1
  35. Time := 0
  36. }
  37. if (time1 = 60){
  38. Time2 := Time2 + 1
  39. Time1 := 0
  40. }
  41. GuiControl, 2:, Timer, Runtime: %Time2% Hours %Time1% Minutes %Time% Seconds.
  42. GuiControl, 2:, olTitle, %title% %version%
  43. GuiControl, 2:, olScriptType, You are currently running: %scriptType%
  44. }
  45. return
  46. }
  47.  
  48. CloseGui:
  49. {
  50. IfWinNotExist, ahk_id %WinID%
  51. {
  52. Gui, Destroy
  53. ExitApp
  54. }
  55. return
  56. }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement