Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. #SingleInstance Force
  2. #IfWinActive, RuneLite
  3.  
  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. }
  54. return
  55. }
  56.  
  57.  
  58.  
  59.  
  60. NorthOre(){
  61. ;update GUI to show that north ore subroutine is being run
  62.  
  63. }
  64.  
  65. WestOre(){
  66.  
  67. }
  68.  
  69. EastOre(){
  70.  
  71. }
  72.  
  73. CameraSet() {
  74.  
  75. }
  76.  
  77. CheckFull() {
  78.  
  79. }
  80.  
  81. CheckLocation() {
  82.  
  83. }
  84.  
  85. LogOff() {
  86.  
  87. }
  88.  
  89. DropLoop() {
  90. ;update GUI to show that dropping loop subroutine is being run
  91. }
  92.  
  93. AntiBan(){
  94. ;update GUI to show that anti ban wait period is being run
  95.  
  96. }
  97.  
  98.  
  99. f10::
  100. {
  101. InputBox, LogTimer, Inventories Until LogOff?
  102.  
  103. CameraSet()
  104. Loop, %LogTimer%{
  105. Loop, 2{
  106. Loop, 7{
  107.  
  108. CheckLocation()
  109. CheckFull()
  110. NorthOre()
  111. CheckLocation()
  112. CheckFull()
  113. WestOre()
  114. ;CheckLocation()
  115. ;CheckFull()
  116. ;EastOre()
  117. }
  118. AntiBan()
  119. }
  120.  
  121. }
  122. LogOff ()
  123. }
  124.  
  125.  
  126.  
  127. 2::
  128. {
  129. reload
  130. }
  131. 3::
  132. {
  133. exitapp
  134. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement