Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance Force
- #IfWinActive, RuneLite
- 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
- }
- return
- }
- NorthOre(){
- ;update GUI to show that north ore subroutine is being run
- }
- WestOre(){
- }
- EastOre(){
- }
- CameraSet() {
- }
- CheckFull() {
- }
- CheckLocation() {
- }
- LogOff() {
- }
- DropLoop() {
- ;update GUI to show that dropping loop subroutine is being run
- }
- AntiBan(){
- ;update GUI to show that anti ban wait period is being run
- }
- f10::
- {
- InputBox, LogTimer, Inventories Until LogOff?
- CameraSet()
- Loop, %LogTimer%{
- Loop, 2{
- Loop, 7{
- CheckLocation()
- CheckFull()
- NorthOre()
- CheckLocation()
- CheckFull()
- WestOre()
- ;CheckLocation()
- ;CheckFull()
- ;EastOre()
- }
- AntiBan()
- }
- }
- LogOff ()
- }
- 2::
- {
- reload
- }
- 3::
- {
- exitapp
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement